Convert to new override syntax

Use the convert-overrides.py to convert to new syntax and fixed
some additional changes manually.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
This commit is contained in:
Naveen Saini
2021-08-02 16:18:00 +08:00
parent 80276ffd01
commit de481c4b3b
41 changed files with 86 additions and 86 deletions

View File

@@ -48,7 +48,7 @@ do_menuconfig[nostamp] = "1"
do_menuconfig[dirs] = "${B}" do_menuconfig[dirs] = "${B}"
addtask menuconfig after do_configure addtask menuconfig after do_configure
python do_devshell_prepend () { python do_devshell:prepend () {
# Most likely we need to manually edit prj.conf... # Most likely we need to manually edit prj.conf...
os.chdir(d.getVar('ZEPHYR_SRC_DIR', True)) os.chdir(d.getVar('ZEPHYR_SRC_DIR', True))
} }

View File

@@ -5,4 +5,4 @@
require conf/machine/include/stm32mp1-cortex-m4.inc require conf/machine/include/stm32mp1-cortex-m4.inc
ARCH_96b-avenger96 = "arm" ARCH:96b-avenger96 = "arm"

View File

@@ -5,4 +5,4 @@
require conf/machine/include/nrf52.inc require conf/machine/include/nrf52.inc
ZEPHYR_INHERIT_CLASSES += "zephyr-flash-pyocd" ZEPHYR_INHERIT_CLASSES += "zephyr-flash-pyocd"
ARCH_96b-nitrogen = "arm" ARCH:96b-nitrogen = "arm"

View File

@@ -5,5 +5,5 @@
require conf/machine/include/nrf52.inc require conf/machine/include/nrf52.inc
ZEPHYR_INHERIT_CLASSES += "zephyr-flash-bossac" ZEPHYR_INHERIT_CLASSES += "zephyr-flash-bossac"
ARCH_arduino-nano-33-ble = "arm" ARCH:arduino-nano-33-ble = "arm"

View File

@@ -2,7 +2,7 @@ DEFAULTTUNE ?= "arc"
TUNE_ARCH = "arc" TUNE_ARCH = "arc"
TUNE_PKGARCH = "arc" TUNE_PKGARCH = "arc"
TUNE_FEATURES_tune-arc = "littleendian" TUNE_FEATURES:tune-arc = "littleendian"
TUNE_CCARGS = "" TUNE_CCARGS = ""
TUNEVALID[littleendian] = "Little endian mode" TUNEVALID[littleendian] = "Little endian mode"

View File

@@ -22,10 +22,10 @@ TUNEVALID[armv6m] = "Enable Cortex-M0 specific processor optimizations"
TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'armv6m', ' -march=armv6-m', '', d)}" TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'armv6m', ' -march=armv6-m', '', d)}"
MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv6m', 'armv6m:', '' ,d)}" MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv6m', 'armv6m:', '' ,d)}"
ARMPKGARCH_tune-cortexm0 = "cortexm0" ARMPKGARCH:tune-cortexm0 = "cortexm0"
TUNE_FEATURES_tune-cortexm0 = "${TUNE_FEATURES_tune-armv6} cortexm0" TUNE_FEATURES:tune-cortexm0 = "${TUNE_FEATURES:tune-armv6} cortexm0"
PACKAGE_EXTRA_ARCHS_tune-cortexm0 = "${PACKAGE_EXTRA_ARCHS_tune-armv6m} cortexm0-vfp" PACKAGE_EXTRA_ARCHS:tune-cortexm0 = "${PACKAGE_EXTRA_ARCHS:tune-armv6m} cortexm0-vfp"
TUNE_FEATURES_tune-cortexm0 = "armv6m vfp cortexm0 thumb no-thumb-interwork soft" TUNE_FEATURES:tune-cortexm0 = "armv6m vfp cortexm0 thumb no-thumb-interwork soft"

View File

