summaryrefslogtreecommitdiff
path: root/package/eglibc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-08-28 21:35:19 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-08-28 21:35:19 +0200
commitc79befcc1a0791df92460439f933843661db82e2 (patch)
tree0aaad0895c07007617b9a4c4ef38b59d38a91a1c /package/eglibc
parent89a213bd0f0290c66cdf952d5ea5f089cd56d1e9 (diff)
add more packages needed for native builds
- add bison,flex,diffutils,autoconf,automake,libtool,m4,gperf - add {glibc,eglibc,uclibc}-dev packages - add libz/libncurses development packages - add PKG_OPTS to setup special options for packages noremove is needed for uclibc/eglibc/glibc packages, otherwise needed headers will be removed slightly tested, still in development
Diffstat (limited to 'package/eglibc')
-rw-r--r--package/eglibc/Config.in8
-rw-r--r--package/eglibc/Makefile17
2 files changed, 23 insertions, 2 deletions
diff --git a/package/eglibc/Config.in b/package/eglibc/Config.in
index 80b6ad6d7..f16234bbb 100644
--- a/package/eglibc/Config.in
+++ b/package/eglibc/Config.in
@@ -7,3 +7,11 @@ config ADK_PACKAGE_EGLIBC
help
embedded GNU C library.
+config ADK_PACKAGE_EGLIBC_DEV
+ prompt "eglibc-dev........................... development files"
+ bool
+ default n
+ depends on ADK_TARGET_LIB_EGLIBC
+ help
+ embedded GNU C library header files.
+
diff --git a/package/eglibc/Makefile b/package/eglibc/Makefile
index 2a228fca7..112772a7d 100644
--- a/package/eglibc/Makefile
+++ b/package/eglibc/Makefile
@@ -7,10 +7,12 @@ include $(TOPDIR)/toolchain/eglibc/Makefile.inc
PKG_DESCR:= embedded GNU C library
PKG_SECTION:= base
NO_DISTFILES:= 1
+PKG_OPTS:= noremove
include $(TOPDIR)/mk/package.mk
-$(eval $(call PKG_template,EGLIBC,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,EGLIBC,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+$(eval $(call PKG_template,EGLIBC_DEV,$(PKG_NAME)-dev,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
do-extract:
@@ -27,7 +29,18 @@ endif
$(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 x86 linker
+ # create ld.so link for x86 linker and gcc
cd $(IDIR_EGLIBC)/lib && ln -sf ld-$(PKG_VERSION).so ld-linux.so.2
+ cd $(IDIR_EGLIBC)/lib && ln -sf libc.so.6 libc.so
+ cd $(IDIR_EGLIBC)/lib && ln -sf libgcc_s.so.1 libgcc_s.so
+ # header package
+ ${INSTALL_DIR} $(IDIR_EGLIBC_DEV)/usr/include/{sys,bits,gnu}
+ for file in pthread sched wchar _G_config getopt endian features libio stdio error signal time unistd;do \
+ ${CP} $(STAGING_DIR)/usr/include/$$file.h \
+ $(IDIR_EGLIBC_DEV)/usr/include; \
+ done
+ ${CP} $(STAGING_DIR)/usr/include/sys/*.h $(IDIR_EGLIBC_DEV)/usr/include/sys
+ ${CP} $(STAGING_DIR)/usr/include/bits/*.h $(IDIR_EGLIBC_DEV)/usr/include/bits
+ ${CP} $(STAGING_DIR)/usr/include/gnu/*.h $(IDIR_EGLIBC_DEV)/usr/include/gnu
include ${TOPDIR}/mk/pkg-bottom.mk