366 Commits

Author SHA1 Message Date
cheeyanglee
95f464af4a README: update build guide with bitbake-setup
update build guide to use bitbake-setup.

also drop the reference to poky

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
2026-01-02 10:21:40 +08:00
Lee Chee Yang
3097b198fe zephyr-master.conf.json: add config for bitbake-setup
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
2026-01-02 10:20:04 +08:00
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
1672b7f892 qemu-cortex-a9: Fix runqemu errors
Fix below runqemu errors for qemu-cortex-a9 machine.

runqemu - ERROR - Failed to run qemu: qemu-system-arm: -device virtio-rng-pci,rng=rng0: No 'PCI' bus found for device 'virtio-rng-pci'

Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
2025-08-18 07:47:54 +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
Sandeep Gundlupet Raju
6ddd53fc4f README: Update instructions to fix warning
In README instructions DISTRO variable assigment doesn't have
whitespace, due to this bitbake throws the warning messages as
shown below.

WARNING: /scratch/sandeep/yocto/yp-master/build-zep/conf/local.conf:291 has a lack of whitespace around the assignment: 'DISTRO="zephyr"'

Hence update instructions to fix warning messages.

Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
2025-06-06 18:10:42 +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
666d816b48 qemu-x86.conf: remove invalid option
qemu-system-i386: -no-acpi: invalid option

https://github.com/zephyrproject-rtos/zephyr/issues/72191

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2024-09-30 09:27:59 +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
763c72fc30 README.txt: update mailing list
Patches should now be sent to yocto-patches@
https://lists.yoctoproject.org/g/yocto-patches

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2024-04-11 09:55:32 +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
51d1063859 intel-x86-64.conf: add intel_ prefix to x86 board names
Use newly added naming convention (intel_).

03905f7e55
2b757f1eca

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
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
Jon Mason
11c2ab756f CI: Update to the latest kas version
Signed-off-by: Jon Mason <jon.mason@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2023-11-06 09:42:39 +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