@@ -10,12 +10,12 @@ TUNEVALID[armv7m] = "Enable Cortex-M3 specific processor optimizations"
TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'armv7m', ' -march=armv7-m', '', d)}" TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'armv7m', ' -march=armv7-m', '', d)}"
MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv7m', 'armv7m:', '' ,d)}" MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv7m', 'armv7m:', '' ,d)}"
TUNE_PKGARCH_tune-cortexm3 = "cortexm3" TUNE_PKGARCH:tune-cortexm3 = "cortexm3"
ARMPKGARCH_tune-cortexm3 = "armv7m" ARMPKGARCH:tune-cortexm3 = "armv7m"
PACKAGE_EXTRA_ARCHS_tune-cortexm3 ="cortexm3" PACKAGE_EXTRA_ARCHS:tune-cortexm3 ="cortexm3"
TUNE_FEATURES_tune-cortexm3 = "armv7m vfp cortexm3" TUNE_FEATURES:tune-cortexm3 = "armv7m vfp cortexm3"
PACKAGE_EXTRA_ARCHS_tune-cortexm3 = "${PACKAGE_EXTRA_ARCHS_tune-armv7at} armv7m-vfp" PACKAGE_EXTRA_ARCHS:tune-cortexm3 = "${PACKAGE_EXTRA_ARCHS:tune-armv7at} armv7m-vfp"
TUNE_CCARGS_MFLOAT = "soft" TUNE_CCARGS_MFLOAT = "soft"

View File

@@ -10,10 +10,10 @@ TUNEVALID[armv7m] = "Enable Cortex-M4 specific processor optimizations"
TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'armv7m', ' -march=armv7e-m', '', d)}" TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'armv7m', ' -march=armv7e-m', '', d)}"
MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv7m', 'armv7m:', '' ,d)}" MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv7m', 'armv7m:', '' ,d)}"
TUNE_PKGARCH_tune-cortexm4 = "cortexm4" TUNE_PKGARCH:tune-cortexm4 = "cortexm4"
ARMPKGARCH_tune-cortexm4 = "armv7m" ARMPKGARCH:tune-cortexm4 = "armv7m"
PACKAGE_EXTRA_ARCHS_tune-cortexm4 ="cortexm4" PACKAGE_EXTRA_ARCHS:tune-cortexm4 ="cortexm4"
TUNE_FEATURES_tune-cortexm4 = "armv7m vfp cortexm4" TUNE_FEATURES:tune-cortexm4 = "armv7m vfp cortexm4"
PACKAGE_EXTRA_ARCHS_tune-cortexm4 = "${PACKAGE_EXTRA_ARCHS_tune-armv7at} armv7m-vfp armv7m" PACKAGE_EXTRA_ARCHS:tune-cortexm4 = "${PACKAGE_EXTRA_ARCHS:tune-armv7at} armv7m-vfp armv7m"

View File

@@ -3,9 +3,9 @@ DEFAULTTUNE ?= "iamcu"
TARGET_OS_iamcu = "elfiamcu" TARGET_OS_iamcu = "elfiamcu"
TARGET_ARCH = "i586" TARGET_ARCH = "i586"
TUNE_FEATURES_tune-iamcu = "iamcu" TUNE_FEATURES:tune-iamcu = "iamcu"
TUNE_CCARGS = "-miamcu -m32" TUNE_CCARGS = "-miamcu -m32"
TUNE_ARCH = "i586" TUNE_ARCH = "i586"
TUNEVALID[iamcu] = "Intel MCU" TUNEVALID[iamcu] = "Intel MCU"
PACKAGE_EXTRA_ARCHS_tune-iamcu = "iamcu" PACKAGE_EXTRA_ARCHS:tune-iamcu = "iamcu"

View File

