28 |
| grep -v CONFIG_WERROR \ |
| grep -v CONFIG_WERROR \ |
29 |
| cat >.config.new |
| cat >.config.new |
30 |
mv .config.new .config |
mv .config.new .config |
31 |
echo CONFIG_WERROR=y >>.config |
#echo CONFIG_WERROR=y >>.config |
32 |
|
echo '# CONFIG_WERROR is not set' >>.config |
33 |
|
|
34 |
test "$libc" = glibc && { |
test "$libc" = glibc && { |
35 |
cat .config \ |
cat .config \ |
36 |
| grep -v ^CONFIG_SELINUX= \ |
| grep -v CONFIG_STATIC \ |
37 |
| grep -v ^CONFIG_EFENCE= \ |
| grep -v CONFIG_SELINUX \ |
38 |
| grep -v ^CONFIG_DMALLOC= \ |
| grep -v CONFIG_EFENCE \ |
39 |
|
| grep -v CONFIG_DMALLOC \ |
40 |
| cat >.config.new |
| cat >.config.new |
41 |
mv .config.new .config |
mv .config.new .config |
42 |
|
echo '# CONFIG_STATIC is not set' >>.config |
43 |
} |
} |
44 |
|
|
45 |
test "$libc" = uclibc && { |
test "$libc" = uclibc && { |
60 |
echo 'CONFIG_STATIC=y' >>.config |
echo 'CONFIG_STATIC=y' >>.config |
61 |
} |
} |
62 |
|
|
|
# If NOMMU, remove some things |
|
|
grep -q ^CONFIG_NOMMU= .config && { |
|
|
cat .config \ |
|
|
| grep -v ^CONFIG_ASH= \ |
|
|
| grep -v ^CONFIG_FEATURE_SH_IS_ASH= \ |
|
|
| cat >.config.new |
|
|
mv .config.new .config |
|
|
} |
|
|
|
|
63 |
# If STATIC, remove some things |
# If STATIC, remove some things |
64 |
# PAM with static linking is probably pointless |
# PAM with static linking is probably pointless |
65 |
# (but I need to try - now I don't have libpam.a on my system, only libpam.so) |
# (but I need to try - now I don't have libpam.a on my system, only libpam.so) |
70 |
mv .config.new .config |
mv .config.new .config |
71 |
} |
} |
72 |
|
|
|
# CONFIG_NOMMU + CONFIG_HUSH + CONFIG_WERROR don't mix |
|
|
# (produces warning) |
|
|
grep -q ^CONFIG_NOMMU= .config && \ |
|
|
grep -q ^CONFIG_HUSH= .config && \ |
|
|
{ |
|
|
cat .config \ |
|
|
| grep -v ^CONFIG_WERROR= \ |
|
|
| cat >.config.new |
|
|
mv .config.new .config |
|
|
} |
|
|
|
|
73 |
# Regenerate .config with default answers for yanked-off options |
# Regenerate .config with default answers for yanked-off options |
74 |
{ yes "" | make oldconfig >/dev/null; } || exit 1 |
{ yes "" | make oldconfig >/dev/null; } || exit 1 |
75 |
|
|
76 |
nice -n 10 make |
nice -n 10 make $MAKEOPTS 2>&1 | tee -a make.log |
77 |
|
|
78 |
test -x busybox && { |
test -x busybox && { |
79 |
cd .. |
cd .. |
82 |
} |
} |
83 |
|
|
84 |
cd .. |
cd .. |
85 |
mv "$dir" failed."$dir" |
mv "$dir" "failed.$dir" |
86 |
exit 1 |
exit 1 |