comparison mini-native.sh @ 310:3a1ae92d6f6a

Teach BUILD_SHORT to remove include files (saving ~5 megs), and move the mini-native busybox build to using the same config file as host-tools, instead of defconfig. (The 2.6.25 kernel removed asm/page.h which breaks the mkswap build.)
author Rob Landley <rob@landley.net>
date Thu, 27 Mar 2008 21:54:27 -0500
parents 358ef8a27085
children a791ca629d9c
comparison
equal deleted inserted replaced
309:352b71189c93 310:3a1ae92d6f6a
45 cleanup uClibc 45 cleanup uClibc
46 46
47 # Build and install busybox 47 # Build and install busybox
48 48
49 setupfor busybox 49 setupfor busybox
50 #cp "${SOURCES}/config-busybox" .config && 50 cp "${SOURCES}/config-busybox" .config &&
51 #yes "" | make oldconfig && 51 yes "" | make oldconfig &&
52 make defconfig && 52 #make defconfig &&
53 make -j $CPUS CROSS="${ARCH}-" && 53 make -j $CPUS CROSS="${ARCH}-" &&
54 cp busybox "${TOOLS}/bin" 54 cp busybox "${TOOLS}/bin"
55 [ $? -ne 0 ] && dienow 55 [ $? -ne 0 ] && dienow
56 for i in $(sed 's@.*/@@' busybox.links) 56 for i in $(sed 's@.*/@@' busybox.links)
57 do 57 do
59 done 59 done
60 cd .. 60 cd ..
61 61
62 cleanup busybox 62 cleanup busybox
63 63
64 if [ -z "${BUILD_SHORT}" ] 64 if [ ! -z "${BUILD_SHORT}" ]
65 then 65 then
66 rm -rf "${TOOLS}"/include
67 else
66 68
67 # Build and install native binutils 69 # Build and install native binutils
68 70
69 setupfor binutils build-binutils 71 setupfor binutils build-binutils
70 CC="${ARCH}-gcc" AR="${ARCH}-ar" "${CURSRC}/configure" --prefix="${TOOLS}" \ 72 CC="${ARCH}-gcc" AR="${ARCH}-ar" "${CURSRC}/configure" --prefix="${TOOLS}" \