@@ -4,9 +4,9 @@ DEFAULTTUNE ?= "nios2"
TUNE_ARCH = "nios2" TUNE_ARCH = "nios2"
TUNE_PKGARCH = "nios2" TUNE_PKGARCH = "nios2"
TUNE_FEATURES_tune-nios2 = "nios2" TUNE_FEATURES:tune-nios2 = "nios2"
TUNE_CCARGS = "" TUNE_CCARGS = ""
TUNEVALID[nios2] = "Altera Nios2" TUNEVALID[nios2] = "Altera Nios2"
PACKAGE_EXTRA_ARCHS_tune-nios2 = "nios2" PACKAGE_EXTRA_ARCHS:tune-nios2 = "nios2"

View File

@@ -4,7 +4,7 @@
require conf/machine/include/tune-corei7-common.inc require conf/machine/include/tune-corei7-common.inc
ARCH_intel-x86-64 = "x86" ARCH:intel-x86-64 = "x86"
# Supported Boards: # Supported Boards:
# ZEPHYR_BOARD ?= "acrn" # ZEPHYR_BOARD ?= "acrn"

View File

@@ -5,4 +5,4 @@
require conf/machine/include/nrf52.inc require conf/machine/include/nrf52.inc
ZEPHYR_INHERIT_CLASSES += "zephyr-flash-pyocd" ZEPHYR_INHERIT_CLASSES += "zephyr-flash-pyocd"
ARCH_nrf52840dk-nrf52840 = "arm" ARCH:nrf52840dk-nrf52840 = "arm"

View File

@@ -14,4 +14,4 @@ QB_OPT_APPEND = "-nographic -vga none"
QB_CPU = "-cpu cortex-m3" QB_CPU = "-cpu cortex-m3"
QB_RNG = "" QB_RNG = ""
ARCH_qemu-cortex-m3 = "arm" ARCH:qemu-cortex-m3 = "arm"

View File

@@ -13,4 +13,4 @@ QB_MACHINE = "-machine altera_10m50_zephyr"
QB_OPT_APPEND = "-nographic" QB_OPT_APPEND = "-nographic"
QB_CPU = "-cpu nios2" QB_CPU = "-cpu nios2"
ARCH_qemu-nios2 = "nios2" ARCH:qemu-nios2 = "nios2"

View File

@@ -11,7 +11,7 @@ ZEPHYR_INHERIT_CLASSES += "zephyr-qemuboot"
QB_SYSTEM_NAME = "qemu-system-i386" QB_SYSTEM_NAME = "qemu-system-i386"
QB_MACHINE = "-machine type=pc-q35-2.10" QB_MACHINE = "-machine type=pc-q35-2.10"
QB_OPT_APPEND = "-nographic -no-acpi" QB_OPT_APPEND = "-nographic -no-acpi"
QB_CPU_x86 = "-cpu qemu32,+nx,+pae" QB_CPU:x86 = "-cpu qemu32,+nx,+pae"
QB_CPU_KVM_x86 = "-cpu kvm32" QB_CPU_KVM:x86 = "-cpu kvm32"
ARCH_qemu-x86 = "x86" ARCH:qemu-x86 = "x86"

View File

@@ -3,7 +3,7 @@
# ARC specific # ARC specific
# #
######################################################################## ########################################################################
LIC_FILES_CHKSUM_arc = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ LIC_FILES_CHKSUM:arc = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \ file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \
file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \ file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \
file://COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674 \ file://COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674 \
@@ -12,11 +12,11 @@ LIC_FILES_CHKSUM_arc = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
file://newlib/libc/sys/linux/linuxthreads/LICENSE;md5=73640207fbc79b198c7ffd4ad4d97aa0" file://newlib/libc/sys/linux/linuxthreads/LICENSE;md5=73640207fbc79b198c7ffd4ad4d97aa0"
#Tag arc-2016.03 #Tag arc-2016.03
SRCREV_arc = "e4da0f88abe8dd2a0b947bcf7cb8b3736ab94f33" SRCREV:arc = "e4da0f88abe8dd2a0b947bcf7cb8b3736ab94f33"
SRC_URI_arc = "git://github.com/foss-for-synopsys-dwc-arc-processors/newlib.git;branch=arc-2.3" SRC_URI:arc = "git://github.com/foss-for-synopsys-dwc-arc-processors/newlib.git;branch=arc-2.3"
S_arc = "${WORKDIR}/git" S:arc = "${WORKDIR}/git"
# ERROR: QA Issue: Architecture did not match (195 to 93) # ERROR: QA Issue: Architecture did not match (195 to 93)
INSANE_SKIP_${PN}_arc += " arch " INSANE_SKIP:${PN}:arc += " arch "

