Skip to contentSkip to conversation

bitbake.conf: require conf/multiconfig/${BB_CURRENT_MC}.conf

PATCH In review Juro Bystricky 3 participants 4 messages Jan 15, 2017 – Jan 20, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bitbake.conf: require conf/multiconfig/${BB_CURRENT_MC}.conf

Presently there is no check to verify the existence of configuration files as listed in BBMULTICONFIG.
For example, BBMULTICONFIG = "foobar" in local.conf does not trigger an error or even a warning when there is no conf/multiconfig/foobar.conf. The missing file is silently ignored.

This patch changes the inclusion of all multiconfig configuration files as a non-optional requirement. If the file is missing, we get an error such as:

ERROR: ParseError at /data/master-multi/poky/meta/conf/bitbake.conf:704: Could not include required file conf/multiconfig/foobar.conf

Although the "default" configuration is not listed in BBMULTICONFIG, this change also requires the file multiconfig/default.conf to exist. The "default" (non-multiconfig) configuration is normally configured via local.conf, so although this file is required, it can/should be empty. This patch creates an empty file default.conf in meta/conf/multiconfig.

[YOCTO#10917]

---
 meta/conf/bitbake.conf             | 2 +-
 meta/conf/multiconfig/default.conf | 0
 2 files changed, 1 insertion(+), 1 deletion(-)
 create mode 100644 meta/conf/multiconfig/default.conf
meta/conf/bitbake.conf +1 -1
index 40efb95..c8516a8 100644
@@ -701,7 +701,7 @@ require conf/abi_version.conf
 include conf/site.conf
 include conf/auto.conf
 include conf/local.conf
-include conf/multiconfig/${BB_CURRENT_MC}.conf
+require conf/multiconfig/${BB_CURRENT_MC}.conf
 include conf/build/${BUILD_SYS}.conf
 include conf/target/${TARGET_SYS}.conf
 include conf/machine/${MACHINE}.conf
meta/conf/multiconfig/default.conf new file +0 -0
new file mode 100644
index 0000000..e69de29
Signature · 1 line
2.7.4
#1 lore raw
Quoted 43 lines · Juro Bystricky

Presently there is no check to verify the existence of configuration files as listed in BBMULTICONFIG.
For example, BBMULTICONFIG = "foobar" in local.conf does not trigger an error or even a warning when there is no conf/multiconfig/foobar.conf. The missing file is silently ignored.

This patch changes the inclusion of all multiconfig configuration files as a non-optional requirement. If the file is missing, we get an error such as:

ERROR: ParseError at /data/master-multi/poky/meta/conf/bitbake.conf:704: Could not include required file conf/multiconfig/foobar.conf

Although the "default" configuration is not listed in BBMULTICONFIG, this change also requires the file multiconfig/default.conf to exist. The "default" (non-multiconfig) configuration is normally configured via local.conf, so although this file is required, it can/should be empty. This patch creates an empty file default.conf in meta/conf/multiconfig.

[YOCTO#10917]

---
 meta/conf/bitbake.conf             | 2 +-
 meta/conf/multiconfig/default.conf | 0
 2 files changed, 1 insertion(+), 1 deletion(-)
 create mode 100644 meta/conf/multiconfig/default.conf
meta/conf/bitbake.conf +1 -1
index 40efb95..c8516a8 100644
@@ -701,7 +701,7 @@ require conf/abi_version.conf
 include conf/site.conf
 include conf/auto.conf
 include conf/local.conf
-include conf/multiconfig/${BB_CURRENT_MC}.conf
+require conf/multiconfig/${BB_CURRENT_MC}.conf
 include conf/build/${BUILD_SYS}.conf
 include conf/target/${TARGET_SYS}.conf
 include conf/machine/${MACHINE}.conf
meta/conf/multiconfig/default.conf new file +0 -1
new file mode 100644
index 0000000..e69de29
--
Quoted 2 lines

2.7.4

This makes multiconfig mandatory for me:

| ERROR: ParseError at /home/superandy/oe-core/sources/openembedded-core/meta/conf/bitbake.conf:704:
Could not include required file conf/multiconfig/${BB_CURRENT_MC}.conf

What am I missing - e.g bitbake update?

Andreas

#2 lore raw
Quoted 5 lines · Andreas Müller

| ERROR: ParseError at /home/superandy/oe-core/sources/openembedded-core/ meta/conf/bitbake.conf:704:
Could not include required file conf/multiconfig/${BB_CURRENT_MC}.conf

The patch creates the file that it requires:

 meta/conf/bitbake.conf             | 2 +-
 meta/conf/multiconfig/default.conf | 0

Did it really look for /multiconfig/default.conf or is the fact that the path is not expanded the problem here? oe-core master needs bitbake from git, which has changed the behaviour for getVar() (expands by default).

Ross

#3 lore raw
Quoted 12 lines · Ross
Quoted 5 lines · Andreas Müller

| ERROR: ParseError at

/home/superandy/oe-core/sources/openembedded-core/meta/conf/bitbake.conf:704:
Could not include required file conf/multiconfig/${BB_CURRENT_MC}.conf

The patch creates the file that it requires:

Quoted 8 lines
 meta/conf/bitbake.conf             | 2 +-
 meta/conf/multiconfig/default.conf | 0

Did it really look for /multiconfig/default.conf or is the fact that the path is not expanded the problem here? oe-core master needs bitbake from git, which has changed the behaviour for getVar() (expands by default).

Ross

Ahh - I was missing latest bitbake. It sets BB_CURRENT_MC to 'default' by default. Am back to build - thanks

Andreas