All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bitbake.conf: require conf/multiconfig/${BB_CURRENT_MC}.conf
@ 2017-01-15 18:41 Juro Bystricky
  2017-01-20 13:36 ` Andreas Müller
  0 siblings, 1 reply; 4+ messages in thread
From: Juro Bystricky @ 2017-01-15 18:41 UTC (permalink / raw)
  To: openembedded-core; +Cc: jurobystricky

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]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
---
 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

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 40efb95..c8516a8 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -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
diff --git a/meta/conf/multiconfig/default.conf b/meta/conf/multiconfig/default.conf
new file mode 100644
index 0000000..e69de29
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] bitbake.conf: require conf/multiconfig/${BB_CURRENT_MC}.conf
  2017-01-15 18:41 [PATCH] bitbake.conf: require conf/multiconfig/${BB_CURRENT_MC}.conf Juro Bystricky
@ 2017-01-20 13:36 ` Andreas Müller
  2017-01-20 13:42   ` Burton, Ross
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Müller @ 2017-01-20 13:36 UTC (permalink / raw)
  To: Juro Bystricky
  Cc: jurobystricky, Patches and discussions about the oe-core layer

On Sun, Jan 15, 2017 at 7:41 PM, Juro Bystricky
<juro.bystricky@intel.com> wrote:
> 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]
>
> Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
> ---
>  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
>
> diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> index 40efb95..c8516a8 100644
> --- a/meta/conf/bitbake.conf
> +++ b/meta/conf/bitbake.conf
> @@ -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
> diff --git a/meta/conf/multiconfig/default.conf b/meta/conf/multiconfig/default.conf
> new file mode 100644
> index 0000000..e69de29
> --
> 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] bitbake.conf: require conf/multiconfig/${BB_CURRENT_MC}.conf
  2017-01-20 13:36 ` Andreas Müller
@ 2017-01-20 13:42   ` Burton, Ross
  2017-01-20 13:51     ` Andreas Müller
  0 siblings, 1 reply; 4+ messages in thread
From: Burton, Ross @ 2017-01-20 13:42 UTC (permalink / raw)
  To: Andreas Müller
  Cc: Juro Bystricky, Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 642 bytes --]

On 20 January 2017 at 13:36, Andreas Müller <schnitzeltony@googlemail.com>
wrote:

> | 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

[-- Attachment #2: Type: text/html, Size: 1346 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] bitbake.conf: require conf/multiconfig/${BB_CURRENT_MC}.conf
  2017-01-20 13:42   ` Burton, Ross
@ 2017-01-20 13:51     ` Andreas Müller
  0 siblings, 0 replies; 4+ messages in thread
From: Andreas Müller @ 2017-01-20 13:51 UTC (permalink / raw)
  To: Burton, Ross
  Cc: Juro Bystricky, Patches and discussions about the oe-core layer

On Fri, Jan 20, 2017 at 2:42 PM, Burton, Ross <ross.burton@intel.com> wrote:
>
> On 20 January 2017 at 13:36, Andreas Müller <schnitzeltony@googlemail.com>
> wrote:
>>
>> | 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
Ahh - I was missing latest bitbake. It sets BB_CURRENT_MC to 'default'
by default. Am back to build - thanks

Andreas


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-01-20 13:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-15 18:41 [PATCH] bitbake.conf: require conf/multiconfig/${BB_CURRENT_MC}.conf Juro Bystricky
2017-01-20 13:36 ` Andreas Müller
2017-01-20 13:42   ` Burton, Ross
2017-01-20 13:51     ` Andreas Müller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.