[meta-zephyr][PATCH] zephyr-kernel: add Zephyr RTOS version 2.4.0 support


Jon Mason
 

Update Zephyr to the latest version. Tested via zephyr-philosophers on
qemu-cortex-m3.

Signed-off-by: Jon Mason <jon.mason@arm.com>
---
classes/zephyr-kernel-src.bbclass | 10 +++++-----
...phyr-kernel-src_2.3.bb => zephyr-kernel-src_2.4.bb} | 0
2 files changed, 5 insertions(+), 5 deletions(-)
rename recipes-kernel/zephyr-kernel/{zephyr-kernel-src_2.3.bb => zephyr-kernel-src_2.4.bb} (100%)

diff --git a/classes/zephyr-kernel-src.bbclass b/classes/zephyr-kernel-src.bbclass
index 50e46af030ec..d2452231352d 100644
--- a/classes/zephyr-kernel-src.bbclass
+++ b/classes/zephyr-kernel-src.bbclass
@@ -1,18 +1,18 @@
#Set relevant variables based on Zephyr kernel version

-PREFERRED_VERSION_zephyr-kernel ??= "2.3.0"
+PREFERRED_VERSION_zephyr-kernel ??= "2.4.0"

SRCREV_FORMAT = "default_cmsis"
-SRCREV_default = "b8c78e254ff875680e99c9f131fbe285c4575927"
+SRCREV_default = "7a3b253ced7333f5c0269387a7f3ed1dee69739d"
SRCREV_cmsis = "542b2296e6d515b265e25c6b7208e8fea3014f90"


-SRC_URI = "git://github.com/zephyrproject-rtos/zephyr.git;protocol=https;branch=v2.3-branch;name=default \
+SRC_URI = "git://github.com/zephyrproject-rtos/zephyr.git;protocol=https;branch=v2.4-branch;name=default \
git://github.com/zephyrproject-rtos/cmsis.git;protocol=https;destsuffix=git/modules/cmsis;name=cmsis \
file://0001-cmake-add-yocto-toolchain.patch \
"

-PV = "2.3.0+git${SRCPV}"
+PV = "2.4.0+git${SRCPV}"

LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=fa818a259cbed7ce8bc2a22d35a464fc"
@@ -21,7 +21,7 @@ ZEPHYR_TEST_SRCDIR = "tests/legacy/kernel/"

python () {
src_pn = d.getVar('PREFERRED_VERSION_zephyr-kernel', True)
- if src_pn == '2.3.0':
+ if src_pn == '2.4.0':
return
else:
bb.error("Unsupported Zephyr kernel version requested")
diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src_2.3.bb b/recipes-kernel/zephyr-kernel/zephyr-kernel-src_2.4.bb
similarity index 100%
rename from recipes-kernel/zephyr-kernel/zephyr-kernel-src_2.3.bb
rename to recipes-kernel/zephyr-kernel/zephyr-kernel-src_2.4.bb
--
2.20.1

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