diff options
Diffstat (limited to 'package/eglibc')
-rw-r--r-- | package/eglibc/Config.in.manual | 8 | ||||
-rw-r--r-- | package/eglibc/Makefile | 7 |
2 files changed, 14 insertions, 1 deletions
diff --git a/package/eglibc/Config.in.manual b/package/eglibc/Config.in.manual index d74c585f8..0e7598edf 100644 --- a/package/eglibc/Config.in.manual +++ b/package/eglibc/Config.in.manual @@ -7,6 +7,14 @@ config ADK_PACKAGE_EGLIBC help embedded GNU C library. +config ADK_PACKAGE_EGLIBC_STATIC + prompt "eglibc-static........ C library (static version)" + tristate + default n + depends on ADK_TARGET_LIB_EGLIBC + help + embedded GNU C library (static version). + config ADK_PACKAGE_EGLIBC_DEV prompt "eglibc-dev........... C library development files" tristate diff --git a/package/eglibc/Makefile b/package/eglibc/Makefile index 0b5956431..5bf290fe9 100644 --- a/package/eglibc/Makefile +++ b/package/eglibc/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/toolchain/eglibc/Makefile.inc PKG_DESCR:= embedded GNU C library PKG_SECTION:= base PKG_OPTS:= noremove -PKG_SUBPKGS:= EGLIBC EGLIBC_DEV +PKG_SUBPKGS:= EGLIBC EGLIBC_DEV EGLIBC_STATIC NO_DISTFILES:= 1 @@ -15,6 +15,7 @@ include $(TOPDIR)/mk/package.mk $(eval $(call PKG_template,EGLIBC,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS})) $(eval $(call PKG_template,EGLIBC_DEV,$(PKG_NAME)-dev,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS})) +$(eval $(call PKG_template,EGLIBC_STATIC,$(PKG_NAME)-static,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS})) CONFIG_STYLE:= manual BUILD_STYLE:= manual @@ -82,6 +83,10 @@ endif ${INSTALL_DATA} ${STAGING_TARGET_DIR}/etc/nscd.conf ${IDIR_EGLIBC}/etc ${INSTALL_DATA} ${STAGING_TARGET_DIR}/etc/nsswitch.conf ${IDIR_EGLIBC}/etc +eglibc-static-install: + ${INSTALL_DIR} $(IDIR_EGLIBC_STATIC)/usr/lib + $(CP) $(STAGING_TARGET_DIR)/usr/lib/libc.a $(IDIR_EGLIBC_STATIC)/usr/lib + eglibc-dev-install: ${INSTALL_DIR} $(IDIR_EGLIBC_DEV)/lib $(IDIR_EGLIBC_DEV)/usr/lib # install linker script |