Commit Graph

228 Commits

Author SHA1 Message Date
Ross Burton
b06a891fde python3-junitparser: remove, unused
This recipe was added to meta-zephyr in de73bdba but nothing uses it.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-05-18 09:57:39 +08:00
Ross Burton
bfc13b9413 python3-junithtml: remove, unused
This recipe was added to meta-zephyr in de73bdba but nothing uses it.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-05-18 09:57:39 +08:00
Ross Burton
d485aba9ec python3-canopen: remove, unused
This recipe was added to meta-zephyr in de73bdba but nothing uses it.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-05-18 09:57:39 +08:00
Ross Burton
42ea2c8875 python3-breathe: remove, unused
This recipe was added to meta-zephyr in de73bdba but nothing uses it.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-05-18 09:57:39 +08:00
Ross Burton
9f1534e131 python3-anytree: remove, unused
This recipe was added to meta-zephyr in de73bdba but nothing uses it.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-05-18 09:57:39 +08:00
Ross Burton
08f4a94e52 python3-gitlint: remove, unused
This recipe was added to meta-zephyr in de73bdba but nothing uses it.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-05-18 09:57:39 +08:00
Ross Burton
774194051d python3-cbor: remove, unused and obsolete
Nothing in meta-zephyr uses python3-cbor, and as it hasn't had a release
since 2016 everyone using it should move to cbor2.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-05-18 09:57:39 +08:00
Ross Burton
5b8c96994a meta-zephyr-core/python3-pylink: remove, obviously unused
This recipe wasn't actually named *.bb, so it wasn't parsed at all, so
it can't have been used.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-05-11 16:54:50 +08:00
Ross Burton
6ae70d5afe meta-zephyr-core/python3-imgtool: remove, duplicate of meta-python recipe
This recipe has been in meta-python since kirkstone (94fc0589b).

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-05-11 16:54:50 +08:00
Ross Burton
cc2c545f7c meta-zephyr-core/python3-packaging: remove, duplicate of oe-core recipes
This recipe has been in oe-core since hardknott (c51fde1d).

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-05-11 16:54:50 +08:00
Ross Burton
9583da4bf1 meta-zephyr-core/python3-pyparsing: remove, duplicate of oe-core recipe
This recipe has been in oe-core since gatesgarth (182c1af2).

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-05-11 16:54:50 +08:00
Ross Burton
e5720a5650 meta-zephyr-core/python3-sphinx: remove, duplicate of oe-core recipe
This has been in oe-core since kirkstone (1899e59).

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-05-11 16:54:50 +08:00
Ross Burton
577d89fe43 meta-zephyr-core/python3-pygments: remove, duplicate of oe-core recipe
python3-pygments has been in oe-core since Dunfell (5c0d4e59).

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-05-11 16:54:50 +08:00
Stefan Schmidt
c49df43917 zephyr-openthread-rcp: Enable Thread 1.2 capabilities in RCP build
When running an up-to-date userspace component, like otbr-agent or
ot-daemon, with Thread 1.2 enabled we need a firmware matching this
capabilities.

Signed-off-by: Stefan Schmidt <stefan.schmidt@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-04-26 17:01:26 +08:00
Davide Gardenal
6544a70f57 generate-zephyr-machine: add leading whitespace to SRC_URI
Signed-off-by: Davide Gardenal <davide.gardenal@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-04-07 16:09:49 +08:00
Naveen Saini
409b674344 meta-zephyr-core: drop obsolete patches
These patches are not being applied and not required any more.

Already part of zephyr 2.7.1 and zephyr 3.0.0

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-03-28 15:33:25 +08:00
Andrei Gherzan
38109617f9 python3-pyelftools: Drop recipe in favour of oe-core
All the LAYERSERIES_COMPAT versions provide this recipe in oe-core.
Also, west seems to only depend on 0,26 which is provided even in
dunfell.

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-03-17 12:28:43 +08:00
Davide Gardenal
f32f0399e6 zephyr-kernel: Add CVE_PRODUCT to fix cve-check lookup fail
Add CVE_PRODUCT override to fix a lookup problem when performing cve-check,
if not setted it will search for the recipe name, that in this case depends
on the recipe used to build zephyr (eg. zephyr-philosophers)

