Browse Source

* changed busybox to generate the initial config rules instead of using a hardcoded file

git-svn-id: svn://svn.opensde.net/opensde/package/trunk@20559 10447126-35f2-4685-b0cf-6dd780d3921f
early
Alejandro Mery 18 years ago
parent
commit
3eec064f6c
  1. 4
      base/busybox/broken.config
  2. 39
      base/busybox/busybox.conf
  3. 13
      base/busybox/busybox.config
  4. 2
      base/busybox/static.config

4
base/busybox/broken.config

@ -0,0 +1,4 @@
# broken applets
O CONFIG_READAHEAD
O CONFIG_TASKSET
O CONFIG_ETHER_WAKE

39
base/busybox/busybox.conf

@ -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'

13
base/busybox/busybox.config

@ -1,13 +0,0 @@
# No DEVFS support
O CONFIG_DEVFS
O CONFIG_DEVFSD
# No archean hardcoded /dev either
O CONFIG_MAKEDEVS
# broken applets
O CONFIG_READAHEAD
O CONFIG_TASKSET
O CONFIG_ETHER_WAKE
X CONFIG_DEVPTS

2
base/busybox/static.config

@ -1,2 +0,0 @@
X CONFIG_STATIC
X CONFIG_DISABLE_SHARED
Loading…
Cancel
Save