126 Commits

Author SHA1 Message Date
Lee Chee Yang
c159694d97 zephyr-kernel-4.2.0: fix unable to find gen_kobject_list.py
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
2025-12-31 08:46:38 +08:00
Lee Chee Yang
1f7b2ab1d2 libgloss: update bbappend to match 4.5.0
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
2025-12-31 08:45:57 +08:00
Lee Chee Yang
de8df6445e zephyr-kernel: update to 4.2.0
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
2025-10-06 14:25:09 +08:00
Lee Chee Yang
06d2b0e52a zephyr-sdk: update to 0.17.4
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
2025-10-06 14:24:37 +08:00
Sandeep Gundlupet Raju
3efff04359 meta-zephyr: Update README files
Update README files with following.

 - Build instructions
 - Maintainers lists and patch submission

Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
2025-08-19 09:17:39 +08:00
Sandeep Gundlupet Raju
f6552b7813 zephyr-kernel-common: Add Board extension support
Add board extension support variables where user can specify the
BOARD_ROOT variable for out-of-tree custom boards.

Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
2025-08-18 08:30:52 +08:00
Sandeep Gundlupet Raju
bbeeb12eb8 classes-recipe: Convert zephyr-sample inc file to bbclass
Convert recipes-kernel/zephyr-kernel/zephyr-sample.inc file to
classes-recipe/zephyr-sample.bbclass. Using this bbclass user can
inherit this bbclass from any layer to build custom or out-of-tree
zephyr applications.

Also update the recipes to inherit zephyr-sample bbclass.

Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
2025-08-18 07:55:33 +08:00
Sandeep Gundlupet Raju
a0e2e4e094 zephyr-kernel: Use relative path
Use relative path for all the include files to avoid overlaying the
include files.

Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
2025-08-18 07:54:34 +08:00
Sandeep Gundlupet Raju
3c8650c86a zephyr-qemuboot: Use image artifact file in qemuimage
Use image artifacts output file in qemuimage link.

Before:
zephyr-helloworld-image-{MACHINE}.elf -> zephyr-helloworld.elf

After:
zephyr-helloworld-image-{MACHINE}.elf -> zephyr-helloworld-{MACHINE}-{DATETIME}.elf

Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
2025-08-18 07:52:46 +08:00
Sandeep Gundlupet Raju
e33069d814 classes: Move classes to match bbclass scope functionality
Move classes to classes-recipe as appropriate to match bbclass
scope functionality.

zephyr.bbclass, zephyr-qemuboot.bbclass, zephyrtest.bbclass are
inherited by recipes hence move to classes-recipe.

Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
2025-08-18 07:52:28 +08:00
Sandeep Gundlupet Raju
d8f6fac0db zephyr-image: Add image artifacts to output files
Inherit image-artifact-names bbclass in zephyr-image.inc and add
image artifacts to output generated files.

Before:
zephyr-helloworld.elf

After:
zephyr-helloworld-{MACHINE}-{DATETIME}.elf

Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
2025-08-18 07:52:17 +08:00
Sandeep Gundlupet Raju
c21d75720f zephyr-kernel-src: Remove PREFERRED_VERSION_zephyr-kernel
Remove PREFERRED_VERSION_zephyr-kernel from zephyr-kernel-src.inc
as this variable should be in global configuration file and override
from local.conf file.

Set default stable PREFERRED_VERSION for kernel and sdk in layer.conf
file.

Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
2025-08-18 07:50:42 +08:00
Sandeep Gundlupet Raju
d3d21db68c zephyr-sdk: Add new inc file
Add zephyr-sdk.inc file and move all the common sdk implementation
zephyr-sdk.inc file to support multiple version of sdk.

Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
2025-08-18 07:48:40 +08:00
Sandeep Gundlupet Raju
20fdef3ce3 zephyr-kernel-src.inc.jinja: Update script to generate srcrev
Update script to generate correct SRCREV and other info to match
poky variable updates.