Signed-off-by: Davide Gardenal <davide.gardenal@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-03-10 18:24:16 +08:00
Bartosz Golaszewski
d5dc10e556 zephyr-kernel: add support for zephyr v3.0.0
Add support for zephyr v3.0.0 and make it the preferred version.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-03-10 18:24:16 +08:00
Bartosz Golaszewski
9cbb7ee0a2 zephyr-kernel: drop support for zephyr v2.6.1
v2.7.1 is the LTS release and we'll be adding support fr v3.0.0 in the
subsequent patch. Drop support for v2.6.1.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-03-10 18:24:15 +08:00
Stefan Schmidt
423fd741d4 zephyr-openthread-rcp: add recipe for OpenThread radio co-processor sample
This builds the sample for the radio co-processor firmware with a specific
set of overlays to work over USB transport.

Signed-off-by: Stefan Schmidt <stefan.schmidt@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-02-28 20:30:57 +08:00
Jon Mason
005557e6d4 layers: add kirkstone support
Signed-off-by: Jon Mason <jon.mason@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-02-28 20:30:57 +08:00
Bartosz Golaszewski
86f09c2b4d zephyr-image: unify the image generation for tests and samples
Reuse the same code that generates zephyr samples for building tests.
This allows us to generate .bin files in all cases.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-02-11 14:03:28 +08:00
Stefan Schmidt
5518ca2b2e zephyr-flash-bossac.bbclass: Use internal bossac tool instead looking up PATH
Instead of looking in PATH on the host to find bossac we now depend on the
native variant we build and set the path to our yocto build tool.

Signed-off-by: Stefan Schmidt <stefan.schmidt@huawei.com>
Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-01-27 16:34:30 +08:00
Stefan Schmidt
bef4443f1d bossa-native: Add Arduino variant of the bossa flashing tool
This native recipe will be used to streamline the flashing of out
Arduino Nano 33 BLE target. Until now we have pointed to the full
Arduino IDE to get it installed and setting the PATH correctly before
any flashing would work. Having the tool supplied under the hood for
flashing will simplify documentation and support.

Signed-off-by: Stefan Schmidt <stefan.schmidt@huawei.com>
Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-01-27 16:34:30 +08:00
Eilís Ní Fhlannagáin
d78dd53937 README.txt: Document generate-zephyr-machine use
This commit just adds some documentation on how to use the machine
generation recipe.

Signed-off-by: Eilís Ní Fhlannagáin <elizabeth.flanagan@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-01-24 19:26:35 +08:00
Eilís Ní Fhlannagáin
e9cada633a zephyr-kernel: Modify recipes to work with new -DZEPHYR_MODULES
Some of these recipes ended up overriding the ZEPHYR_MODULES we set
elsewhere. As well, zephyr-lvgl tries to apply a patch we already apply.

Signed-off-by: Eilís Ní Fhlannagáin <elizabeth.flanagan@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-01-24 19:26:35 +08:00
Eilís Ní Fhlannagáin
ba8905724b recipes-meta: Abuse CMake to create OE machine definitions
Trying to handwrite all the machine defintions in zephyr would be an
enormous task. This commit creates a patch to zephy which abuses cmake
to output machine definitions for OE.

Not all machines can be generated this way and meta will need to be in
COREBASE/meta. It's mainly a prototype tool at this point to be able to
add all the machines this patch can figure out to meta-zephyr-bsp.

The hope is at a future date we can use it to autogenerate all the
machines we can from zephyr and use them in meta-zephyr-bsp.

Signed-off-by: Eilís Ní Fhlannagáin <elizabeth.flanagan@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-01-24 19:26:35 +08:00
Eilís Ní Fhlannagáin
72adc76eb6 zephyr-kernel-src-2.6.1: Add dtc patch.
fd8bf39779 should have also applied the
dtc.patch to the 2.6.1 kernel. This commits applies it, so both 2.7.1
and 2.6.1 work.

