summaryrefslogtreecommitdiff
path: root/package/uclibc/Makefile
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/uclibc/Makefile
Initial import
Diffstat (limited to 'package/uclibc/Makefile')
-rw-r--r--package/uclibc/Makefile38
1 files changed, 38 insertions, 0 deletions
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