Commit Graph

377 Commits

Author SHA1 Message Date
Sandeep Gundlupet Raju
32dbada167 layer: Fix PREFERRED_VERSION for zephyr-sdk-native
zephyr-sdk is a native recipe, So fix PREFERRED_VERSION for
zephyr-sdk-native.

Also update PREFERRED_VERSION for zephyr-sdk-native to 0.17.4 which is the
latest SDK version for Zephyr 4.x releases and to match with default
zephyr kernel version.

Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
2026-03-09 17:54:34 +08:00
Sandeep Gundlupet Raju
ffbe33aa89 zephyr-sdk: Add back sdk 0.16.9
Add back zephyr-sdk 0.16.9 as this is required for Zephyr LTS3 (v3.7)
and v3.7 version is not compatible with 0.17.x version. For more details
see https://github.com/zephyrproject-rtos/sdk-ng/wiki/Zephyr-Version-Compatibility#zephyr-sdk-version-compatibility-matrix

Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
2026-03-09 17:53:59 +08:00
Sandeep Gundlupet Raju
4007e17790 zephyr: Remove duplicate uninative configuration
Remove INHERIT of uninative and yocto-uninative.inc inclusion from
zephyr.conf as these are now provided by defaultsetup.conf which is
included by bitbake.conf by default.

This fixes the duplicate inclusion warning:
WARNING: Duplicate inclusion for /scratch/yocto/yp-master/sources/openembedded-core/meta/conf/distro/include/yocto-uninative.inc in /scratch/yocto/yp-master/sources/openembedded-core/meta/conf/distro/defaultsetup.conf

Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
2026-03-09 17:26:26 +08:00
Charles Dias
f3cda89989 README: improve runqemu examples and add supported machines section
Add QEMU run instructions to Quick Build, use "nographic" consistently
in all runqemu examples, and add a section listing supported machines.

Signed-off-by: Charles Dias <charlesdias.cd@outlook.com>
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
2026-02-10 11:39:03 +08:00
Charles Dias
e1a09a7320 qemu-cortex-a9: fix DEFAULTTUNE to cortexa9hf-neon
Change DEFAULTTUNE from "cortexa9" to "cortexa9hf-neon" so the
toolchain uses hard-float with NEON, matching what Zephyr expects
for the qemu_cortex_a9 target.

Signed-off-by: Charles Dias <charlesdias.cd@outlook.com>
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
2026-02-10 11:39:00 +08:00
Charles Dias
d53435096b machine: mps2/mps3: add missing QEMU and Zephyr board settings
Update MPS2 and MPS3 machine configurations:

- Add ZEPHYR_BOARD with the current Zephyr board identifiers
  (mps2/an385, mps2/an521/cpu0, mps3/corstone300/an547).
- Add QB_RNG = "" to disable virtio-rng, which is unsupported on
  these machines.
- Add QB_MEM to explicitly set memory (16 MB for mps2-an385,
  2048 MB for mps3-an547; mps2-an521 already had it).

Signed-off-by: Charles Dias <charlesdias.cd@outlook.com>
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
2026-02-10 11:38:56 +08:00
Charles Dias
77805d1faf machine: remove -nographic from QB_GRAPHICS
-nographic is not a graphics setting. Drop it from QB_GRAPHICS and let
users request headless mode via `runqemu nographic` when needed.

Signed-off-by: Charles Dias <charlesdias.cd@outlook.com>
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
2026-02-10 11:38:51 +08:00
Charles Dias
ae188a5cf0 zephyr-bsp: drop nios2 machine fragments (unsupported in Zephyr 4.2)
Zephyr 4.2 removed Nios II support, so building Zephyr targets for nios2
no longer works.

Signed-off-by: Charles Dias <charlesdias.cd@outlook.com>
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
2026-02-10 11:38:41 +08:00
Charles Dias
601a9c149d zephyr-qemuboot: use stable ELF symlink to avoid broken runqemu rootfs
do_bootconf_write() may update qemuboot.conf and the QEMU ELF symlink to a
new timestamped name while the ELF itself is reused from sstate and not
deployed, leaving a broken symlink and causing runqemu to fail with
"Can't find rootfs: ... .elf".

Fix by making zephyr-qemuboot use the stable link name
(${ZEPHYR_IMAGE_LINK_NAME}.elf / ${PN}-${MACHINE}.elf), which is
guaranteed to exist as a symlink created by zephyr-image.inc and always
points at the most recently deployed ELF.

Signed-off-by: Charles Dias <charlesdias.cd@outlook.com>
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
2026-02-10 11:33:43 +08:00
Charles Dias
ccb46eb650 qemu-x86: update QEMU configuration
Remove QB_MACHINE and use generic q35 machine, type=pc-q35-2.10 is not
supported.

Signed-off-by: Charles Dias <charlesdias.cd@outlook.com>
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
2026-02-04 14:32:38 +08:00
Charles Dias
8a9fe22a53 README: mention runqemu nographic
Signed-off-by: Charles Dias <charlesdias.cd@outlook.com>
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
2026-02-04 14:32:11 +08:00
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