busybox: use config generated by `make menuconfig` as a base

Fields like CONFIG_SYSROOT are modified with `sed`.
This commit is contained in:
Leonid Pliushch 2019-11-11 14:57:43 +02:00
parent d62c70b392
commit 3d3b629763
2 changed files with 438 additions and 366 deletions

View File

@ -21,12 +21,10 @@ termux_step_pre_configure() {
}
termux_step_configure() {
cp $TERMUX_PKG_BUILDER_DIR/busybox.config .config
echo "CONFIG_SYSROOT=\"$TERMUX_STANDALONE_TOOLCHAIN/sysroot\"" >> .config
echo "CONFIG_PREFIX=\"$TERMUX_PREFIX\"" >> .config
echo "CONFIG_CROSS_COMPILER_PREFIX=\"${TERMUX_HOST_PLATFORM}-\"" >> .config
echo "CONFIG_FEATURE_CROND_DIR=\"$TERMUX_PREFIX/var/spool/cron\"" >> .config
echo "CONFIG_SV_DEFAULT_SERVICE_DIR=\"$TERMUX_PREFIX/var/service\"" >> .config
sed -e "s|@TERMUX_PREFIX@|$TERMUX_PREFIX|g" \
-e "s|@TERMUX_SYSROOT@|$TERMUX_STANDALONE_TOOLCHAIN/sysroot|g" \
-e "s|@TERMUX_HOST_PLATFORM@|${TERMUX_HOST_PLATFORM}|g" \
$TERMUX_PKG_BUILDER_DIR/busybox.config > .config
make oldconfig
}

File diff suppressed because it is too large Load Diff