|
|
@ -18,8 +18,8 @@ runconf=0 |
|
|
|
echo_status "Using CPUS=$SDECFG_PARALLEL_MAX" |
|
|
|
echo_status "Using CPUS=$SDECFG_PARALLEL_MAX" |
|
|
|
export CPUS=$SDECFG_PARALLEL_MAX |
|
|
|
export CPUS=$SDECFG_PARALLEL_MAX |
|
|
|
|
|
|
|
|
|
|
|
#Tools used to build toybox do not support -Os |
|
|
|
#Tools used to build toybox do not support -Os or -O2 |
|
|
|
var_remove_regex SYSGCC_WRAPPER_INSERT " " "-Os" |
|
|
|
var_remove_regex SYSGCC_WRAPPER_INSERT " " "-O.*" |
|
|
|
|
|
|
|
|
|
|
|
hook_add premake 1 'toybox_config' |
|
|
|
hook_add premake 1 'toybox_config' |
|
|
|
toybox_config() { |
|
|
|
toybox_config() { |
|
|
@ -30,6 +30,9 @@ toybox_config() { |
|
|
|
if pkginstalled binutils; then |
|
|
|
if pkginstalled binutils; then |
|
|
|
sed -i -e "s,^CONFIG_STRINGS=y,CONFIG_STRINGS=n," .config |
|
|
|
sed -i -e "s,^CONFIG_STRINGS=y,CONFIG_STRINGS=n," .config |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
if pkginstalled patch; then |
|
|
|
|
|
|
|
sed -i -e "s,^CONFIG_PATCH=y,CONFIG_PATCH=n," .config |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
eval $MAKE oldconfig CPUS=$CPUS |
|
|
|
eval $MAKE oldconfig CPUS=$CPUS |
|
|
|
} |
|
|
|
} |
|
|
|