diff options
Diffstat (limited to 'package/uclibc')
-rw-r--r-- | package/uclibc/Config.in | 9 | ||||
-rw-r--r-- | package/uclibc/Makefile | 38 | ||||
-rw-r--r-- | package/uclibc/ipkg/uclibc.conffiles | 1 | ||||
-rw-r--r-- | package/uclibc/ipkg/uclibc.control | 4 |
4 files changed, 52 insertions, 0 deletions
diff --git a/package/uclibc/Config.in b/package/uclibc/Config.in new file mode 100644 index 000000000..bf67093a2 --- /dev/null +++ b/package/uclibc/Config.in @@ -0,0 +1,9 @@ +config ADK_PACKAGE_UCLIBC + prompt "uClibc............................... embedded C library" + tristate + default y if ADK_TARGET_LIB_UCLIBC + default n + depends on ADK_TARGET_LIB_UCLIBC + help + Embedded C library. + diff --git a/package/uclibc/Makefile b/package/uclibc/Makefile new file mode 100644 index 000000000..73b3fe87e --- /dev/null +++ b/package/uclibc/Makefile @@ -0,0 +1,38 @@ +# $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/uClibc/Makefile.inc + +NO_DISTFILES:=1 + +include $(TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,UCLIBC,uclibc,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) + +# do nothing, uClibc is already build in toolchain directory +do-install: + ${INSTALL_DIR} $(IDIR_UCLIBC)/lib $(IDIR_UCLIBC)/etc + # create timezone file + echo 'CET-1CEST-2,M3.5.0/02:00:00,M10.5.0/03:00:00' > $(IDIR_UCLIBC)/etc/TZ +ifneq (${CPU_ARCH},x86_64) + $(CP) $(STAGING_DIR)/lib/libgcc_s.so.* $(IDIR_UCLIBC)/lib/ +endif + $(CP) $(STAGING_DIR)/lib/libc.so.* $(IDIR_UCLIBC)/lib/ + $(CP) $(STAGING_DIR)/lib/libuClibc-$(PKG_VERSION).so $(IDIR_UCLIBC)/lib/ + $(CP) $(STAGING_DIR)/lib/ld*-uClibc-$(PKG_VERSION).so $(IDIR_UCLIBC)/lib/ + $(CP) $(STAGING_DIR)/lib/ld*-uClibc.so.* $(IDIR_UCLIBC)/lib/ + -for file in libcrypt libdl libm libnsl libresolv librt libutil; do \ + $(CP) $(STAGING_DIR)/lib/$$file.so.* $(IDIR_UCLIBC)/lib/; \ + $(CP) $(STAGING_DIR)/lib/$$file-$(PKG_VERSION).so $(IDIR_UCLIBC)/lib/; \ + done + # create ld.so link for ldd +ifneq (${CPU_ARCH},x86_64) + cd $(IDIR_UCLIBC)/lib && ln -sf ld-uClibc.so.0 ld.so +else + cd $(IDIR_UCLIBC)/lib && ln -sf ld64-uClibc.so.0 ld.so +endif + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/uclibc/ipkg/uclibc.conffiles b/package/uclibc/ipkg/uclibc.conffiles new file mode 100644 index 000000000..e9ee7e4d7 --- /dev/null +++ b/package/uclibc/ipkg/uclibc.conffiles @@ -0,0 +1 @@ +/etc/TZ diff --git a/package/uclibc/ipkg/uclibc.control b/package/uclibc/ipkg/uclibc.control new file mode 100644 index 000000000..2cc44200a --- /dev/null +++ b/package/uclibc/ipkg/uclibc.control @@ -0,0 +1,4 @@ +Package: uclibc +Priority: optional +Section: net +Description: Standard C library for embedded Linux systems |