View File

@@ -26,12 +26,12 @@ SRC_URI = "\
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
do_configure_prepend () { do_configure:prepend () {
rm -rf ${S}/gdb ${S}/libdecnumber ${S}/readline ${S}/sim rm -rf ${S}/gdb ${S}/libdecnumber ${S}/readline ${S}/sim
} }
CONFIG_SHELL = "/bin/bash" CONFIG_SHELL = "/bin/bash"
sysroot_stage_all_append() { sysroot_stage_all:append() {
sysroot_stage_dir ${D}${exec_prefix}/extlib ${SYSROOT_DESTDIR}${exec_prefix}/extlib sysroot_stage_dir ${D}${exec_prefix}/extlib ${SYSROOT_DESTDIR}${exec_prefix}/extlib
} }

View File

@@ -2,6 +2,6 @@ require recipes-devtools/binutils/binutils.inc
require recipes-devtools-arc/binutils/binutils-2.26arc.inc require recipes-devtools-arc/binutils/binutils-2.26arc.inc
require recipes-devtools/binutils/binutils-cross-canadian.inc require recipes-devtools/binutils/binutils-cross-canadian.inc
do_install_append () { do_install:append () {
rm -f ${D}/${libdir}/../lib/libiberty* rm -f ${D}/${libdir}/../lib/libiberty*
} }

View File

@@ -2,7 +2,7 @@ require recipes-devtools/binutils/binutils.inc
require binutils-2.26arc.inc require binutils-2.26arc.inc
require recipes-devtools/binutils/binutils-cross.inc require recipes-devtools/binutils/binutils-cross.inc
SRC_URI_remove = "file://no-tooldirpaths.patch" SRC_URI:remove = "file://no-tooldirpaths.patch"
SRC_URI_remove = "file://0002-binutils-cross-Do-not-generate-linker-script-directo.patch" SRC_URI:remove = "file://0002-binutils-cross-Do-not-generate-linker-script-directo.patch"
#COMPATIBLE_MACHINE = "arc" #COMPATIBLE_MACHINE = "arc"

View File

@@ -73,9 +73,9 @@ EXTRA_OECONF_INTERMEDIATE = "\
--disable-libssp \ --disable-libssp \
" "
EXTRA_OECONF_append_libc-uclibc = " --disable-decimal-float " EXTRA_OECONF:append:libc-uclibc = " --disable-decimal-float "
EXTRA_OECONF_append_arc = ' --with-pkgversion="ARCompact/ARCv2 ISA elf32 toolchain ${SRCREV}"' EXTRA_OECONF:append:arc = ' --with-pkgversion="ARCompact/ARCv2 ISA elf32 toolchain ${SRCREV}"'
EXTRA_OECONF_PATHS = "\ EXTRA_OECONF_PATHS = "\
--with-gxx-include-dir=${STAGING_DIR_TARGET}${target_includedir}/c++/${BINV} \ --with-gxx-include-dir=${STAGING_DIR_TARGET}${target_includedir}/c++/${BINV} \

View File

