|
|
@ -22,17 +22,31 @@ |
|
|
|
|
|
|
|
runconf=0 |
|
|
|
|
|
|
|
. $base/package/mnemoc/uclibc/functions.in |
|
|
|
|
|
|
|
var_append premake 1 'auto_config 2' |
|
|
|
|
|
|
|
# add basic config for being ROCK-aware |
|
|
|
var_append conffiles ' ' "$confdir/rock.config" |
|
|
|
|
|
|
|
if [ "$ROCKCFG_PKG_BUSYBOX_ET" = 1 ] ; then |
|
|
|
prefix="${ROCKCFG_PKG_BUSYBOX_ET_DIR#/}" |
|
|
|
set_confopt |
|
|
|
|
|
|
|
var_append flistroot ' ' "${prefix%%/*}" |
|
|
|
var_append makeopt ' ' "DOSTATIC=true" |
|
|
|
var_append conffiles ' ' "$confdir/emergency.config" |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
# FIXME: shouldn't emergency thing force the symlinks creation? (on config.in) |
|
|
|
|
|
|
|
if [ "$ROCKCFG_PKG_BUSYBOX_SYMLINKS" = 0 ] ; then |
|
|
|
makeinstopt='' |
|
|
|
postmake='cp busybox $root/$bindir' |
|
|
|
postmake='cp -v busybox $bindir' |
|
|
|
else |
|
|
|
var_append makeinstopt ' ' "PREFIX=$root/$prefix" |
|
|
|
# FIXME: does it works? |
|
|
|
var_append makeopt ' ' "PREFIX=$root/$prefix" |
|
|
|
fi |
|
|
|
|
|
|
|
# save .config file for the future |
|
|
|
var_append postmake 9 'cp -v .config busybox.links $docdir' |