Signed-off-by: Eilís Ní Fhlannagáin <elizabeth.flanagan@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-01-24 19:26:35 +08:00
Eilís Ní Fhlannagáin
7ffa5f3b40 zephyr-kernel-src: Add complete zephyr source
Currently meta-zephyr only checks out a subset of the kernel source.
With the addition of being able to generate machine configs from
zephyr source, we need to be able to have the complete source if we
don't want things to break badly.

Signed-off-by: Eilís Ní Fhlannagáin <elizabeth.flanagan@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-01-24 19:26:35 +08:00
Eilís Ní Fhlannagáin
4ea9140deb zephyr.bbclass: Remove need for MACHINEOVERRIDES for ZEPHYR_MODULES
This commit removes the need for calling out ZEPHYR_MODULES via
MACHINEOVERRIDES. It uses west list to figure out what ZEPHYR_MODULES
are available and attaches them to -DZEPHYR_MODULES. Additional out of
tree modules may be added via ZEPHYR_EXTRA_MODULES.

Signed-off-by: Eilís Ní Fhlannagáin <elizabeth.flanagan@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-01-24 19:26:35 +08:00
Eilís Ní Fhlannagáin
de73bdbaba west: Add west and python dependencies
We will need west for a few things.

First, west knows about all the boards supported, so for automatic
machine generation, we will need to be able to run west boards.

Secondly, I want to get rid of the dependance on MACHINEOVERRIDES in
machine definition files. One of the things that drives me a bit mad
about how we're doing this is effort replication. Zephyr knows what the
machine is, and modules needed and includes. We shouldn't need to
replicate that effort. Future patches will address that through
automatic machine generation.

Signed-off-by: Eilís Ní Fhlannagáin <elizabeth.flanagan@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-01-24 19:26:35 +08:00
Eilís Ní Fhlannagáin
dde88ba40b meta-zephyr-core/bsp: Restructure into sublayers
This commit restructures meta-zephyr into meta-zephyr-core and
meta-zephyr-bsp. It moves machine definitions into meta-zephyr-bsp
in preparation for adding the autogenerated zephyr machines.

Signed-off-by: Eilís Ní Fhlannagáin <elizabeth.flanagan@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-01-24 19:26:35 +08:00
JingHuiTham
34576b0fd2 zephyr-kernel: upgrade 2.7.0 -> 2.7.1
Zephyr 2.7.1 release notes:
https://github.com/zephyrproject-rtos/zephyr/releases/tag/zephyr-v2.7.1

Signed-off-by: JingHuiTham <jing.hui.tham@intel.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-12-24 18:01:34 +08:00
Bartosz Golaszewski
d49163a875 zephyr-lvgl: new recipe
This adds a recipe for building the lvgl sample from mainline zephyr
source. We need to include one upstream patch that fixes a build problem
with lvgl and pull in two other modules or otherwise the default config
will fail to build. Currently only the nordic reference devkit for
nrf52840 is supported.

Big thanks to Eilís Ní Fhlannagáin <elizabeth.flanagan@huawei.com> for
helping me with that.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@huawei.com>
Signed-off-by: Eilís Ní Fhlannagáin <elizabeth.flanagan@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-11-17 12:56:32 +08:00
Bartosz Golaszewski
744cb49fbb zephyr-kernel-src: order git repos alphabetically
As the number of repos pulled gets bigger it's easier to parse them
if they are ordered alphabetically.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@huawei.com>
Signed-off-by: Eilís Ní Fhlannagáin <elizabeth.flanagan@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-11-17 12:56:32 +08:00
Naveen Saini
f12b76c94b zephyr-kernel-src: use the preferred coding style for multi-line assignments
This type of multi-line assignments is the most prevalent in well-known
layers and is more visually pleasing.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@huawei.com>
Signed-off-by: Eilís Ní Fhlannagáin <elizabeth.flanagan@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-11-17 12:56:32 +08:00
Bartosz Golaszewski
0da45d99a9 zephyr-kernel-src: order the SRCREV assignments alphabetically
It's easier to parse visually when those assignments are ordered.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@huawei.com>
Signed-off-by: Eilís Ní Fhlannagáin <elizabeth.flanagan@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-11-17 12:56:32 +08:00
Ross Burton
fd8bf39779 zephyr-kernel-src: fix build with latest dtc
dtc is now built with Meson, which changes the version string in the
--version output.  Zephyr matches this in a regular expression which now
fails, so update it to match both Make and Meson formats.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-11-16 20:08:34 +08:00
Jon Mason
2e67c62084 zephyr-kernel-test: remove unnecessary "+="
bitbake is now warning when "+=" is used with "remove", as it is not a
recommended combination.  Change the commented out versions that have
this combination to prevent anyone from using it.