@@ -1,8 +1,8 @@
require recipes-devtools-arc/gcc/gcc-${PV}.inc require recipes-devtools-arc/gcc/gcc-${PV}.inc
require recipes-devtools/gcc/gcc-cross-canadian.inc require recipes-devtools/gcc/gcc-cross-canadian.inc
EXTRA_OECONF_append_libc-baremetal = " --without-headers" EXTRA_OECONF:append:libc-baremetal = " --without-headers"
EXTRA_OECONF_remove_libc-baremetal = "--with-sysroot=/not/exist" EXTRA_OECONF:remove:libc-baremetal = "--with-sysroot=/not/exist"
EXTRA_OECONF_remove_libc-baremetal = "--with-build-sysroot=${STAGING_DIR_TARGET}" EXTRA_OECONF:remove:libc-baremetal = "--with-build-sysroot=${STAGING_DIR_TARGET}"
EXTRA_OECONF_append_libc-baremetal = " --enable-plugin " EXTRA_OECONF:append:libc-baremetal = " --enable-plugin "

View File

@@ -1,10 +1,10 @@
require recipes-devtools-arc/gcc/gcc-6.x.arc.inc require recipes-devtools-arc/gcc/gcc-6.x.arc.inc
require recipes-devtools/gcc/gcc-cross.inc require recipes-devtools/gcc/gcc-cross.inc
DEPENDS_remove_libc-baremetal := "virtual/${TARGET_PREFIX}libc-for-gcc" DEPENDS:remove:libc-baremetal := "virtual/${TARGET_PREFIX}libc-for-gcc"
EXTRA_OECONF_append_libc-baremetal = " --without-headers" EXTRA_OECONF:append:libc-baremetal = " --without-headers"
EXTRA_OECONF_remove_libc-baremetal = "--with-sysroot=/not/exist" EXTRA_OECONF:remove:libc-baremetal = "--with-sysroot=/not/exist"
EXTRA_OECONF_remove_libc-baremetal = "--enable-threads=posix" EXTRA_OECONF:remove:libc-baremetal = "--enable-threads=posix"
#COMPATIBLE_MACHINE = "arc" #COMPATIBLE_MACHINE = "arc"

View File

@@ -4,11 +4,11 @@ require recipes-devtools/gcc/libgcc.inc
INHIBIT_PACKAGE_DEBUG_SPLIT = "1" INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
#COMPATIBLE_MACHINE = "arc" #COMPATIBLE_MACHINE = "arc"
EXTRA_OECONF_append_arc = " --disable-multilib" EXTRA_OECONF:append:arc = " --disable-multilib"
#EXTRA_OECONF_append_arc = " --enable-multilib" #EXTRA_OECONF_append_arc = " --enable-multilib"
# ERROR: QA Issue: Architecture did not match (195 to 93) # ERROR: QA Issue: Architecture did not match (195 to 93)
INSANE_SKIP_${PN}-dev += "arch" INSANE_SKIP:${PN}-dev += "arch"
# ERROR: QA Issue: non -staticdev package contains static .a library # ERROR: QA Issue: non -staticdev package contains static .a library
INSANE_SKIP_${PN}-dev += "staticdev" INSANE_SKIP:${PN}-dev += "staticdev"

View File

@@ -1 +1 @@
EXTRA_OECONF_append_armv7m = " --with-arch=armv7-m --with-mode=thumb " EXTRA_OECONF:append:armv7m = " --with-arch=armv7-m --with-mode=thumb "

View File

@@ -1,3 +1,3 @@
EXTRA_OECONF_remove = "--enable_multilib" EXTRA_OECONF:remove = "--enable_multilib"
EXTRA_OECONF_append = " --disable-multilib" EXTRA_OECONF:append = " --disable-multilib"

View File

