Prepare master for new framework integration
[AGL/meta-agl.git] / scripts / .aglsetup_genconfig.bash
index 323479c..cf06622 100755 (executable)
@@ -223,15 +223,15 @@ function append_fragment() {
        echo >>$basefile
        echo "# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #" >>$basefile
        echo "# fragment { " >>$basefile
-       [[ -f $f ]] && echo "# $f" >>$basefile || true
+       [[ -n $f ]] && echo "# $f" >>$basefile || true
        echo "#" >>$basefile
        [[ -n "$label" ]] && echo "$label" >>$basefile
-       [[ -f $f ]] && cat $f >>$basefile || true
+       [[ -n $f ]] && cat $f >>$basefile || true
        echo "" >>$basefile
        echo "#" >>$basefile
        echo "# }" >>$basefile
        echo "# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #" >>$basefile
-       [[ -f $f ]] && echo $f >>$BUILDDIR/conf/fragments.log || true
+       [[ -n $f ]] && echo $f >>$BUILDDIR/conf/fragments.log || true
 }
 
 function execute_setup() {
@@ -496,6 +496,7 @@ EOF
 [[ $FORCE -eq 1 ]] && rm -f \
        $BUILDDIR/conf/local.conf \
        $BUILDDIR/conf/bblayers.conf \
+       $BUILDDIR/conf/templateconf.cfg \
        $BUILDDIR/conf/setup.* \
        $BUILDDIR/conf/*.log