Also use "version" instead of "short_version" for SRC_URI_PATCHES.

Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
2025-08-18 07:47:40 +08:00
Lee Chee Yang
9d250a4df2 recipes: update to match S/UNPACKDIR changes
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
2025-08-15 09:11:04 +08:00
Lee Chee Yang
eb7d04624e layer.conf: Update to whinlatter release series
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
2025-08-14 08:21:00 +08:00
Naveen Saini
62ad6a56f3 zephyr-toolchain-zephyr.inc: Fix variable assignment whitespace
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2025-04-29 11:35:48 +08:00
Naveen Saini
e010f34312 meta-zephyr: Fix variable assignment whitespace
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2025-04-22 12:46:52 +08:00
Naveen Saini
a6b9bb58d1 zephyr-kernel: drop support for v3.5.0 and v3.6.0
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2025-04-22 12:46:52 +08:00
Naveen Saini
5cf1e534cb zephyr-kernel: Add support for v4.1.0
https://github.com/zephyrproject-rtos/zephyr/releases/tag/v4.1.0

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2025-04-22 12:46:52 +08:00
Nicholas Lowell
660188752e zephyr-core/zephyr-kernel: specify newlib capability with cross-compile toolchain
Zephyr upstream reconfigurations now require either the CMake variable
TOOLCHAIN_HAS_NEWLIB or Kconfig NEWLIB_LIBC_SUPPORTED in order to build
with FULL_LIBC_SUPPORTED and NEWLIB.

This cross-compile toolchain does indeed have full newlib support available
so we need to now specify that so it can be used.

Signed-off-by: Nicholas Lowell <Nicholas.Lowell@lexmark.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2025-04-10 12:46:07 +08:00
Naveen Saini
dc75d6db11 layer.conf: update LAYERSERIES_COMPAT to use walnascar
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2025-04-09 14:39:28 +08:00
Vince Chang
dec3591e1f zephyr-sdk: Upgrade to version 0.16.9
Signed-off-by: Vince Chang <vince_chang@aspeedtech.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2024-12-13 15:06:14 +08:00
Naveen Saini
6c98151197 libgloss: add bbappend
It carries patch to disable warnings as error for x86 32-bit
(qemu-x86) machine.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2024-09-30 09:27:54 +08:00
Ben Cownley
e411e5b839 topics/baicow01/zephyr-toolchain-set: Set zephyr toolchain work dir
Currently the work dir generated by the zephyr toolchain is incorrect
Setting it to correctly reflect the arch and zephyr stage

Signed-off-by: Ben Cownley <ben.cownley@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2024-09-27 09:58:50 +08:00
Ben Cownley
e4ad333f5b topics/baicow01/zephyr-ARCH-remove: Remove ARCH from meta-zephyr
meta-zephyr current passes an ARCH variable to the CMake build
It's widely believed this is no longer necessary as it is
inferred from the BOARD variable