@@ -1,4 +1,4 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/files:" FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
QEMU_TARGETS = "" QEMU_TARGETS = ""
@@ -6,8 +6,8 @@ QEMU_TARGETS = ""
# file://nios2-add-support.patch \ # file://nios2-add-support.patch \
# " # "
EXTRA_OECONF_remove = "--target-list" EXTRA_OECONF:remove = "--target-list"
#QEMUS_BUILT = "arm-softmmu i386-softmmu nios2-softmmu" #QEMUS_BUILT = "arm-softmmu i386-softmmu nios2-softmmu"
QEMUS_BUILT = "arm-softmmu i386-softmmu" QEMUS_BUILT = "arm-softmmu i386-softmmu"
EXTRA_OECONF_append = " --target-list="${QEMUS_BUILT}"" EXTRA_OECONF:append = " --target-list="${QEMUS_BUILT}""

View File

@@ -2,4 +2,4 @@ include zephyr-sample.inc
ZEPHYR_SRC_DIR = "${S}/samples/net/sockets/coap_client" ZEPHYR_SRC_DIR = "${S}/samples/net/sockets/coap_client"
ZEPHYR_MODULES_append = "\;${S}/modules/lib/mbedtls" ZEPHYR_MODULES:append = "\;${S}/modules/lib/mbedtls"

View File

@@ -2,4 +2,4 @@ include zephyr-sample.inc
ZEPHYR_SRC_DIR = "${S}/samples/net/sockets/coap_server" ZEPHYR_SRC_DIR = "${S}/samples/net/sockets/coap_server"
ZEPHYR_MODULES_append = "\;${S}/modules/lib/mbedtls" ZEPHYR_MODULES:append = "\;${S}/modules/lib/mbedtls"

View File

@@ -2,4 +2,4 @@ include zephyr-sample.inc
ZEPHYR_SRC_DIR = "${S}/samples/net/sockets/echo_client" ZEPHYR_SRC_DIR = "${S}/samples/net/sockets/echo_client"
ZEPHYR_MODULES_append = "\;${S}/modules/lib/mbedtls" ZEPHYR_MODULES:append = "\;${S}/modules/lib/mbedtls"

View File

@@ -2,4 +2,4 @@ include zephyr-sample.inc
ZEPHYR_SRC_DIR = "${S}/samples/net/sockets/http_client" ZEPHYR_SRC_DIR = "${S}/samples/net/sockets/http_client"
ZEPHYR_MODULES_append = "\;${S}/modules/lib/mbedtls" ZEPHYR_MODULES:append = "\;${S}/modules/lib/mbedtls"

View File

@@ -27,19 +27,19 @@ EXTRA_OECMAKE = "\
" "
ZEPHYR_MODULES = "" ZEPHYR_MODULES = ""
ZEPHYR_MODULES_append_arm = "\;${S}/modules/cmsis" ZEPHYR_MODULES:append:arm = "\;${S}/modules/cmsis"
ZEPHYR_MODULES_append_nordic = "\;${S}/modules/hal/nordic" ZEPHYR_MODULES:append:nordic = "\;${S}/modules/hal/nordic"
ZEPHYR_MODULES_append_stm32 = "\;${S}/modules/hal/stm32" ZEPHYR_MODULES:append:stm32 = "\;${S}/modules/hal/stm32"
ZEPHYR_MODULES_append_openamp = "\;${S}/modules/lib/open-amp\;${S}/modules/hal/libmetal" ZEPHYR_MODULES:append:openamp = "\;${S}/modules/lib/open-amp\;${S}/modules/hal/libmetal"
EXTRA_OECMAKE_append = " -DZEPHYR_MODULES=${ZEPHYR_MODULES}" EXTRA_OECMAKE:append = " -DZEPHYR_MODULES=${ZEPHYR_MODULES}"
export ZEPHYR_BASE="${S}" export ZEPHYR_BASE="${S}"
DEPENDS += "gperf-native python3-pyelftools-native python3-pyyaml-native python3-pykwalify-native" DEPENDS += "gperf-native python3-pyelftools-native python3-pyyaml-native python3-pykwalify-native"
CROSS_COMPILE = "${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}" CROSS_COMPILE = "${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}"
DEPENDS_append_qemuall = " qemu-native qemu-helper-native" DEPENDS:append:qemuall = " qemu-native qemu-helper-native"
# The makefiles are explicit about the flags they want, so don't unset # The makefiles are explicit about the flags they want, so don't unset
# them so zephyr flags actually get used. # them so zephyr flags actually get used.
@@ -61,7 +61,7 @@ OE_TERMINAL_EXPORTS += "ZEPHYR_GCC_VARIANT"
IMAGE_FSTYPES = "elf bin" IMAGE_FSTYPES = "elf bin"
do_configure_prepend() { do_configure:prepend() {
# Zephyr expects CPPFLAGS as cmake argument as and ignores env variables. # Zephyr expects CPPFLAGS as cmake argument as and ignores env variables.
unset CPPFLAGS unset CPPFLAGS
} }

