diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-08-20 20:41:41 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-08-20 20:41:41 +0200 |
commit | 70c44baa23fbf86a888f6f37a75bca10a631a01c (patch) | |
tree | cf5d557fddf53ddb4851a0ae5db68c3ff9f5407e /package/eglibc | |
parent | dd35f8739be06beda5a2e2d3f753056cf1fb724a (diff) |
add eglibc support
all three libraries tested with qemu-x86
Diffstat (limited to 'package/eglibc')
-rw-r--r-- | package/eglibc/Config.in | 9 | ||||
-rw-r--r-- | package/eglibc/Makefile | 34 |
2 files changed, 43 insertions, 0 deletions
diff --git a/package/eglibc/Config.in b/package/eglibc/Config.in new file mode 100644 index 000000000..80b6ad6d7 --- /dev/null +++ b/package/eglibc/Config.in @@ -0,0 +1,9 @@ +config ADK_PACKAGE_EGLIBC + prompt "eglibc............................... embedded GNU C library" + bool + default y if ADK_TARGET_LIB_EGLIBC + default n + depends on ADK_TARGET_LIB_EGLIBC + help + embedded GNU C library. + diff --git a/package/eglibc/Makefile b/package/eglibc/Makefile new file mode 100644 index 000000000..d8bec6f9c --- /dev/null +++ b/package/eglibc/Makefile @@ -0,0 +1,34 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(TOPDIR)/rules.mk +include $(TOPDIR)/toolchain/eglibc/Makefile.inc + +PKG_DESCR:= embedded GNU C library +PKG_SECTION:= base +NO_DISTFILES:= 1 + +include $(TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,EGLIBC,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) + +do-extract: + +# do nothing, eglibc is already build in toolchain directory +do-install: + ${INSTALL_DIR} $(IDIR_EGLIBC)/lib $(IDIR_EGLIBC)/etc + # install /etc/localtime from host system (FIXME) + ${CP} /etc/localtime $(IDIR_EGLIBC)/etc +ifeq ($(ADK_SSP),y) + $(CP) $(STAGING_DIR)/lib/libssp.so* $(IDIR_EGLIBC)/lib/ +endif + $(CP) $(STAGING_DIR)/lib/libgcc_s.so.* $(IDIR_EGLIBC)/lib/ + $(CP) $(STAGING_DIR)/lib/ld-*.so* $(IDIR_EGLIBC)/lib/ + -for file in libc libcrypt libdl libm libresolv librt libutil libnss_compat libnss_dns libnss_files; do \ + $(CP) $(STAGING_DIR)/lib/$$file.so.* $(IDIR_EGLIBC)/lib/; \ + $(CP) $(STAGING_DIR)/lib/$$file-$(PKG_VERSION).so $(IDIR_EGLIBC)/lib/; \ + done + # create ld.so link for ldd + cd $(IDIR_EGLIBC)/lib && ln -sf ld-$(PKG_VERSION).so ld.so + +include ${TOPDIR}/mk/pkg-bottom.mk |