Mercurial > hg > aboriginal
comparison sources/more/setup-native-static-build.sh @ 870:2330aa12c5f9
Now that we cross compile busybox statically by default, remove it from native build.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 29 Oct 2009 22:43:13 -0500 |
parents | 858297fa5ad0 |
children |
comparison
equal
deleted
inserted
replaced
869:858297fa5ad0 | 870:2330aa12c5f9 |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 # Create hdc image to build dropbear, strace, and busybox statically. | 3 # Create hdc image to build dropbear and strace statically. |
4 | 4 |
5 . sources/include.sh | 5 . sources/include.sh |
6 | 6 |
7 if [ -z "$1" ] | 7 if [ -z "$1" ] |
8 then | 8 then |
25 | 25 |
26 # Extract source code into new image directory | 26 # Extract source code into new image directory |
27 | 27 |
28 setupfor dropbear | 28 setupfor dropbear |
29 setupfor strace | 29 setupfor strace |
30 setupfor busybox | |
31 | |
32 cp "$SOURCES"/trimconfig-busybox "$WORK" || dienow | |
33 | 30 |
34 cat > "$WORK"/init << 'EOF' || dienow | 31 cat > "$WORK"/init << 'EOF' || dienow |
35 #!/bin/bash | 32 #!/bin/bash |
36 | 33 |
37 echo Started second stage init | 34 echo Started second stage init |
57 make -j $CPUS && | 54 make -j $CPUS && |
58 cp strace /home/output && | 55 cp strace /home/output && |
59 cd .. && | 56 cd .. && |
60 rm -rf strace || dienow | 57 rm -rf strace || dienow |
61 | 58 |
62 echo === Native build static busybox | |
63 | |
64 cp -sfR /mnt/busybox busybox && | |
65 cd busybox && | |
66 make allyesconfig KCONFIG_ALLCONFIG=/mnt/trimconfig-busybox && | |
67 LDFLAGS="--static" make -j $CPUS && | |
68 cp busybox /home/output && | |
69 rm -rf busybox || dienow | |
70 | |
71 echo === Upload | 59 echo === Upload |
72 | 60 |
73 cd /home/output | 61 cd /home/output |
74 for i in * | 62 for i in * |
75 do | 63 do |