summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2022-08-31 13:11:49 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-02-16 17:11:11 +0000
commitd369a45ae7c6b82f7ae337a56a673eed5afc461b (patch)
tree0c055c9a747592b76e9d60f66387937f0676a71b
parent44311c454d0b0856f58cfa6fa60669903b2ba3af (diff)
downloadpoky-d369a45ae7c6b82f7ae337a56a673eed5afc461b.tar.gz
meta/conf: move default configuration templates into meta/conf/templates/default
This sets the ground for standardizing (and enforcing) the location of configuration templates: let's start with the default one. Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes-global/sanity.bbclass6
-rw-r--r--meta/conf/templates/default/conf-notes.txt (renamed from meta/conf/conf-notes.txt)0
-rwxr-xr-xscripts/oe-setup-builddir6
3 files changed, 6 insertions, 6 deletions
diff --git a/meta/classes-global/sanity.bbclass b/meta/classes-global/sanity.bbclass
index c90fc84b76..2d1ff7072c 100644
--- a/meta/classes-global/sanity.bbclass
+++ b/meta/classes-global/sanity.bbclass
@@ -42,7 +42,7 @@ BBLAYERS_CONF_UPDATE_FUNCS += " \
42 42
43SANITY_DIFF_TOOL ?= "meld" 43SANITY_DIFF_TOOL ?= "meld"
44 44
45SANITY_LOCALCONF_SAMPLE ?= "${COREBASE}/meta*/conf/local.conf.sample" 45SANITY_LOCALCONF_SAMPLE ?= "${COREBASE}/meta*/conf/templates/default/local.conf.sample"
46python oecore_update_localconf() { 46python oecore_update_localconf() {
47 # Check we are using a valid local.conf 47 # Check we are using a valid local.conf
48 current_conf = d.getVar('CONF_VERSION') 48 current_conf = d.getVar('CONF_VERSION')
@@ -62,7 +62,7 @@ is a good way to visualise the changes."""
62 raise NotImplementedError(failmsg) 62 raise NotImplementedError(failmsg)
63} 63}
64 64
65SANITY_SITECONF_SAMPLE ?= "${COREBASE}/meta*/conf/site.conf.sample" 65SANITY_SITECONF_SAMPLE ?= "${COREBASE}/meta*/conf/templates/default/site.conf.sample"
66python oecore_update_siteconf() { 66python oecore_update_siteconf() {
67 # If we have a site.conf, check it's valid 67 # If we have a site.conf, check it's valid
68 current_sconf = d.getVar('SCONF_VERSION') 68 current_sconf = d.getVar('SCONF_VERSION')
@@ -82,7 +82,7 @@ is a good way to visualise the changes."""
82 raise NotImplementedError(failmsg) 82 raise NotImplementedError(failmsg)
83} 83}
84 84
85SANITY_BBLAYERCONF_SAMPLE ?= "${COREBASE}/meta*/conf/bblayers.conf.sample" 85SANITY_BBLAYERCONF_SAMPLE ?= "${COREBASE}/meta*/conf/templates/default/bblayers.conf.sample"
86python oecore_update_bblayers() { 86python oecore_update_bblayers() {
87 # bblayers.conf is out of date, so see if we can resolve that 87 # bblayers.conf is out of date, so see if we can resolve that
88 88
diff --git a/meta/conf/conf-notes.txt b/meta/conf/templates/default/conf-notes.txt
index cfd1f1977b..cfd1f1977b 100644
--- a/meta/conf/conf-notes.txt
+++ b/meta/conf/templates/default/conf-notes.txt
diff --git a/scripts/oe-setup-builddir b/scripts/oe-setup-builddir
index a13860c7d9..89ae30f609 100755
--- a/scripts/oe-setup-builddir
+++ b/scripts/oe-setup-builddir
@@ -62,7 +62,7 @@ fi
62 62
63unset SHOWYPDOC 63unset SHOWYPDOC
64if [ -z "$OECORELOCALCONF" ]; then 64if [ -z "$OECORELOCALCONF" ]; then
65 OECORELOCALCONF="$OEROOT/meta/conf/local.conf.sample" 65 OECORELOCALCONF="$OEROOT/meta/conf/templates/default/local.conf.sample"
66fi 66fi
67if [ ! -r "$BUILDDIR/conf/local.conf" ]; then 67if [ ! -r "$BUILDDIR/conf/local.conf" ]; then
68 cat <<EOM 68 cat <<EOM
@@ -77,7 +77,7 @@ EOM
77fi 77fi
78 78
79if [ -z "$OECORELAYERCONF" ]; then 79if [ -z "$OECORELAYERCONF" ]; then
80 OECORELAYERCONF="$OEROOT/meta/conf/bblayers.conf.sample" 80 OECORELAYERCONF="$OEROOT/meta/conf/templates/default/bblayers.conf.sample"
81fi 81fi
82if [ ! -r "$BUILDDIR/conf/bblayers.conf" ]; then 82if [ ! -r "$BUILDDIR/conf/bblayers.conf" ]; then
83 cat <<EOM 83 cat <<EOM
@@ -117,7 +117,7 @@ EOM
117fi 117fi
118 118
119if [ -z "$OECORENOTESCONF" ]; then 119if [ -z "$OECORENOTESCONF" ]; then
120 OECORENOTESCONF="$OEROOT/meta/conf/conf-notes.txt" 120 OECORENOTESCONF="$OEROOT/meta/conf/templates/default/conf-notes.txt"
121fi 121fi
122[ ! -r "$OECORENOTESCONF" ] || cat "$OECORENOTESCONF" 122[ ! -r "$OECORENOTESCONF" ] || cat "$OECORENOTESCONF"
123unset OECORENOTESCONF 123unset OECORENOTESCONF