diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-01-24 16:13:06 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-01-25 11:30:31 +0000 |
| commit | faa05c878142c6271f7ea9aab4423ac90356440b (patch) | |
| tree | 3a2f5d3e0a114fb9b5da5e3cf166aadff48d3307 /meta | |
| parent | bdecbe35d80eea96bca96fe34a4b9dc372d8f752 (diff) | |
| download | poky-faa05c878142c6271f7ea9aab4423ac90356440b.tar.gz | |
bitbake.conf: Handle empty BB_CURRENT_MC
Bitbake is about to change the default value of this from "default" to "". The
original reason for this was to make this kind of include file usage easier.
Instead we were going to complicate bitbake code having to map one value into
the other.
Instead, stop using "default" and put a slightly horrible bit of code in bitbake.conf
as an alternative.
This means a "default.conf" in the multiconfig directory will stop working but this
was never something anyone was expected to use.
The eSDK code also needs updating for this change.
(From OE-Core rev: ff469ab2e865063bbc529031bbfd76cba5040073)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/classes-recipe/populate_sdk_ext.bbclass | 2 | ||||
| -rw-r--r-- | meta/conf/bitbake.conf | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes-recipe/populate_sdk_ext.bbclass b/meta/classes-recipe/populate_sdk_ext.bbclass index 3019dad0f3..de4799f013 100644 --- a/meta/classes-recipe/populate_sdk_ext.bbclass +++ b/meta/classes-recipe/populate_sdk_ext.bbclass | |||
| @@ -768,7 +768,7 @@ fakeroot python do_populate_sdk_ext() { | |||
| 768 | 768 | ||
| 769 | # FIXME hopefully we can remove this restriction at some point, but the eSDK | 769 | # FIXME hopefully we can remove this restriction at some point, but the eSDK |
| 770 | # can only be built for the primary (default) multiconfig | 770 | # can only be built for the primary (default) multiconfig |
| 771 | if d.getVar('BB_CURRENT_MC') != 'default': | 771 | if d.getVar('BB_CURRENT_MC') != '': |
| 772 | bb.fatal('The extensible SDK can currently only be built for the default multiconfig. Currently trying to build for %s.' % d.getVar('BB_CURRENT_MC')) | 772 | bb.fatal('The extensible SDK can currently only be built for the default multiconfig. Currently trying to build for %s.' % d.getVar('BB_CURRENT_MC')) |
| 773 | 773 | ||
| 774 | # eSDK dependencies don't use the traditional variables and things don't work properly if they are set | 774 | # eSDK dependencies don't use the traditional variables and things don't work properly if they are set |
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index ba7817b7e5..8b607088c6 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
| @@ -832,7 +832,7 @@ OE_FRAGMENTS_PREFIX ?= "conf/fragments" | |||
| 832 | OE_FRAGMENTS_METADATA_VARS ?= "BB_CONF_FRAGMENT_SUMMARY BB_CONF_FRAGMENT_DESCRIPTION" | 832 | OE_FRAGMENTS_METADATA_VARS ?= "BB_CONF_FRAGMENT_SUMMARY BB_CONF_FRAGMENT_DESCRIPTION" |
| 833 | addfragments ${OE_FRAGMENTS_PREFIX} OE_FRAGMENTS OE_FRAGMENTS_METADATA_VARS | 833 | addfragments ${OE_FRAGMENTS_PREFIX} OE_FRAGMENTS OE_FRAGMENTS_METADATA_VARS |
| 834 | 834 | ||
| 835 | require conf/multiconfig/${BB_CURRENT_MC}.conf | 835 | require ${@"conf/multiconfig/${BB_CURRENT_MC}.conf" if "${BB_CURRENT_MC}" != "" else ""} |
| 836 | include conf/machine/${MACHINE}.conf | 836 | include conf/machine/${MACHINE}.conf |
| 837 | include conf/machine-sdk/${SDKMACHINE}.conf | 837 | include conf/machine-sdk/${SDKMACHINE}.conf |
| 838 | require conf/cve-check-map.conf | 838 | require conf/cve-check-map.conf |
