summaryrefslogtreecommitdiff
path: root/package/uclibc
diff options
context:
space:
mode:
Diffstat (limited to 'package/uclibc')
-rw-r--r--package/uclibc/Config.in9
-rw-r--r--package/uclibc/Makefile17
2 files changed, 23 insertions, 3 deletions
diff --git a/package/uclibc/Config.in b/package/uclibc/Config.in
index 0a0776480..2df80c81d 100644
--- a/package/uclibc/Config.in
+++ b/package/uclibc/Config.in
@@ -7,3 +7,12 @@ config ADK_PACKAGE_UCLIBC
help
Embedded C library.
+config ADK_PACKAGE_UCLIBC_DEV
+ prompt "uclibc-dev........................... development files"
+ bool
+ default n
+ depends on ADK_TARGET_LIB_UCLIBC
+ help
+ C library header files.
+
+
diff --git a/package/uclibc/Makefile b/package/uclibc/Makefile
index fc02f72f5..c5d2f01a9 100644
--- a/package/uclibc/Makefile
+++ b/package/uclibc/Makefile
@@ -6,12 +6,13 @@ include $(TOPDIR)/toolchain/uClibc/Makefile.inc
PKG_DESCR:= embedded C library
PKG_SECTION:= base
-
-NO_DISTFILES:=1
+NO_DISTFILES:= 1
+PKG_OPTS:= noremove
include $(TOPDIR)/mk/package.mk
-$(eval $(call PKG_template,UCLIBC,uclibc,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,UCLIBC,uclibc,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+$(eval $(call PKG_template,UCLIBC_DEV,uclibc-dev,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
# do nothing, uClibc is already build in toolchain directory
do-install:
@@ -31,5 +32,15 @@ do-install:
cd $(IDIR_UCLIBC)/lib && ln -sf ld-uClibc.so.0 ld.so
cd $(IDIR_UCLIBC)/lib && ln -sf libc.so.0 libc.so
cd $(IDIR_UCLIBC)/lib && ln -sf libgcc_s.so.1 libgcc_s.so
+ # header package
+ ${INSTALL_DIR} $(IDIR_UCLIBC_DEV)/usr/include/{sys,bits}
+ for file in alloca stdint locale ctype stdlib string sgidefs \
+ libintl sched pthread wchar _G_config getopt endian \
+ features libio stdio error signal time unistd;do \
+ ${CP} $(STAGING_DIR)/usr/include/$$file.h \
+ $(IDIR_UCLIBC_DEV)/usr/include; \
+ done
+ ${CP} $(STAGING_DIR)/usr/include/sys/*.h $(IDIR_UCLIBC_DEV)/usr/include/sys
+ ${CP} $(STAGING_DIR)/usr/include/bits/*.h $(IDIR_UCLIBC_DEV)/usr/include/bits
include ${TOPDIR}/mk/pkg-bottom.mk