diff --git a/pkg_conf/busybox.conf b/pkg_conf/busybox.conf index 4109045..92a1ae4 100644 --- a/pkg_conf/busybox.conf +++ b/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 }