Re: [meta-zephyr][PATCH v3] meta-zephyr-bsp: Add autogenerated machines.


Eilís Ní Fhlannagáin
 

On Thu, 13 Jan 2022 at 23:17, Jon Mason <jdmason@...> wrote:

On Wed, Jan 12, 2022 at 8:02 PM Eilís Ní Fhlannagáin <pidge@...> wrote:

From: Eilís Ní Fhlannagáin <elizabeth.flanagan@...>

This commit adds 382 autogenerated machines generated via
generate-zephyr-machines.bb. These machines have obviously not all been
tested due to hardware access, but should work out of box.

Signed-off-by: Eilís Ní Fhlannagáin <elizabeth.flanagan@...>
I'm still seeing errors:
TUNE_ARCH is unset. Please ensure your MACHINE configuration includes
a valid tune configuration file which will set this correctly.
Error, the PACKAGE_ARCHS variable (all any noarch
${PACKAGE_EXTRA_ARCHS:tune-${DEFAULTTUNE}} v2m_musca_s1) for
DEFAULTTUNE (None) does not contain TUNE_PKGARCH ().Toolchain tunings
invalid:
No tuning found for default multilib.
Yes. Some numbers on this after my poor laptop thrashed around on this
for a bit.

395 boards in zephyr 2.7.1
391 boards autogenerated via this patch
299 (including the original 8 in meta-zephyr) that can build zephyr-helloworld.

Compiling is taking forever, given the number of boards (and other
reasons). So, I can't give an exhaustively confirmed list, but a
lazy grep of files without "require" shows 70 of them.
Yes. Not a surprise on some of these. This patch tries to find the
needed tune and sometimes just can't for various reasons.


$ git grep -L require meta-zephyr-bsp/conf/machine/
meta-zephyr-bsp/conf/machine/adp-xc7k-ae350.conf
meta-zephyr-bsp/conf/machine/altera-max10.conf
meta-zephyr-bsp/conf/machine/beaglev-starlight-jh7100.conf
meta-zephyr-bsp/conf/machine/bl5340-dvk-cpunet.conf
meta-zephyr-bsp/conf/machine/em-starterkit-em11d.conf
meta-zephyr-bsp/conf/machine/em-starterkit-em7d-v22.conf
meta-zephyr-bsp/conf/machine/em-starterkit-em7d.conf
meta-zephyr-bsp/conf/machine/em-starterkit.conf
meta-zephyr-bsp/conf/machine/emsdp-em4.conf
meta-zephyr-bsp/conf/machine/emsdp-em5d.conf
meta-zephyr-bsp/conf/machine/emsdp-em6.conf
meta-zephyr-bsp/conf/machine/emsdp-em7d-esp.conf
meta-zephyr-bsp/conf/machine/emsdp-em7d.conf
meta-zephyr-bsp/conf/machine/emsdp-em9d.conf
meta-zephyr-bsp/conf/machine/emsdp.conf
meta-zephyr-bsp/conf/machine/esp32c3-devkitm.conf
meta-zephyr-bsp/conf/machine/generic-leon3.conf
meta-zephyr-bsp/conf/machine/gr716a-mini.conf
meta-zephyr-bsp/conf/machine/hifive-unleashed.conf
meta-zephyr-bsp/conf/machine/hifive-unmatched.conf
meta-zephyr-bsp/conf/machine/hifive1-revb.conf
meta-zephyr-bsp/conf/machine/hifive1.conf
meta-zephyr-bsp/conf/machine/hsdk-2cores.conf
meta-zephyr-bsp/conf/machine/hsdk.conf
meta-zephyr-bsp/conf/machine/include/tune-arc.inc
meta-zephyr-bsp/conf/machine/include/tune-iamcu.inc
meta-zephyr-bsp/conf/machine/include/tune-nios2.inc
meta-zephyr-bsp/conf/machine/intel-adsp-cavs15.conf
meta-zephyr-bsp/conf/machine/intel-adsp-cavs18.conf
<snips>
meta-zephyr-bsp/conf/machine/v2m-musca-b1.conf
meta-zephyr-bsp/conf/machine/v2m-musca-s1-ns.conf
meta-zephyr-bsp/conf/machine/v2m-musca-s1.conf
meta-zephyr-bsp/conf/machine/xt-sim-intel-s1000.conf
meta-zephyr-bsp/conf/machine/xt-sim.conf

Arm does care about the v2m boards, and we have a version of them in
meta-arm-bsp. So, I'm not being difficult for no reason. :)
No, please. Be difficult, Jon. This is a radical change and needs a
bit of review. I think maybe one solution here is (outside of making
the search for tunes a bit better which will never be perfect as from
an OE context as layers with a specific tune may not exist):

- Run this pointing MACHINE_TUNINGS at the meta-arm-bsp layer and a
few different layers. Or alternately, remove configs that exist in
other layers.
- Run a build on each machine generated to see if it passes helloworld
- Remove any broken machines that don't pass that smoke test.

Again, I'm very open to suggestions here. Outside the additional
machines however, the one thing this patch series does give us is
getting rid of MACHINEOVERRIDES for ZEPHYR_MODULES and lets west just
figure this out.

-b


Thanks,
Jon

Join yocto@lists.yoctoproject.org to automatically receive all group messages.