scripts/oe-setup-builddir: make it known where configurations come from

"with some default values" isn't clear; if the user wants to change or
inspect the default values and their history, we should help them find
where they are. This becomes especially important when using template
configs other than poky's.

(From OE-Core rev: ec34783ffc34eb9e9697f1b192c5a0043f1ca2c6)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alexander Kanavin 2022-08-01 11:33:12 +02:00 committed by Richard Purdie
parent 71d0913599
commit eefe7a1cd1

View File

@ -74,9 +74,10 @@ fi
if [ ! -r "$BUILDDIR/conf/local.conf" ]; then if [ ! -r "$BUILDDIR/conf/local.conf" ]; then
cat <<EOM cat <<EOM
You had no conf/local.conf file. This configuration file has therefore been You had no conf/local.conf file. This configuration file has therefore been
created for you with some default values. You may wish to edit it to, for created for you from $OECORELOCALCONF
example, select a different MACHINE (target hardware). See conf/local.conf You may wish to edit it to, for example, select a different MACHINE (target
for more information as common configuration options are commented. hardware). See conf/local.conf for more information as common configuration
options are commented.
EOM EOM
cp -f "$OECORELOCALCONF" "$BUILDDIR/conf/local.conf" cp -f "$OECORELOCALCONF" "$BUILDDIR/conf/local.conf"
@ -89,8 +90,9 @@ fi
if [ ! -r "$BUILDDIR/conf/bblayers.conf" ]; then if [ ! -r "$BUILDDIR/conf/bblayers.conf" ]; then
cat <<EOM cat <<EOM
You had no conf/bblayers.conf file. This configuration file has therefore been You had no conf/bblayers.conf file. This configuration file has therefore been
created for you with some default values. To add additional metadata layers created for you from $OECORELAYERCONF
into your configuration please add entries to conf/bblayers.conf. To add additional metadata layers into your configuration please add entries
to conf/bblayers.conf.
EOM EOM