|
|
@ -22,18 +22,38 @@ done |
|
|
|
. $base/package/*/uclibc/conffiles-functions.in |
|
|
|
|
|
|
|
runconf=0 |
|
|
|
var_append conffiles ' ' "$builddir/.config" |
|
|
|
|
|
|
|
hook_add premake 1 'busybox_config' |
|
|
|
busybox_config() { |
|
|
|
local BB_arch=$( echo $arch | arch2uname ) |
|
|
|
|
|
|
|
# generate default config rules |
|
|
|
default_config > $builddir/.config |
|
|
|
|
|
|
|
eval $MAKE defconfig ARCH=$BB_arch |
|
|
|
conffiles_loop 2 ARCH=$BB_arch |
|
|
|
} |
|
|
|
|
|
|
|
# add basic config |
|
|
|
var_append conffiles ' ' "$confdir/busybox.config" |
|
|
|
default_config() { |
|
|
|
echo "O CONFIG_MAKEDEVS" |
|
|
|
|
|
|
|
[ "$SDECFG_STATIC" != 1 ] || var_append conffiles ' ' "$confdir/static.config" |
|
|
|
if [ "$SDECFG_STATIC" == 1 ]; then |
|
|
|
echo "X CONFIG_STATIC" |
|
|
|
else |
|
|
|
echo "O CONFIG_STATIC" |
|
|
|
echo "X CONFIG_BUILD_LIBBUSYBOX" |
|
|
|
fi |
|
|
|
|
|
|
|
if [ "$SDECFG_PKG_BUSYBOX_ET" = 1 ] ; then |
|
|
|
echo "X CONFIG_PREFIX \"${SDECFG_PKG_BUSYBOX_ET_DIR#/}\"" |
|
|
|
elif [ "$SDECFG_PKG_BUSYBOX_SYMLINKS" = 0 ] ; then |
|
|
|
echo "X CONFIG_INSTALL_APPLET_DONT" |
|
|
|
echo "X CONFIG_PREFIX \"${root:-/}\"" |
|
|
|
else |
|
|
|
echo "X CONFIG_PREFIX \"${root:-/}\"" |
|
|
|
fi |
|
|
|
} |
|
|
|
|
|
|
|
# add custom/target configuration from $targetdir |
|
|
|
if [ -e $targetdir/busybox.config ] ; then |
|
|
@ -48,18 +68,7 @@ if [ "$SDECFG_PKG_BUSYBOX_ET" = 1 ] ; then |
|
|
|
var_append conffiles ' ' "$confdir/emergency.config" |
|
|
|
fi |
|
|
|
|
|
|
|
# FIXME: shouldn't emergency thing force the symlinks creation? (on config.in) |
|
|
|
|
|
|
|
if [ "$SDECFG_PKG_BUSYBOX_SYMLINKS" = 0 ] ; then |
|
|
|
makeinstopt='' |
|
|
|
hook_add postmake 5 'cp -v busybox $root/$bindir' |
|
|
|
else |
|
|
|
if [ "$SDECFG_PKG_BUSYBOX_ET" = 1 ] ; then |
|
|
|
var_append makeinstopt ' ' "CONFIG_PREFIX=${SDECFG_PKG_BUSYBOX_ET_DIR#/}" |
|
|
|
else |
|
|
|
var_append makeinstopt ' ' "CONFIG_PREFIX=$root" |
|
|
|
fi |
|
|
|
fi |
|
|
|
var_append conffiles ' ' $confdir/broken.config |
|
|
|
|
|
|
|
# save .config file for the future |
|
|
|
hook_add postdoc 9 'cp -v .config busybox.links $root/$docdir' |
|
|
|