Mercurial > hg > aboriginal
comparison sources/more/setup-native-static-build.sh @ 848:63d79a2b0816
Cosmetic improvement, allows log monitoring to see stages.
author | Rob Landley <rob@landley.net> |
---|---|
date | Wed, 14 Oct 2009 03:51:57 -0500 |
parents | 2ca7ea5d3ec1 |
children | 858297fa5ad0 |
comparison
equal
deleted
inserted
replaced
847:766931bf97f4 | 848:63d79a2b0816 |
---|---|
31 echo Started second stage init | 31 echo Started second stage init |
32 | 32 |
33 cd /home && | 33 cd /home && |
34 mkdir output && | 34 mkdir output && |
35 | 35 |
36 # Build dropbear | 36 echo === Native build static dropbear |
37 | 37 |
38 cp -sfR /mnt/dropbear dropbear && | 38 cp -sfR /mnt/dropbear dropbear && |
39 cd dropbear && | 39 cd dropbear && |
40 LDFLAGS="--static" ./configure --disable-zlib && | 40 LDFLAGS="--static" ./configure --disable-zlib && |
41 make -j $CPUS PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp" MULTI=1 SCPPROGRESS=1 && | 41 make -j $CPUS PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp" MULTI=1 SCPPROGRESS=1 && |
42 cp dropbearmulti /home/output && | 42 cp dropbearmulti /home/output && |
43 cd .. && | 43 cd .. && |
44 rm -rf dropbear || exit 1 | 44 rm -rf dropbear || exit 1 |
45 | 45 |
46 echo === Native build static strace | |
47 | |
46 cp -sfR /mnt/strace strace && | 48 cp -sfR /mnt/strace strace && |
47 cd strace && | 49 cd strace && |
48 CFLAGS="--static" ./configure && | 50 CFLAGS="--static" ./configure && |
49 make -j $CPUS && | 51 make -j $CPUS && |
50 cp strace /home/output && | 52 cp strace /home/output && |
51 cd .. && | 53 cd .. && |
52 rm -rf strace || dienow | 54 rm -rf strace || dienow |
53 | 55 |
56 echo === Native build static busybox | |
57 | |
54 cp -sfR /mnt/busybox busybox && | 58 cp -sfR /mnt/busybox busybox && |
55 cd busybox && | 59 cd busybox && |
56 make allyesconfig KCONFIG_ALLCONFIG=/mnt/trimconfig-busybox && | 60 make allyesconfig KCONFIG_ALLCONFIG=/mnt/trimconfig-busybox && |
57 LDFLAGS="--static" make -j $CPUS && | 61 LDFLAGS="--static" make -j $CPUS && |
58 cp busybox /home/output && | 62 cp busybox /home/output && |
59 rm -rf busybox || dienow | 63 rm -rf busybox || dienow |
64 | |
65 echo === Upload | |
60 | 66 |
61 cd /home/output | 67 cd /home/output |
62 for i in * | 68 for i in * |
63 do | 69 do |
64 ftpput 10.0.2.2 -P $OUTPORT $ARCH-$i $i | 70 ftpput 10.0.2.2 -P $OUTPORT $ARCH-$i $i |