View File

@@ -12,6 +12,6 @@ SRCREV_mbedtls = "24d84ecff195fb15c889d9046e44e4804d626c67"
ZEPHYR_BRANCH = "main" ZEPHYR_BRANCH = "main"
PV = "2.5.0+git${SRCPV}" PV = "2.5.0+git${SRCPV}"
SRC_URI_append = " file://0001-zephyr-2.5.0-cmake-add-yocto-toolchain.patch \ SRC_URI:append = " file://0001-zephyr-2.5.0-cmake-add-yocto-toolchain.patch \
file://0001-x86-fix-efi-binary-generation-issue-in-cross-compila.patch \ file://0001-x86-fix-efi-binary-generation-issue-in-cross-compila.patch \
" "

View File

@@ -12,7 +12,7 @@ SRCREV_mbedtls = "5765cb7f75a9973ae9232d438e361a9d7bbc49e7"
ZEPHYR_BRANCH = "v2.6-branch" ZEPHYR_BRANCH = "v2.6-branch"
PV = "2.6.0+git${SRCPV}" PV = "2.6.0+git${SRCPV}"
SRC_URI_append = " file://0001-cmake-add-yocto-toolchain.patch \ SRC_URI:append = " file://0001-cmake-add-yocto-toolchain.patch \
file://0001-x86-fix-efi-binary-generation-issue-in-cross-compila.patch \ file://0001-x86-fix-efi-binary-generation-issue-in-cross-compila.patch \
file://arduino-nano-33-ble-storage-partition.patch \ file://arduino-nano-33-ble-storage-partition.patch \
" "

View File

@@ -14,6 +14,6 @@ do_install () {
} }
PACKAGES = "${PN}" PACKAGES = "${PN}"
FILES_${PN} = "/usr/src/zephyr" FILES:${PN} = "/usr/src/zephyr"
SYSROOT_DIRS += "/usr/src/zephyr" SYSROOT_DIRS += "/usr/src/zephyr"

View File

@@ -6,7 +6,7 @@ inherit cmake
# This file might be included from other places (like other layers) and not # This file might be included from other places (like other layers) and not
# having an explicit path to the patches directory, will make bitbake fail to # having an explicit path to the patches directory, will make bitbake fail to
# find the patch(es) in SRC_URI. # find the patch(es) in SRC_URI.
FILESEXTRAPATHS_prepend := "${THISDIR}/files:" FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
SRC_URI = "\ SRC_URI = "\
git://github.com/zephyrproject-rtos/zephyr.git;protocol=https;branch=${ZEPHYR_BRANCH};name=default \ git://github.com/zephyrproject-rtos/zephyr.git;protocol=https;branch=${ZEPHYR_BRANCH};name=default \

View File

