|
|
|
@ -23,7 +23,7 @@ var_remove_regex SYSGCC_WRAPPER_INSERT " " "-O.*"
|
|
|
|
|
|
|
|
|
|
hook_add premake 1 'toybox_config' |
|
|
|
|
toybox_config() { |
|
|
|
|
eval $MAKE defconfig CPUS=$CPUS |
|
|
|
|
eval $MAKE defconfig |
|
|
|
|
if pkginstalled time; then |
|
|
|
|
sed -i -e "s,^CONFIG_TIME=y,CONFIG_TIME=n," .config |
|
|
|
|
fi |
|
|
|
@ -36,8 +36,15 @@ toybox_config() {
|
|
|
|
|
# always disable what e2fsprogs includes |
|
|
|
|
sed -i -e "s,^CONFIG_CHATTR=y,CONFIG_CHATTR=n," .config |
|
|
|
|
sed -i -e "s,^CONFIG_LSATTR=y,CONFIG_LSATTR=n," .config |
|
|
|
|
eval $MAKE oldconfig CPUS=$CPUS |
|
|
|
|
eval $MAKE -j1 oldconfig |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var_append makeopt ' ' 'CPUS=$CPUS toybox' |
|
|
|
|
hook_add premake 5 'toybox_build' |
|
|
|
|
toybox_build() { |
|
|
|
|
export CC STRIP |
|
|
|
|
export HOSTCC=$BUILD_CC |
|
|
|
|
unset CROSS_COMPILE |
|
|
|
|
eval $MAKE toybox V=1 |
|
|
|
|
} |
|
|
|
|
makeopt= |
|
|
|
|
var_append makeinstopt ' ' "CPUS=$CPUS PREFIX=$root/" |
|
|
|
|