summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-09-21 18:56:43 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-09-21 18:56:43 +0200
commiteb3c2cf8238c2e09666f2bf4c46389ee4ff80f75 (patch)
treed9692f63cb6127e54e02b3fafcf306e9898e081f
parentf4d12bd9992cae325422f05d92cc79b162b2e4fc (diff)
parentfeb521846269734c771e68e5406662f80d7dd2a5 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
-rw-r--r--package/eglibc/Makefile45
-rw-r--r--package/glibc/Makefile37
2 files changed, 64 insertions, 18 deletions
diff --git a/package/eglibc/Makefile b/package/eglibc/Makefile
index c6320b866..e489c6aad 100644
--- a/package/eglibc/Makefile
+++ b/package/eglibc/Makefile
@@ -14,6 +14,32 @@ include $(TOPDIR)/mk/package.mk
$(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}))
+EGLIBC_CONFOPTS:= \
+ --build=$(GNU_HOST_NAME) \
+ --host=$(REAL_GNU_TARGET_NAME) \
+ --with-headers=$(TOOLCHAIN_SYSROOT)/usr/include \
+ --disable-nls \
+ --without-cvs \
+ --disable-profile \
+ --disable-debug \
+ --enable-kernel=2.6.0 \
+ --without-gd \
+ --with-__thread \
+ --with-tls \
+ --enable-add-ons
+
+EGLIBC_ENV:= PATH='${TARGET_PATH}' \
+ BUILD_CC=${HOSTCC} \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ CC=${REAL_GNU_TARGET_NAME}-gcc \
+ CXX=${REAL_GNU_TARGET_NAME}-g++ \
+ AR=${REAL_GNU_TARGET_NAME}-ar \
+ RANLIB=${REAL_GNU_TARGET_NAME}-ranlib \
+ libc_cv_forced_unwind=yes \
+ libc_cv_c_cleanup=yes \
+ libc_cv_gnu99_inline=yes \
+ libc_cv_slibdir="/lib"
+
do-extract:
# do nothing, eglibc is already build in toolchain directory
@@ -35,14 +61,15 @@ endif
$(MAKE) -C $(TOOLCHAIN_BUILD_DIR)/linux-$(KERNEL_VERSION) ARCH=$(ARCH) V=1 \
INSTALL_HDR_PATH=$(IDIR_EGLIBC_DEV)/usr \
headers_install
- $(MAKE) -C $(TOOLCHAIN_BUILD_DIR)/${PKG_NAME}-${PKG_VERSION} \
- PREFIX=$(IDIR_EGLIBC_DEV)/ \
- DEVEL_PREFIX=/usr/ \
- RUNTIME_PREFIX=$(IDIR_EGLIBC_DEV)/ \
- HOSTCC="$(HOSTCC)" \
- CPU_CFLAGS="$(TARGET_CFLAGS)" \
- install_headers
- @find $(IDIR_EGLIBC_DEV) -name .install -delete
- @find $(IDIR_EGLIBC_DEV) -name ..install.cmd -delete
+ (cd $(WRKBUILD); \
+ ${EGLIBC_ENV} \
+ $(TOOLCHAIN_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/libc/configure \
+ --prefix=$(IDIR_EGLIBC_DEV)/usr \
+ --with-headers=$(IDIR_EGLIBC_DEV)/usr/include \
+ ${EGLIBC_CONFOPTS} \
+ );
+ PATH='${TARGET_PATH}' \
+ $(MAKE) -C $(WRKBUILD) \
+ install-headers install-bootstrap-headers=yes
include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/glibc/Makefile b/package/glibc/Makefile
index 595ac3eda..9cd8748b8 100644
--- a/package/glibc/Makefile
+++ b/package/glibc/Makefile
@@ -11,6 +11,22 @@ PKG_OPTS:= noremove
include $(TOPDIR)/mk/package.mk
+GLIBC_CONFOPTS:= \
+ --build=$(GNU_HOST_NAME) \
+ --host=$(REAL_GNU_TARGET_NAME) \
+ --with-headers=$(TOOLCHAIN_SYSROOT)/usr/include \
+ --disable-nls \
+ --disable-sanity-checks \
+ --disable-nls \
+ --without-cvs \
+ --disable-profile \
+ --disable-debug \
+ --without-gd \
+ --with-__thread \
+ --with-tls \
+ --enable-kernel="2.6.0" \
+ --enable-add-ons
+
$(eval $(call PKG_template,GLIBC,glibc,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
do-extract:
@@ -35,14 +51,17 @@ endif
$(MAKE) -C $(TOOLCHAIN_BUILD_DIR)/linux-$(KERNEL_VERSION) ARCH=$(ARCH) V=1 \
INSTALL_HDR_PATH=$(IDIR_GLIBC_DEV)/usr \
headers_install
- $(MAKE) -C $(TOOLCHAIN_BUILD_DIR)/${PKG_NAME}-${PKG_VERSION} \
- PREFIX=$(IDIR_GLIBC_DEV)/ \
- DEVEL_PREFIX=/usr/ \
- RUNTIME_PREFIX=$(IDIR_GLIBC_DEV)/ \
- HOSTCC="$(HOSTCC)" \
- CPU_CFLAGS="$(TARGET_CFLAGS)" \
- install_headers
- @find $(IDIR_GLIBC_DEV) -name .install -delete
- @find $(IDIR_GLIBC_DEV) -name ..install.cmd -delete
+ (cd $(WRKBUILD); \
+ $(TOOLCHAIN_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/configure \
+ --prefix=/usr \
+ --with-sysroot=$(IDIR_GLIBC_DEV) \
+ ${GLIBC_CONFOPTS} \
+ );
+ $(MAKE) -C $(WRKBUILD) \
+ cross-compiling=yes \
+ install_root=$(IDIR_GLIBC_DEV) \
+ install-headers
+ touch $(IDIR_GLIBC_DEV)/usr/include/gnu/stubs.h
+ touch $(IDIR_GLIBC_DEV)/usr/include/bits/stdio_lim.h
include ${TOPDIR}/mk/pkg-bottom.mk