From 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 Mon Sep 17 00:00:00 2001 From: wbx Date: Sun, 17 May 2009 14:41:34 +0200 Subject: Initial import --- package/glibc/Config.in | 9 +++++++++ package/glibc/Makefile | 34 ++++++++++++++++++++++++++++++++++ package/glibc/ipkg/glibc.control | 4 ++++ 3 files changed, 47 insertions(+) create mode 100644 package/glibc/Config.in create mode 100644 package/glibc/Makefile create mode 100644 package/glibc/ipkg/glibc.control (limited to 'package/glibc') diff --git a/package/glibc/Config.in b/package/glibc/Config.in new file mode 100644 index 000000000..d16cd8637 --- /dev/null +++ b/package/glibc/Config.in @@ -0,0 +1,9 @@ +config ADK_PACKAGE_GLIBC + prompt "glibc............................... GNU C library" + tristate + default y if ADK_TARGET_LIB_GLIBC + default n + depends on ADK_TARGET_LIB_GLIBC + help + GNU C library. + diff --git a/package/glibc/Makefile b/package/glibc/Makefile new file mode 100644 index 000000000..b1ba2f93b --- /dev/null +++ b/package/glibc/Makefile @@ -0,0 +1,34 @@ +# $Id$ +#- +# 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/glibc/Makefile.inc + +NO_DISTFILES:= 1 + +include $(TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,GLIBC,glibc,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) + +do-extract: + +# do nothing, glibc is already build in toolchain directory +do-install: + ${INSTALL_DIR} $(IDIR_GLIBC)/lib $(IDIR_GLIBC)/etc + # install /etc/localtime from host system (FIXME) + ${CP} /etc/localtime $(IDIR_GLIBC)/etc +ifeq ($(ADK_SSP),y) + $(CP) $(STAGING_DIR)/lib/libssp.so* $(IDIR_GLIBC)/lib/ +endif + $(CP) $(STAGING_DIR)/lib/libgcc_s.so.* $(IDIR_GLIBC)/lib/ + $(CP) $(STAGING_DIR)/lib/ld-*.so* $(IDIR_GLIBC)/lib/ + -for file in libc libcrypt libdl libm libnsl libresolv librt libutil libnss_compat libnss_dns libnss_files; do \ + $(CP) $(STAGING_DIR)/lib/$$file.so.* $(IDIR_GLIBC)/lib/; \ + $(CP) $(STAGING_DIR)/lib/$$file-$(PKG_VERSION).so $(IDIR_GLIBC)/lib/; \ + done + # create ld.so link for ldd + cd $(IDIR_GLIBC)/lib && ln -sf ld-linux.so.2 ld.so + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/glibc/ipkg/glibc.control b/package/glibc/ipkg/glibc.control new file mode 100644 index 000000000..b96c464e7 --- /dev/null +++ b/package/glibc/ipkg/glibc.control @@ -0,0 +1,4 @@ +Package: glibc +Priority: optional +Section: libs +Description: GNU Standard C library -- cgit v1.2.3