Signed-off-by: Jon Mason <jon.mason@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-11-12 17:37:36 +08:00
Jon Mason
a67a190d6d zephyr-kernel-src: specify nobranch to avoid warnings
bitbake is now warning on git trees not having branches specified, with
errors similar to below:
WARNING: URL: git://github.com/zephyrproject-rtos/cmsis.git;protocol=https;destsuffix=git/modules/cmsis;name=cmsis does not set any branch parameter. The future default branch used by tools and repositories is uncertain and we will therefore soon require this is set in all git urls.

To get around this issue, specify "no-branch=1" for all SRC_URIs that do
not have a branch listed.

Signed-off-by: Jon Mason <jon.mason@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-11-08 17:30:29 +08:00
Naveen Saini
c01462a65a zephyr-kernel-src: set default preferred version to 2.7.0
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-10-25 09:30:14 +08:00
Naveen Saini
252a7a8912 zephyr-kernel/2.7.0: update to release tag Zephyr v2.7.0
https://github.com/zephyrproject-rtos/zephyr/releases/tag/zephyr-v2.7.0

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-10-25 09:30:14 +08:00
Ross Burton
9944d69567 lib/oeqa/controllers: extend search path
When multiple locations can provide modules in the same package, the
search path needs to be extended with pkgutil.extend_path.  Otherwise
the search will end early and not iterate through each of the providers.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-10-21 13:44:02 +08:00
Naveen Saini
8178bc751e zephyr-kernel/2.5.0: drop recipe
As v2.7.0 is being added, drop this version support

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-10-21 13:44:02 +08:00
Naveen Saini
0e58b3ef37 zephyr-kernel/2.7.0: add recipe
https://github.com/zephyrproject-rtos/zephyr/commits/v2.7-branch

Keeping the default PREFERRED_VERSION to 2.6.1 for now.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-10-21 13:44:02 +08:00
Jon Mason
44dcaa095d zephyr-kernel-test: disable broken tests
Add tests that don't currently compile successfully to the remove
list for each specific machine.

Signed-off-by: Jon Mason <jon.mason@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-10-07 11:24:17 +08:00
Arnaud Pouliquen
2e66889f20 zephyr-kernel: add openamp-rsc-table sample
The recipe to build rpmsg sample demonstrating messaging between
main core dunning Linux and and the coprocessor running Zephyr.
Useful to demonstrate inter-processing communication.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-10-06 13:27:22 +08:00
Arnaud Pouliquen
55524eacc4 conf: machine: add stm32mp157c-dk2 support
The board is based on STMicroelectronics STM32MP157 processor based on
a dual Cortex-A7 core and a Cortex-M4 core.

STM32MP1 family support depends on STM32 HAL and OpenAMP for
inter-core communication.

This change has been verified with zephyr-philosophers
and zephyr-shell sample applications on by loading Zephyr image
to Cortex-M4 core from Linux using remoteproc framework.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-10-06 13:27:22 +08:00
Jon Mason
e05b125c9c qemuzephyrrunner.py: use os._exit instead of sys.exit
sys.exit(0) can cause an error to be reported when the child exits, even
though not an error.  Since this is a child process, os._exit(0) is the
proper way to exit and not cause this issue.

Signed-off-by: Jon Mason <jon.mason@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2021-09-27 11:07:52 +08:00