diff options
author | Daniel Black <dragonheart@gentoo.org> | 2004-02-04 13:20:27 +0000 |
---|---|---|
committer | Daniel Black <dragonheart@gentoo.org> | 2004-02-04 13:20:27 +0000 |
commit | 44bc0c2a0ce47e722076d19761e4cb0a7b2a4f54 (patch) | |
tree | 3c92fcbe79f60f179cd3383c5d7c11803bc4767a /sys-devel | |
parent | Added savedconfig to uclibc-buildroot (diff) | |
download | gentoo-2-44bc0c2a0ce47e722076d19761e4cb0a7b2a4f54.tar.gz gentoo-2-44bc0c2a0ce47e722076d19761e4cb0a7b2a4f54.tar.bz2 gentoo-2-44bc0c2a0ce47e722076d19761e4cb0a7b2a4f54.zip |
It compiles now. Install isn't quite right though.
Diffstat (limited to 'sys-devel')
-rw-r--r-- | sys-devel/uclibc-buildroot/ChangeLog | 6 | ||||
-rw-r--r-- | sys-devel/uclibc-buildroot/Manifest | 4 | ||||
-rw-r--r-- | sys-devel/uclibc-buildroot/uclibc-buildroot-20040131.ebuild | 160 |
3 files changed, 91 insertions, 79 deletions
diff --git a/sys-devel/uclibc-buildroot/ChangeLog b/sys-devel/uclibc-buildroot/ChangeLog index 30df12b31aec..f93d041821e5 100644 --- a/sys-devel/uclibc-buildroot/ChangeLog +++ b/sys-devel/uclibc-buildroot/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-devel/uclibc-buildroot # Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/uclibc-buildroot/ChangeLog,v 1.3 2004/02/03 03:44:15 dragonheart Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/uclibc-buildroot/ChangeLog,v 1.4 2004/02/04 13:19:52 dragonheart Exp $ + + 04 Feb 2004; Daniel Black <dragonheart@gentoo.org> + uclibc-buildroot-20040131.ebuild: + It compiles now. Install isn't quite right though. 03 Feb 2004; Daniel Black <dragonheart@gentoo.org> files/0.9.26/uClibc-0.9.26-Makefile.patch, diff --git a/sys-devel/uclibc-buildroot/Manifest b/sys-devel/uclibc-buildroot/Manifest index f70a4345ac81..7791fcc94ce0 100644 --- a/sys-devel/uclibc-buildroot/Manifest +++ b/sys-devel/uclibc-buildroot/Manifest @@ -1,6 +1,6 @@ -MD5 4c2d8a07aabde1dbb1ca763a84e04276 ChangeLog 935 +MD5 39f159df5174a1334e4c58328244962b ChangeLog 1078 MD5 bebf5ce8bd6516ef42239ea5b8de3e0b metadata.xml 262 -MD5 6a6de920677688dee08676ffb48da417 uclibc-buildroot-20040131.ebuild 13331 +MD5 1af2fb962cf11f5082e9dbb25f6f798b uclibc-buildroot-20040131.ebuild 13478 MD5 b8ec0025f826b1c01cbcb1b1cc018c18 files/digest-uclibc-buildroot-20040131 766 MD5 fed0ccb5a3b2aefd4671c2e470dadeeb files/uClibc-0.9.26-Makefile.patch 1764 MD5 4f9f87ac7690d24d225c32d6804894a8 files/uClibc-0.9.26-pie-option.patch 863 diff --git a/sys-devel/uclibc-buildroot/uclibc-buildroot-20040131.ebuild b/sys-devel/uclibc-buildroot/uclibc-buildroot-20040131.ebuild index d03eb68efad6..8d4bf11c62e5 100644 --- a/sys-devel/uclibc-buildroot/uclibc-buildroot-20040131.ebuild +++ b/sys-devel/uclibc-buildroot/uclibc-buildroot-20040131.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/uclibc-buildroot/uclibc-buildroot-20040131.ebuild,v 1.2 2004/02/03 01:10:20 dragonheart Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/uclibc-buildroot/uclibc-buildroot-20040131.ebuild,v 1.3 2004/02/04 13:19:52 dragonheart Exp $ inherit eutils crosscompile @@ -63,7 +63,7 @@ LICENSE="LGPL-2" # ONLY single slot support since only one version of package can exist in db. -IUSE="nls ipv6 debug nommu fullrpc pie propolice softfloat" +IUSE="nls ipv6 debug nommu fullrpc pie propolice softfloat savedconfig" # Local use flags # nommu = No memory management unit on target architecture @@ -246,16 +246,22 @@ src_compile() { local uconfig; use nls && uconfig="sources/uClibc.config-locale" || uconfig="sources/uClibc.config" + #stripflags -march -mcpu??? + cd ${UCLIBCDIR} # restore last config - if [ -f /etc/embedded/uClibc.config ]; then + if [ -f /etc/embedded/uClibc.config && `use savedconfig` ]; then cp /etc/embedded/uClibc.config ${uconfig} else # or make the default with a few changes emake defconfig || die "Could not make uclibc default config" + /bin/sed -i -e 's,^.*TARGET_$(UCLIBC_TARGET_ARCH).*,TARGET_$(TARGETARCH)=y,g' \ + -e "s,^KERNEL_SOURCE=.*,KERNEL_SOURCE=\"${WORKDIR}/linux\"," \ + -e 's,^TARGET_ARCH.*,TARGET_ARCH=\"$(TARGETARCH)\",g' .config + uclibc_config_option n MALLOC_GLIBC_COMPAT uclibc_config_option y DO_C99_MATH uclibc_config_option y UCLIBC_HAS_RPC @@ -271,102 +277,105 @@ src_compile() { uclibc_config_option y UNIX98PTY_ONLY uclibc_config_option n UCLIBC_HAS_TZ_FILE_READ_MANY uclibc_config_option y UCLIBC_HAS_LFS - fi - - /bin/sed -i -e 's,^.*TARGET_$(UCLIBC_TARGET_ARCH).*,TARGET_$(TARGETARCH)=y,g' \ - -e 's,^TARGET_ARCH.*,TARGET_ARCH=\"$(TARGETARCH)\",g' \ - -e "s,^KERNEL_SOURCE=.*,KERNEL_SOURCE=\"${WORKDIR}/linux\"," \ - -e 's,^RUNTIME_PREFIX=.*,RUNTIME_PREFIX=\"/\",g' \ - -e 's,^DEVEL_PREFIX=.*,DEVEL_PREFIX=\"/usr/\",g' \ - -e 's,^SHARED_LIB_LOADER_PREFIX=.*,SHARED_LIB_LOADER_PREFIX=\"/lib\",g' \ - .config - - if [ `use debug` ]; then - uclibc_config_option y DODEBUG - uclibc_config_option y PTHREADS_DEBUG_SUPPORT - uclibc_config_option y CONFIG_PROFILING - # Other possibe options for debug use flag - # DOASSERTS - # SUPPORT_LD_DEBUG - # SUPPORT_LD_DEBUG_EARLY - # PTHREADS_DEBUG_SUPPORT - else - uclibc_config_option n DODEBUG - uclibc_config_option n PTHREADS_DEBUG_SUPPORT - fi + uclibc_config_option y UCLIBC_COMPLETELY_PIC - [ `use ipv6` ] && uclibc_config_option y UCLIBC_HAS_IPV6 || \ - uclibc_config_option n UCLIBC_HAS_IPV6 - [ `use fullrpc` ] && uclibc_config_option y UCLIBC_HAS_FULL_RPC || \ - uclibc_config_option n UCLIBC_HAS_FULL_RPC + if [ `use debug` ]; then + uclibc_config_option y DODEBUG + uclibc_config_option y PTHREADS_DEBUG_SUPPORT + uclibc_config_option y CONFIG_PROFILING + # Other possibe options for debug use flag + # DOASSERTS + # SUPPORT_LD_DEBUG + # SUPPORT_LD_DEBUG_EARLY + # PTHREADS_DEBUG_SUPPORT + else + uclibc_config_option n DODEBUG + uclibc_config_option n PTHREADS_DEBUG_SUPPORT + fi - [ `use nommu` ] && uclibc_config_option n UCLIBC_HAS_MMU || \ - uclibc_config_option y UCLIBC_HAS_MMU + [ `use ipv6` ] && uclibc_config_option y UCLIBC_HAS_IPV6 || \ + uclibc_config_option n UCLIBC_HAS_IPV6 + [ `use fullrpc` ] && uclibc_config_option y UCLIBC_HAS_FULL_RPC || \ + uclibc_config_option n UCLIBC_HAS_FULL_RPC - if [ `use pie` && ${TARGETARCH}=="i386" ]; then - uclibc_config_option y UCLIBC_PIE_SUPPORT - uclibc_config_option y UCLIBC_COMPLETELY_PIC - uclibc_config_option n CONFIG_PROFILING - else - uclibc_config_option n UCLIBC_PIE_SUPPORT - uclibc_config_option n UCLIBC_COMPLETELY_PIC - fi + [ `use nommu` ] && uclibc_config_option n UCLIBC_HAS_MMU || \ + uclibc_config_option y UCLIBC_HAS_MMU - [ `use propolice` ] && uclibc_config_option y UCLIBC_PROPOLICE || \ - uclibc_config_option n UCLIBC_PROPOLICE - if [ `use softfloat` ]; then - uclibc_config_option n HAS_FPU - uclibc_config_option y UCLIBC_HAS_FLOATS - uclibc_config_option y UCLIBC_HAS_SOFT_FLOAT - #else - #TODO for completeness - fi + if [ `use pie` && ${TARGETARCH}=="i386" ]; then + uclibc_config_option y UCLIBC_PIE_SUPPORT + uclibc_config_option n CONFIG_PROFILING + else + uclibc_config_option n UCLIBC_PIE_SUPPORT + fi + [ `use propolice` ] && uclibc_config_option y UCLIBC_PROPOLICE || \ + uclibc_config_option n UCLIBC_PROPOLICE - uclibc_config_option n UCLIBC_PREGENERATED_LOCALE_DATA - uclibc_config_option n UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA + if [ `use softfloat` ]; then + uclibc_config_option n HAS_FPU + uclibc_config_option y UCLIBC_HAS_FLOATS + uclibc_config_option y UCLIBC_HAS_SOFT_FLOAT + #else + #TODO for completeness + fi - if [ `use nls` ]; then - uclibc_config_option y UCLIBC_HAS_LOCALE - #pregen is for i386 architectures only - if [ ${TARGETARCH}=="i386" ]; then - uclibc_config_option y UCLIBC_PREGENERATED_LOCALE_DATA - cp ${DISTDIR}/uClibc-locale-030818.tgz ${UCLIBCDIR}/extra/locale + uclibc_config_option n UCLIBC_PREGENERATED_LOCALE_DATA + uclibc_config_option n UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA + + if [ `use nls` ]; then + uclibc_config_option y UCLIBC_HAS_LOCALE + + #pregen is for i386 architectures only + if [ ${TARGETARCH}=="i386" ]; then + uclibc_config_option y UCLIBC_PREGENERATED_LOCALE_DATA + cp ${DISTDIR}/uClibc-locale-030818.tgz ${UCLIBCDIR}/extra/locale + else + uclibc_config_option n UCLIBC_PREGENERATED_LOCALE_DATA + + #TODO - below needs to be done for savedconfig too + pushd extra/locale + find charmaps -name "*.pairs" > codesets.txt + cp LOCALES locales.txt + emake clean all || die "Could not generate codepages" + popd + fi + uclibc_config_option y UCLIBC_HAS_XLOCALE + uclibc_config_option y UCLIBC_HAS_HEXADECIMAL_FLOATS + uclibc_config_option y UCLIBC_HAS_GLIBC_DIGIT_GROUPING + uclibc_config_option y UCLIBC_HAS_SCANF_LENIENT_DIGIT_GROUPING + uclibc_config_option y UCLIBC_HAS_GETTEXT_AWARENESS + # lots of stuff from uclibc.spec - TODO LATER else - uclibc_config_option n UCLIBC_PREGENERATED_LOCALE_DATA - pushd extra/locale - find charmaps -name "*.pairs" > codesets.txt - cp LOCALES locales.txt - emake clean all || die "Could not generate codepages" - popd + uclibc_config_option n UCLIBC_HAS_LOCALE fi - uclibc_config_option y UCLIBC_HAS_XLOCALE - uclibc_config_option y UCLIBC_HAS_HEXADECIMAL_FLOATS - uclibc_config_option y UCLIBC_HAS_GLIBC_DIGIT_GROUPING - uclibc_config_option y UCLIBC_HAS_SCANF_LENIENT_DIGIT_GROUPING - uclibc_config_option y UCLIBC_HAS_GETTEXT_AWARENESS - # lots of stuff from uclibc.spec - TODO LATER - else - uclibc_config_option n UCLIBC_HAS_LOCALE + + fi + /bin/sed -i -e 's,^RUNTIME_PREFIX=.*,RUNTIME_PREFIX=\"/\",g' \ + -e 's,^DEVEL_PREFIX=.*,DEVEL_PREFIX=\"/usr/\",g' \ + -e 's,^SHARED_LIB_LOADER_PREFIX=.*,SHARED_LIB_LOADER_PREFIX=\"/lib\",g' \ + .config + + + cd ${S} emake -j1 || die "Could not make uclibc-buildroot" if [ -n "`use debug`" ]; then - if [ -f /etc/embedded/busybox.config ]; then + if [ -f /etc/embedded/busybox.config && `use savedconfig` ]; then emake BUSYBOX_CONFIG=/etc/embedded/busybox.config busybox \ || "Error making busybox old config" else emake busybox || "Error making busybox default config" fi - [ -f /etc/embedded/tinylogin.config ] && \ + [ -f /etc/embedded/tinylogin.config && `use savedconfig` ] && \ cp /etc/embedded/tinylogin.config build_${TARGETARCH}/tinylogin-${TINYLOGINVER}/Config.h emake extras-compile @@ -390,11 +399,10 @@ src_install() { cd staging_dir - # there's probably a better way to do this but it was giving me the - # sh?ts trying to find it. usr/bin got mapped to bin in most cases. + # there's probably a better way to do this. usr/bin got mapped to bin in most cases. mv info share - tar -cf - lib/ usr/bin/ bin/ ${BINPREFIX} ${TARGETARCH}-linux \ + tar -cf - lib/ usr/bin/ bin/ ${BINPREFIX}/* ${TARGETARCH}-linux \ include/ | \ tar --no-same-owner -C ${D}/usr/${BINPREFIX} -xf - |