summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWojciech Zmuda <wojciech.zmuda@huawei.com>2020-12-14 15:14:40 +0000
committerNaveen Saini <naveen.kumar.saini@intel.com>2020-12-16 09:07:43 +0800
commita181f90bf8c4448573e1546bbe9b7447082a39e1 (patch)
treec505eef0ada632872a72ca32809eea6d3589ee02
parent4814135be386e50288e95d156e5de30823b74d39 (diff)
downloadmeta-zephyr-a181f90bf8c4448573e1546bbe9b7447082a39e1.tar.gz
meta-zephyr-a181f90bf8c4448573e1546bbe9b7447082a39e1.tar.bz2
meta-zephyr-a181f90bf8c4448573e1546bbe9b7447082a39e1.zip
zephyr-kernel: clone STM32 HAL
HAL for STM32 chipsets is one of Zephyr subprojects. It is downloaded by default by west. Clone the HAL repository so it can be used for building images for boards with STM32 chips. Signed-off-by: Wojciech Zmuda <wojciech.zmuda@huawei.com> Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
-rw-r--r--classes/zephyr-kernel-src.bbclass2
-rw-r--r--recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc1
2 files changed, 3 insertions, 0 deletions
diff --git a/classes/zephyr-kernel-src.bbclass b/classes/zephyr-kernel-src.bbclass
index ea9b30b..4e05182 100644
--- a/classes/zephyr-kernel-src.bbclass
+++ b/classes/zephyr-kernel-src.bbclass
@@ -6,10 +6,12 @@ SRCREV_FORMAT = "default_cmsis"
SRCREV_default = "7a3b253ced7333f5c0269387a7f3ed1dee69739d"
SRCREV_cmsis = "542b2296e6d515b265e25c6b7208e8fea3014f90"
SRCREV_nordic = "d8a6ea9695ddf792bb18bb6035c13b1daac5d79c"
+SRCREV_stm32 = "f0e11398128ac9abdff713da5d3035e6c96e9b86"
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 \
git://github.com/zephyrproject-rtos/hal_nordic.git;protocol=https;destsuffix=git/modules/hal/nordic;name=nordic \
+ git://github.com/zephyrproject-rtos/hal_stm32.git;protocol=https;destsuffix=git/modules/hal/stm32;name=stm32 \
file://0001-cmake-add-yocto-toolchain.patch \
"
diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc b/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
index a1f640d..c7c894e 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
+++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
@@ -17,6 +17,7 @@ ZEPHYR_MAKE_OUTPUT = "zephyr.elf"
EXTRA_OECMAKE = " -DZEPHYR_BASE=${S} -DZEPHYR_GCC_VARIANT=yocto -DBOARD=${BOARD} -DARCH=${ARCH} -DCROSS_COMPILE=${CROSS_COMPILE} -DZEPHYR_SYSROOT=${ZEPHYR_SYSROOT} -DZEPHYR_TOOLCHAIN_VARIANT=yocto"
EXTRA_OECMAKE_append_arm = " -DZEPHYR_MODULES=${S}/modules/cmsis"
EXTRA_OECMAKE_append_nordic = "\;${S}/modules/hal/nordic"
+EXTRA_OECMAKE_append_stm32 = "\;${S}/modules/hal/stm32"
export ZEPHYR_BASE="${S}"