@@ -1,21 +1,21 @@
ZEPHYRTESTS_remove = "fifo fpu_sharing lifo mbox mem_heap mem_pool \ ZEPHYRTESTS:remove = "fifo fpu_sharing lifo mbox mem_heap mem_pool \
mem_protect mem_slab msgq mutex pipe profiling sched semaphore \ mem_protect mem_slab msgq mutex pipe profiling sched semaphore \
stack threads tickless timer workq" stack threads tickless timer workq"
# Exclude tests which does not build for various reasons # Exclude tests which does not build for various reasons
ZEPHYRTESTS_remove = "gen_isr_table spinlock smp mp" ZEPHYRTESTS:remove = "gen_isr_table spinlock smp mp"
# test_context will fail because QEMU for ARM does not emulate CortexM3 BASEPRI register # test_context will fail because QEMU for ARM does not emulate CortexM3 BASEPRI register
#ZEPHYRTESTS_remove_arm += "" #ZEPHYRTESTS:remove:arm += ""
# test_critical never finishes in an unpatched QEMU either # test_critical never finishes in an unpatched QEMU either
#ZEPHYRTESTS_remove_arm += "" #ZEPHYRTESTS:remove:arm += ""
#Remove ARM specific tests #Remove ARM specific tests
#ZEPHYRTESTS_remove_x86 += "" #ZEPHYRTESTS:remove:x86 += ""
#Remove tests not intended for Nios2 #Remove tests not intended for Nios2
#ZEPHYRTESTS_remove_nios2 += "" #ZEPHYRTESTS:remove:nios2 += ""
# List of all available kernel tests # List of all available kernel tests
ZEPHYRTESTS = " \ ZEPHYRTESTS = " \

View File

@@ -2,4 +2,4 @@ include zephyr-sample.inc
ZEPHYR_SRC_DIR = "${S}/samples/net/mqtt_publisher" ZEPHYR_SRC_DIR = "${S}/samples/net/mqtt_publisher"
ZEPHYR_MODULES_append = "\;${S}/modules/lib/mbedtls" ZEPHYR_MODULES:append = "\;${S}/modules/lib/mbedtls"

View File

@@ -2,8 +2,8 @@ include zephyr-sample.inc
ZEPHYR_SRC_DIR = "${S}/samples/net/sockets/echo_client" ZEPHYR_SRC_DIR = "${S}/samples/net/sockets/echo_client"
ZEPHYR_MODULES_append = "\;${S}/modules/lib/mbedtls" ZEPHYR_MODULES:append = "\;${S}/modules/lib/mbedtls"
ZEPHYR_MODULES_append = "\;${S}/modules/lib/openthread" ZEPHYR_MODULES:append = "\;${S}/modules/lib/openthread"
EXTRA_OECMAKE += "-DOVERLAY_CONFIG=overlay-ot.conf" EXTRA_OECMAKE += "-DOVERLAY_CONFIG=overlay-ot.conf"

View File

@@ -2,4 +2,4 @@ include zephyr-sample.inc
ZEPHYR_SRC_DIR = "${S}/samples/bluetooth/peripheral_esp" ZEPHYR_SRC_DIR = "${S}/samples/bluetooth/peripheral_esp"
ZEPHYR_MODULES_append = "\;${S}/modules/crypto/tinycrypt" ZEPHYR_MODULES:append = "\;${S}/modules/crypto/tinycrypt"

View File

@@ -2,4 +2,4 @@ include zephyr-sample.inc
ZEPHYR_SRC_DIR = "${S}/samples/bluetooth/peripheral_hr" ZEPHYR_SRC_DIR = "${S}/samples/bluetooth/peripheral_hr"
ZEPHYR_MODULES_append = "\;${S}/modules/crypto/tinycrypt" ZEPHYR_MODULES:append = "\;${S}/modules/crypto/tinycrypt"

View File

@@ -2,4 +2,4 @@ include zephyr-sample.inc
ZEPHYR_SRC_DIR = "${S}/samples/net/sockets/websocket_client" ZEPHYR_SRC_DIR = "${S}/samples/net/sockets/websocket_client"
ZEPHYR_MODULES_append = "\;${S}/modules/lib/mbedtls" ZEPHYR_MODULES:append = "\;${S}/modules/lib/mbedtls"