Browse Source

busybox: Enhanced to handle busybox/$module/ as an overlay directory automaticly

legacy/next/gcc
Alejandro Mery 16 years ago
parent
commit
d301121673
1 changed files with 18 additions and 4 deletions
  1. +18
    -4
      pkg_conf/busybox.conf

+ 18
- 4
pkg_conf/busybox.conf

@ -13,16 +13,30 @@
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
# don't forget to unset this later
BB_MNEMOSYNE_DIR="$base/target/$SDECFG_TRG_MNEMOSYNE/busybox"
bb_mnemosyne_overlay=
bb_mnemosyne_overlay_apply()
{
local x=
for x in $bb_mnemosyne_overlay; do
overlay_apply "$x"
done
}
hook_add postdoc 5 'bb_mnemosyne_overlay_apply'
bb_mnemosyne_append()
{
local x=
local y=
for x; do
if [ -s "$BB_MNEMOSYNE_DIR/$x.config" ]; then
var_append conffiles ' ' $BB_MNEMOSYNE_DIR/$x.config
fi
# busybox config settings
y="$BB_MNEMOSYNE_DIR/$x.config"
[ ! -s "$y" ] || var_append conffiles ' ' "$y"
# overlay directories
y="$BB_MNEMOSYNE_DIR/$x"
[ ! -d "$y/" ] || var_append bb_mnemosyne_overlay ' ' "$y"
done
}

Loading…
Cancel
Save