diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-08-20 21:17:23 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-08-20 21:17:23 +0200 |
commit | 631a88b471ea2d9c768e88c1a2ebfdab398739e6 (patch) | |
tree | 6b4f0155ecd347dfabbec0ab9b7e26d91e4dd5e8 /package/eglibc/Makefile | |
parent | 384f52c5b7130a328a5f8a3286b8e0a81962bda6 (diff) | |
parent | d07acf5eacf62cd8b5495f12e3b37427050270c9 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/eglibc/Makefile')
-rw-r--r-- | package/eglibc/Makefile | 34 |
1 files changed, 34 insertions, 0 deletions
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 |