Signed-off-by: Ben Cownley <ben.cownley@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2024-09-27 09:58:45 +08:00
Naveen Saini
07d144796b x86: fix build for up_squared boards
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2024-09-13 19:16:43 +08:00
Naveen Saini
c4eaf487e2 zephyr-kernel: build with v3.7.0
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2024-09-13 13:57:19 +08:00
Naveen Saini
f84fdf5e28 zephyr-image.inc: fix runqemu failure
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2024-09-13 13:57:09 +08:00
Jamin Lin
0f06f56f68 zephyr-kernel: support to deploy users customize image
In the previous design, it only deployed zephyr.elf,
zephyr.bin and zephyr.efi.
If users want to deploy their customize images, they should update do_install task.
Add to check "ZEPHYR_MAKE_OUTPUT" to deploy users customize images and zephyr images.

Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2024-09-12 22:46:54 +08:00
Jamin Lin
aa00f54e43 zephyr-kernel: Add source version to support v3.7.0
This inc file is created by generate-version.py

Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2024-09-12 22:46:54 +08:00
Naveen Saini
614c5519e9 layer.conf: update LAYERSERIES_COMPAT to use styhead
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2024-09-12 22:46:54 +08:00
Naveen Saini
987e47a476 zephyr-sdk: use UNPACKDIR
do_unpack: Bitbake Fetcher Error: UnpackError("subdir
argument isn't a subdirectory of unpack root"

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2024-06-12 09:56:55 +08:00
Naveen Saini
5bd0c9b17c layer.conf: update LAYERSERIES_COMPAT to use scarthgap
Drop compatibility to nanbield.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2024-03-18 11:32:52 +08:00
Naveen Saini
3be7e3e1ed zephyr-sdk: Upgrade to version 0.16.5-1
https://github.com/zephyrproject-rtos/sdk-ng/releases/tag/v0.16.5-1

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2024-03-07 13:40:35 +08:00
Naveen Saini
279523c224 zephyr-kernel: Add support for v3.6.0
https://github.com/zephyrproject-rtos/zephyr/releases/tag/v3.6.0

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2024-03-07 13:40:35 +08:00
Naveen Saini
dc45d347b2 x86: Refresh patch to include efi fix for up_squared board
Include fix for generating efi binary file for the up_squared board, which
was missed in v3.5 upgrade.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2023-11-07 22:09:07 +08:00
Naveen Saini
62b6d7e43b zephyr-sdk: Upgrade to version 0.16.3
https://github.com/zephyrproject-rtos/sdk-ng/releases/tag/v0.16.3

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Tested-by: Jon Mason <jon.mason@arm.com>
2023-11-06 09:51:48 +08:00
Naveen Saini
af3fa206c8 zephyr-kernel: Drop support for v3.4.0
v3.5.0 is available, now drop support for old version.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Tested-by: Jon Mason <jon.mason@arm.com>
2023-11-06 09:51:48 +08:00
Naveen Saini
8bc1b8e811 zephyr-kernel: Add support for v3.5.0
https://github.com/zephyrproject-rtos/zephyr/releases/tag/v3.5.0

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Tested-by: Jon Mason <jon.mason@arm.com>
2023-11-06 09:51:48 +08:00
Jon Mason
39cbc2eec9 zephyr-core/zephyr-kernel-tests: remove now passing tests from exclude list
Retested the zephyr kernel tests to verify which ones are now building
and which ones are now passing CI on qemu machines.  They are organized
as follows:
* Any test that fails to be configured is added to a list in
  zephyr-kernel-test.inc
* Any test that fails to compile for all machines is added to a list in
  zephyr-kernel-test.inc
* Any test that fails to compile for a specific machine is added to a
  machine specific list in zephyr-kernel-test.inc
* Any test that fails CI is added to a list in the relevant machine yml
  file

Hopefully by making this way of doing things uniform, it will enable
better testing and CI.

It is worth noting that with this version of zephyr, gen_isr_table and
other tests are now working for a number of machines.

Signed-off-by: Jon Mason <jon.mason@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2023-11-06 09:42:52 +08:00
Naveen Saini
fa76b75bd6 layer.conf: update LAYERSERIES_COMPAT to use nanbield
Drop langdale and mickledore.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2023-09-13 10:32:11 +08:00
Naveen Saini
a29a29f32a zephyr-sdk: Upgrade to version 0.16.1
https://github.com/zephyrproject-rtos/sdk-ng/releases/tag/v0.16.1

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Tested-by: Jon Mason <jon.mason@arm.com>
2023-06-26 10:15:14 +08:00
Naveen Saini
5af99cadbf zephyr-kernel: Drop support for v3.3.0
v3.4.0 is available, now drop support for old version.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Tested-by: Jon Mason <jon.mason@arm.com>
2023-06-26 10:15:14 +08:00
Naveen Saini
1b0236a573 zephyr-kernel: Add support for v3.4.0
https://github.com/zephyrproject-rtos/zephyr/releases/tag/v3.4.0

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Tested-by: Jon Mason <jon.mason@arm.com>
2023-06-26 10:15:14 +08:00
Naveen Saini
00ae4c13c0 zephyr-kernel-src-3.3.0: fix build with gcc-13
Configuration error:
| -- Configuring done (4.9s)
| CMake Error in CMakeLists.txt:
|   Target "zephyr_interface" contains relative path in its
|   INTERFACE_INCLUDE_DIRECTORIES:
|
|     "include-fixed"

With GCC-13, limits.h and syslimits.h header files
are always being installed to include folder.
https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=be9dd80f933480

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2023-05-31 13:50:16 +08:00
Tan Wen Yan
953fbe1238 zephyr-core/zephyr.bbclass: Fix do_menuconfig
Update do_menuconfig to run ninja menuconfig as the default
CMake generator is ninja.

Also fix directory path for .config.

[YOCTO #15040]

Signed-off-by: Tan Wen Yan <wen.yan.tan@intel.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2023-05-31 13:50:03 +08:00
Naveen Saini
b0173e045c zephyr-kernel: Include efi binary generation fix for Raptor Lake too
Extend patch to include efi binary generation issue fix
for x86 Raptor Lake board too.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2023-05-15 11:00:25 +08:00
Peter Hoyes
5fde315017 zephyr-core/zephyr-kernel: Fix arm32 binutils 2.40 incompatibility
Armv7 boards are currently failing with binutils 2.40 if certain
statements are combined on the same line without a semicolon. Introduce
a patch to fix this by inserting a semicolon.

Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2023-04-20 15:02:55 +08:00
Peter Hoyes
ffd9279d0d zephyr-core/zephyr-kernel: Use SHA for zcbor module
Re-run the generate-version.py script for 3.3.0 to convert the tag for
zcbor to a SHA.

Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2023-04-20 15:02:55 +08:00