All of lore.kernel.org
 help / color / mirror / Atom feed
* Cannot get bitbake multiconfig to work
@ 2019-03-13 10:03 Mike Looijmans
  2019-03-18 11:15 ` Richard Purdie
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Looijmans @ 2019-03-13 10:03 UTC (permalink / raw)
  To: OE-core

I think I've done everything, but cannot figure out what step I missed.

I am using yesterday's "thud" branches:

BB_VERSION           = "1.40.0"
BUILD_SYS            = "x86_64-linux"
meta                 = "HEAD:fbb688ab3eeca1bbfbaaaaffd8c81fd8052bcc68"
meta-oe
meta-multimedia
meta-networking
meta-python          = "HEAD:6ef9657068492d4644079c88f2adee9c3cac9543"


I created a conf/multiconf directory with a "pmu.conf" file (and others)

$ cat conf/multiconfig/pmu.conf
MACHINE="zynqmp-pmu"
DISTRO="xilinx-standalone"
GCCVERSION="7.%"
TMPDIR="${TOPDIR}/pmutmp"

I added to my local.conf (and removed the MACHINE setting there):

BBMULTICONFIG = "pmu ..."

Now when I invoke bitbake with the multiconfig syntax, it completely ignores that:

$ bitbake multiconfig:pmu:pmu-firmware
ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
     Either fix the cause of this error or at your own risk disable the 
checker (see sanity.conf).
     Following is the list of potential problems / advisories:

     Please set a MACHINE in your local.conf or environment


Apparently, bitbake doesn't even care about the "multiconfig:" syntax, I get 
the same response when I type:
$ bitbake multiconfig:blah:pmu-firmware
$ bitbake multiconfig:blah:blah
$ bitbake blah:blah:blah

I can add a "MACHINE?=" to local.conf, which results in a build for that 
machine and nothing from the pmu.conf gets ever used at all.

So what step did I miss?


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

* Re: Cannot get bitbake multiconfig to work
  2019-03-13 10:03 Cannot get bitbake multiconfig to work Mike Looijmans
@ 2019-03-18 11:15 ` Richard Purdie
       [not found]   ` <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.a99fb5d8-cc6c-4a3e-a4ad-a9061f2e0005.dc07b4be-8b33-4a3d-b939-cd4cc47c7fd5@emailsignatures365.codetwo.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2019-03-18 11:15 UTC (permalink / raw)
  To: Mike Looijmans, OE-core

On Wed, 2019-03-13 at 10:03 +0000, Mike Looijmans wrote:
> I think I've done everything, but cannot figure out what step I
> missed.
> 
> I am using yesterday's "thud" branches:
> 
> BB_VERSION           = "1.40.0"
> BUILD_SYS            = "x86_64-linux"
> meta                 =
> "HEAD:fbb688ab3eeca1bbfbaaaaffd8c81fd8052bcc68"
> meta-oe
> meta-multimedia
> meta-networking
> meta-python          =
> "HEAD:6ef9657068492d4644079c88f2adee9c3cac9543"
> 
> 
> I created a conf/multiconf directory with a "pmu.conf" file (and
> others)
> 
> $ cat conf/multiconfig/pmu.conf
> MACHINE="zynqmp-pmu"
> DISTRO="xilinx-standalone"
> GCCVERSION="7.%"
> TMPDIR="${TOPDIR}/pmutmp"
> 
> I added to my local.conf (and removed the MACHINE setting there):
> 
> BBMULTICONFIG = "pmu ..."
> 
> Now when I invoke bitbake with the multiconfig syntax, it completely
> ignores that:
> 
> $ bitbake multiconfig:pmu:pmu-firmware
> ERROR:  OE-core's config sanity checker detected a potential
> misconfiguration.
>      Either fix the cause of this error or at your own risk disable
> the 
> checker (see sanity.conf).
>      Following is the list of potential problems / advisories:
> 
>      Please set a MACHINE in your local.conf or environment
> 
> 
> Apparently, bitbake doesn't even care about the "multiconfig:"
> syntax, I get 
> the same response when I type:
> $ bitbake multiconfig:blah:pmu-firmware
> $ bitbake multiconfig:blah:blah
> $ bitbake blah:blah:blah
> 
> I can add a "MACHINE?=" to local.conf, which results in a build for
> that 
> machine and nothing from the pmu.conf gets ever used at all.
> 
> So what step did I miss?


The piece most people miss when thinking about multiconfig is that
local.conf still needs to be valid as one of the configurations. Did
you try setting MACHINE to something valid in local.conf and then
building the pmu multiconfig?

Cheers,

Richard



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

* Re: Cannot get bitbake multiconfig to work
       [not found]           ` <DB7PR04MB5260B9653799DEC3007746D696410@DB7PR04MB5260.eurprd04.prod.outlook.com>
@ 2019-03-20 13:49             ` richard.purdie
  0 siblings, 0 replies; 3+ messages in thread
From: richard.purdie @ 2019-03-20 13:49 UTC (permalink / raw)
  To: Mike Looijmans, OE-core

On Wed, 2019-03-20 at 13:44 +0000, Mike Looijmans wrote:
> I tried providing MACHINE in local.conf, which just resulted in a
> build for that machine, and whatever multiconfig I passed on the
> commandline still got completely ignored. I even put "garbage" into
> the pmu.conf file and it was happy with that too.

Its hard for me to know what to say to that.

We have a test for multiconfig now:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=d9018a3d9c828551c465b68b27920ec4681524ae

If you configure a multiconfig and then try and build it with something
like "bitbake multiconfig:pmu:XXX" then it should build XXX for the
MACHINE set in the pmu multiconfig. You are hard setting things like
the MACHINE in the pmu.conf?

Does:

bitbake -e -b multiconfig:pmu:bash | grep MACHINE=

show what you'd expect?

If its still not working we need to be able to replicate the
configuration that isn't working or at least see the local.conf and
pmu.conf that don't work. We simply don't have enough info other than
to speculate on what might be wrong.

Cheers,

Richard



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

end of thread, other threads:[~2019-03-20 13:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-13 10:03 Cannot get bitbake multiconfig to work Mike Looijmans
2019-03-18 11:15 ` Richard Purdie
     [not found]   ` <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.a99fb5d8-cc6c-4a3e-a4ad-a9061f2e0005.dc07b4be-8b33-4a3d-b939-cd4cc47c7fd5@emailsignatures365.codetwo.com>
     [not found]     ` <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.763ce73e-6205-4019-bec9-01cad35df181.df7353f9-1420-4af9-920c-af948b3280d2@emailsignatures365.codetwo.com>
     [not found]       ` <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.820697f9-bebc-4872-bcbe-1b38e7cfdfbf.9c5c634b-6d16-4185-8819-dc9672664807@emailsignatures365.codetwo.com>
     [not found]         ` <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.8b4a2dd3-a699-45a1-848d-b428d186e5a5.c66ff264-ed5d-41a9-af29-2418ad1b8346@emailsignatures365.codetwo.com>
     [not found]           ` <DB7PR04MB5260B9653799DEC3007746D696410@DB7PR04MB5260.eurprd04.prod.outlook.com>
2019-03-20 13:49             ` richard.purdie

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.