[meta-zephyr][PATCH v4] zephyr.bbclass: Remove need for MACHINEOVERRIDES for ZEPHYR_MODULES
Eilís Ní Fhlannagáin
From: Eilís Ní Fhlannagáin <elizabeth.flanagan@...>
This commit removes the need for calling out ZEPHYR_MODULES via MACHINEOVERRIDES. It uses west list to figure out what ZEPHYR_MODULES are available and attaches them to -DZEPHYR_MODULES. Additional out of tree modules may be added via ZEPHYR_EXTRA_MODULES. Signed-off-by: Eilís Ní Fhlannagáin <elizabeth.flanagan@...> --- .../conf/machine/include/nrf52.inc | 2 - .../machine/include/stm32mp1-cortex-m4.inc | 3 -- meta-zephyr-core/classes/zephyr.bbclass | 42 +++++++++++++++++++ meta-zephyr-core/conf/layer.conf | 2 + .../zephyr-kernel/zephyr-kernel-common.inc | 13 +++--- 5 files changed, 49 insertions(+), 13 deletions(-) diff --git a/meta-zephyr-bsp/conf/machine/include/nrf52.inc b/meta-zephyr-bsp/conf/machine/include/nrf52.inc index d22f8bc..4162d3e 100644 --- a/meta-zephyr-bsp/conf/machine/include/nrf52.inc +++ b/meta-zephyr-bsp/conf/machine/include/nrf52.inc @@ -5,8 +5,6 @@ require conf/machine/include/tune-cortexm4.inc -MACHINEOVERRIDES =. "nordic:" - TUNE_FEATURES = "armv7m cortexm4" # Target type for this machine used by Pyocd diff --git a/meta-zephyr-bsp/conf/machine/include/stm32mp1-cortex-m4.inc b/meta-zephyr-bsp/conf/machine/include/stm32mp1-cortex-m4.inc index b82b02d..0d46620 100644 --- a/meta-zephyr-bsp/conf/machine/include/stm32mp1-cortex-m4.inc +++ b/meta-zephyr-bsp/conf/machine/include/stm32mp1-cortex-m4.inc @@ -5,7 +5,4 @@ require conf/machine/include/tune-cortexm4.inc -# Include OpenAMP for communication with Cortex-A7 core of the SoC -MACHINEOVERRIDES =. "stm32:openamp:" - TUNE_FEATURES = "armv7m cortexm4" diff --git a/meta-zephyr-core/classes/zephyr.bbclass b/meta-zephyr-core/classes/zephyr.bbclass index e1d3185..f3d16b7 100644 --- a/meta-zephyr-core/classes/zephyr.bbclass +++ b/meta-zephyr-core/classes/zephyr.bbclass @@ -1,4 +1,7 @@ inherit terminal +inherit python3native + +PYTHONPATH="${STAGING_DIR_HOST}${libdir}/${PYTHON_DIR}/site-packages" OE_TERMINAL_EXPORTS += "HOST_EXTRACFLAGS HOSTLDFLAGS TERMINFO CROSS_CURSES_LIB CROSS_CURSES_INC" HOST_EXTRACFLAGS = "${BUILD_CFLAGS} ${BUILD_LDFLAGS}" @@ -21,6 +24,45 @@ python () { d.setVar('BOARD',board) } +do_get_zmods() { + + export PYTHONPATH="${RECIPE_SYSROOT_NATIVE}/${libdir}/${PYTHON_DIR}/site-packages:${RECIPE_SYSROOT_NATIVE}/${libdir}/${PYTHON_DIR}" + cd ${S} + + # I really dislike how tied in this is to west, but without reimplementing their script, this seems to be the + # easiest way to do this + rm -rf .west; mkdir .west + cat << EOF >> ${S}/.west/config +[manifest] +path = . +file = west.yml +EOF + + # Because of how we structure things, we need to either structure this more like a west workspace or just tweak + # the manifest in order to get access to the west extentions like build and whatnot. Tweaking the manifest is the + # easier path here and minimizes the amount of breakage that might occur. + + sed -i 's/path: zephyr/path: ./' west.yml + + # Get all available modules and add them to ZEPHYR_MODULES + for i in $(west list|awk 'NR>1 {print $2}'); do + ZEPHYR_MODULES="${S}/$i\;${ZEPHYR_MODULES}" + done + export ZEPHYR_MODULES +} + +do_get_zmods[nostamp] = "1" +do_get_zmods[dirs] = "${B}" + +EXTRA_OECMAKE:append = " -DZEPHYR_MODULES=${ZEPHYR_MODULES}" + +addtask get_zmods after do_patch before do_configure +do_get_zmods[depends] += "west-native:do_populate_sysroot" +do_get_zmods[depends] += "python3-pyyaml-native:do_populate_sysroot" +do_get_zmods[depends] += "python3-pykwalify-native:do_populate_sysroot" +do_get_zmods[depends] += "python3-colorama-native:do_populate_sysroot" +do_get_zmods[depends] += "python3-pyelftools-native:do_populate_sysroot" + python do_menuconfig() { os.chdir(d.getVar('ZEPHYR_SRC_DIR', True)) configdir = d.getVar('ZEPHYR_SRC_DIR', True) + '/outdir/' + d.getVar('BOARD', True) diff --git a/meta-zephyr-core/conf/layer.conf b/meta-zephyr-core/conf/layer.conf index 4b1bf91..d3ac10e 100644 --- a/meta-zephyr-core/conf/layer.conf +++ b/meta-zephyr-core/conf/layer.conf @@ -18,3 +18,5 @@ LAYERDEPENDS_zephyrcore = "core meta-python" LAYERSERIES_COMPAT_zephyrcore = "dunfell gatesgarth hardknott honister" X86_TUNE_DIR = "${@bb.utils.contains('LAYERSERIES_CORENAMES', 'honister', 'include/x86', 'include', d)}" + +PYTHON3_NATIVE_SITEPACKAGES_DIR = "${libdir_native}/${PYTHON3_DIR}/site-packages" diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc index 5ae7504..e69ba3c 100644 --- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc +++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc @@ -2,7 +2,6 @@ ZEPHYR_INHERIT_CLASSES += "zephyr cmake" inherit ${ZEPHYR_INHERIT_CLASSES} -inherit python3native # There shouldn't be a manifest for zephyr kernels since there is no root # filesystem. @@ -24,19 +23,17 @@ EXTRA_OECMAKE = "\ -DZEPHYR_SYSROOT=${ZEPHYR_SYSROOT} \ -DZEPHYR_TOOLCHAIN_VARIANT=yocto \ -DEXTRA_CPPFLAGS=${CPPFLAGS} \ + -DZEPHYR_MODULES=${ZEPHYR_MODULES} \ " -ZEPHYR_MODULES = "" -ZEPHYR_MODULES:append:arm = "\;${S}/modules/cmsis" -ZEPHYR_MODULES:append:nordic = "\;${S}/modules/hal/nordic" -ZEPHYR_MODULES:append:stm32 = "\;${S}/modules/hal/stm32" -ZEPHYR_MODULES:append:openamp = "\;${S}/modules/lib/open-amp\;${S}/modules/hal/libmetal" +ZEPHYR_EXTRA_MODULES = "" -EXTRA_OECMAKE:append = " -DZEPHYR_MODULES=${ZEPHYR_MODULES}" +EXTRA_OECMAKE:append = " -DZEPHYR_EXTRA_MODULES=${ZEPHYR_EXTRA_MODULES}" export ZEPHYR_BASE="${S}" -DEPENDS += "gperf-native python3-pyelftools-native python3-pyyaml-native python3-pykwalify-native" +DEPENDS += "gperf-native" + CROSS_COMPILE = "${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}" DEPENDS:append:qemuall = " qemu-native qemu-helper-native" -- 2.25.1
|
|
[meta-zephyr][PATCH v4] west: Add west and python dependencies
Eilís Ní Fhlannagáin
From: Eilís Ní Fhlannagáin <elizabeth.flanagan@...>
We will need west for a few things. First, west knows about all the boards supported, so for automatic machine generation, we will need to be able to run west boards. Secondly, I want to get rid of the dependance on MACHINEOVERRIDES in machine definition files. One of the things that drives me a bit mad about how we're doing this is effort replication. Zephyr knows what the machine is, and modules needed and includes. We shouldn't need to replicate that effort. Future patches will address that through automatic machine generation. Signed-off-by: Eilís Ní Fhlannagáin <elizabeth.flanagan@...> --- .../python/python3-anytree_2.8.0.bb | 14 ++++++++++++ .../python/python3-breathe_4.31.0.bb | 17 ++++++++++++++ .../python/python3-canopen_1.2.1.bb | 17 ++++++++++++++ .../python/python3-cbor_1.0.0.bb | 19 ++++++++++++++++ .../python/python3-colorama_0.4.4.bb | 16 -------------- .../python/python3-gitlint_0.15.1.bb | 14 ++++++++++++ .../python/python3-imgtool_1.7.2.bb | 14 ++++++++++++ .../python/python3-intelhex_2.3.0.bb | 12 ---------- .../python/python3-junithtml_30.0.4.bb | 14 ++++++++++++ .../python/python3-junitparser_2.1.1.bb | 14 ++++++++++++ .../python/python3-packaging_21.0.bb | 14 ++++++++++++ .../python/python3-pyelftools_0.27.bb | 14 ++++++++++++ .../python/python3-pygithub_1.55.bb | 14 ++++++++++++ .../python/python3-pygments_2.10.0.bb | 15 +++++++++++++ .../recipes-devtools/python/python3-pylink | 11 ++++++++++ .../python/python3-pyocd_0.32.0.bb | 14 ++++++++++++ .../python/python3-pyparsing_2.4.7.bb | 14 ++++++++++++ .../python/python3-sphinx_4.2.0.bb | 14 ++++++++++++ .../recipes-devtools/west/west_0.12.99.bb | 22 +++++++++++++++++++ 19 files changed, 255 insertions(+), 28 deletions(-) create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-anytree_2.8.0.bb create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-breathe_4.31.0.bb create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-canopen_1.2.1.bb create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-cbor_1.0.0.bb delete mode 100644 meta-zephyr-core/recipes-devtools/python/python3-colorama_0.4.4.bb create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-gitlint_0.15.1.bb create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-imgtool_1.7.2.bb delete mode 100644 meta-zephyr-core/recipes-devtools/python/python3-intelhex_2.3.0.bb create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-junithtml_30.0.4.bb create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-junitparser_2.1.1.bb create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-packaging_21.0.bb create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-pyelftools_0.27.bb create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-pygithub_1.55.bb create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-pygments_2.10.0.bb create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-pylink create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-pyocd_0.32.0.bb create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-pyparsing_2.4.7.bb create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-sphinx_4.2.0.bb create mode 100644 meta-zephyr-core/recipes-devtools/west/west_0.12.99.bb diff --git a/meta-zephyr-core/recipes-devtools/python/python3-anytree_2.8.0.bb b/meta-zephyr-core/recipes-devtools/python/python3-anytree_2.8.0.bb new file mode 100644 index 0000000..a19c998 --- /dev/null +++ b/meta-zephyr-core/recipes-devtools/python/python3-anytree_2.8.0.bb @@ -0,0 +1,14 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# SPDX-License-Identifier: Apache-2.0 + +SUMMARY = "Python anytree" +DESCRIPTION = "Powerful and Lightweight Python Tree Data Structure" +HOMEPAGE = "https://pypi.org/project/anytree" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e" + +inherit pypi setuptools3 + +PYPI_PACKAGE = "anytree" +SRC_URI[md5sum] = "25ef3e656ad16a2a6b6c187807da7e5f" +BBCLASSEXTEND = "native nativesdk" diff --git a/meta-zephyr-core/recipes-devtools/python/python3-breathe_4.31.0.bb b/meta-zephyr-core/recipes-devtools/python/python3-breathe_4.31.0.bb new file mode 100644 index 0000000..4389d20 --- /dev/null +++ b/meta-zephyr-core/recipes-devtools/python/python3-breathe_4.31.0.bb @@ -0,0 +1,17 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# SPDX-License-Identifier: Apache-2.0 + +SUMMARY = "Python breathe" +DESCRIPTION = "Breathe is an extension to reStructuredText and Sphinx to be \ + able to read and render Doxygen xml output." +HOMEPAGE = "https://pypi.org/project/breathe" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=9e49eecf36fc015de7c61a0247df75d6" + +inherit pypi setuptools3 + +DEPENDS = "python3-sphinx-native python3-docutils-native python3-pygments-native python3-babel-native python3-jinja2-native python3-distro-native" +PYPI_PACKAGE = "breathe" +SRC_URI[md5sum] = "33a86368215dbcb59e5c71687f6b228b" +SRC_URI[sha256sum] = "925eeff96c6640cd857e4ddeae6f75464a1d5e2e08ee56dccce4043583ae2050" +BBCLASSEXTEND = "native nativesdk" diff --git a/meta-zephyr-core/recipes-devtools/python/python3-canopen_1.2.1.bb b/meta-zephyr-core/recipes-devtools/python/python3-canopen_1.2.1.bb new file mode 100644 index 0000000..0608199 --- /dev/null +++ b/meta-zephyr-core/recipes-devtools/python/python3-canopen_1.2.1.bb @@ -0,0 +1,17 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# SPDX-License-Identifier: Apache-2.0 + +SUMMARY = "Python canopen" +DESCRIPTION = "A Python implementation of the CANopen standard. The aim of \ + the project is to support the most common parts of the CiA \ + 301 standard in a simple Pythonic interface." +HOMEPAGE = "https://pypi.org/project/canopen" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=97f135a6ee6f800c377b5512122c7a8d" + +inherit pypi setuptools3 + +PYPI_PACKAGE = "canopen" +SRC_URI[md5sum] = "da37dcf725e774385f05f05e04ca54a0" +SRC_URI[sha256sum] = "18d01d56ff0023795cb336cafd4810a76cf402b98b42139b201fa8c5d4ba8c06" +BBCLASSEXTEND = "native nativesdk" diff --git a/meta-zephyr-core/recipes-devtools/python/python3-cbor_1.0.0.bb b/meta-zephyr-core/recipes-devtools/python/python3-cbor_1.0.0.bb new file mode 100644 index 0000000..9e240f0 --- /dev/null +++ b/meta-zephyr-core/recipes-devtools/python/python3-cbor_1.0.0.bb @@ -0,0 +1,19 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# SPDX-License-Identifier: Apache-2.0 + +SUMMARY = "Python cbor" +DESCRIPTION = "An implementation of RFC 7049 - Concise Binary Object \ + Representation (CBOR). \ + CBOR is comparable to JSON, has a superset of JSON’s ability, \ + but serializes to a binary format which is smaller and faster \ + to generate and parse." +HOMEPAGE = "https://pypi.org/project/cbor" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://setup.cfg;md5=d86758afb08a60bc589dc67bfea670b2" + +inherit pypi setuptools3 + +PYPI_PACKAGE = "cbor" +SRC_URI[md5sum] = "22b03b59784fd78cb6c27aa498af0db6" +SRC_URI[sha256sum] = "13225a262ddf5615cbd9fd55a76a0d53069d18b07d2e9f19c39e6acb8609bbb6" +BBCLASSEXTEND = "native nativesdk" diff --git a/meta-zephyr-core/recipes-devtools/python/python3-colorama_0.4.4.bb b/meta-zephyr-core/recipes-devtools/python/python3-colorama_0.4.4.bb deleted file mode 100644 index 67b8d52..0000000 --- a/meta-zephyr-core/recipes-devtools/python/python3-colorama_0.4.4.bb +++ /dev/null @@ -1,16 +0,0 @@ -# SPDX-FileCopyrightText: Huawei Inc. -# SPDX-License-Identifier: Apache-2.0 - -SUMMARY = "Python colorama" -HOMEPAGE = "https://pypi.org/project/colorama" -DESCRIPTION = "Makes ANSI escape character sequences (for producing colored \ - terminal text and cursor positioning) work under MS Windows." -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b4936429a56a652b84c5c01280dcaa26" - -inherit pypi setuptools3 - -PYPI_PACKAGE = "colorama" -SRC_URI[md5sum] = "57b22f2597f63df051b69906fbf310cc" -SRC_URI[sha256sum] = "5941b2b48a20143d2267e95b1c2a7603ce057ee39fd88e7329b0c292aa16869b" -BBCLASSEXTEND = "native nativesdk" diff --git a/meta-zephyr-core/recipes-devtools/python/python3-gitlint_0.15.1.bb b/meta-zephyr-core/recipes-devtools/python/python3-gitlint_0.15.1.bb new file mode 100644 index 0000000..143e2cb --- /dev/null +++ b/meta-zephyr-core/recipes-devtools/python/python3-gitlint_0.15.1.bb @@ -0,0 +1,14 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# SPDX-License-Identifier: Apache-2.0 + +SUMMARY = "Python gitlint" +HOMEPAGE = "https://pypi.org/project/gitlint" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=2ddf75221dde30f107af8595a43b4009" + +inherit pypi setuptools3 + +PYPI_PACKAGE = "gitlint" +SRC_URI[md5sum] = "4835bedc50129934a47cf099d906d2ca" +SRC_URI[sha256sum] = "4b22916dcbdca381244aee6cb8d8743756cfd98f27e7d1f02e78733f07c3c21c" +BBCLASSEXTEND = "native nativesdk" diff --git a/meta-zephyr-core/recipes-devtools/python/python3-imgtool_1.7.2.bb b/meta-zephyr-core/recipes-devtools/python/python3-imgtool_1.7.2.bb new file mode 100644 index 0000000..40d8176 --- /dev/null +++ b/meta-zephyr-core/recipes-devtools/python/python3-imgtool_1.7.2.bb @@ -0,0 +1,14 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# SPDX-License-Identifier: Apache-2.0 + +SUMMARY = "Python imgtool" +HOMEPAGE = "https://pypi.org/project/imgtool" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://setup.cfg;md5=3f78c6150b7d619a476c799812e31d5a" + +inherit pypi setuptools3 + +PYPI_PACKAGE = "imgtool" +SRC_URI[md5sum] = "08fe63c644977aa8f9e6038e2067c3de" +SRC_URI[sha256sum] = "799484f3f61e398ac4157548f309b6baa4084e464176449694ba9de7909eed6e" +BBCLASSEXTEND = "native nativesdk" diff --git a/meta-zephyr-core/recipes-devtools/python/python3-intelhex_2.3.0.bb b/meta-zephyr-core/recipes-devtools/python/python3-intelhex_2.3.0.bb deleted file mode 100644 index e297491..0000000 --- a/meta-zephyr-core/recipes-devtools/python/python3-intelhex_2.3.0.bb +++ /dev/null @@ -1,12 +0,0 @@ -# SPDX-FileCopyrightText: Huawei Inc. -# SPDX-License-Identifier: Apache-2.0 - -SUMMARY = "Python library for Intel HEX files manipulations" -LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=4eba844696655c3eae07aca8e3a94772" - -SRC_URI[sha256sum] = "892b7361a719f4945237da8ccf754e9513db32f5628852785aea108dcd250093" - -inherit pypi setuptools3 - -BBCLASSEXTEND = "native nativesdk" diff --git a/meta-zephyr-core/recipes-devtools/python/python3-junithtml_30.0.4.bb b/meta-zephyr-core/recipes-devtools/python/python3-junithtml_30.0.4.bb new file mode 100644 index 0000000..ddc34aa --- /dev/null +++ b/meta-zephyr-core/recipes-devtools/python/python3-junithtml_30.0.4.bb @@ -0,0 +1,14 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# SPDX-License-Identifier: Apache-2.0 + +SUMMARY = "Python junit2html" +HOMEPAGE = "https://pypi.org/project/junit2html" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://MANIFEST.in;md5=899c50bccc6c8221c8ca0a9c7633b5b8" + +inherit pypi setuptools3 + +PYPI_PACKAGE = "junit2html" +SRC_URI[md5sum] = "a816cf502da0a8905f24aefab0739206" +SRC_URI[sha256sum] = "9b3967c92142abd5fb94e2cbb938c51cc6c2689ec1c7fd348c6ba4ddab92da14" +BBCLASSEXTEND = "native nativesdk" diff --git a/meta-zephyr-core/recipes-devtools/python/python3-junitparser_2.1.1.bb b/meta-zephyr-core/recipes-devtools/python/python3-junitparser_2.1.1.bb new file mode 100644 index 0000000..5932e66 --- /dev/null +++ b/meta-zephyr-core/recipes-devtools/python/python3-junitparser_2.1.1.bb @@ -0,0 +1,14 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# SPDX-License-Identifier: Apache-2.0 + +SUMMARY = "Python junitparser" +HOMEPAGE = "https://pypi.org/project/junitparser" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=2d00702cde917dd61c41041bc30136dd" + +inherit pypi setuptools3 + +PYPI_PACKAGE = "junitparser" +SRC_URI[md5sum] = "f8704c2b18e6f4d482c62b33e141a0cb" +SRC_URI[sha256sum] = "d54d0eaa2b15ee2efab0220ce0ab31448d26dcb78170d5667453d7755b9f1480" +BBCLASSEXTEND = "native nativesdk" diff --git a/meta-zephyr-core/recipes-devtools/python/python3-packaging_21.0.bb b/meta-zephyr-core/recipes-devtools/python/python3-packaging_21.0.bb new file mode 100644 index 0000000..f857224 --- /dev/null +++ b/meta-zephyr-core/recipes-devtools/python/python3-packaging_21.0.bb @@ -0,0 +1,14 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# SPDX-License-Identifier: Apache-2.0 + +SUMMARY = "Python packaging" +HOMEPAGE = "https://pypi.org/project/packaging" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=faadaedca9251a90b205c9167578ce91" + +inherit pypi setuptools3 + +PYPI_PACKAGE = "packaging" +SRC_URI[md5sum] = "240ba5823ed31051a1254e74c9d18d55" +SRC_URI[sha256sum] = "7dc96269f53a4ccec5c0670940a4281106dd0bb343f47b7471f779df49c2fbe7" +BBCLASSEXTEND = "native nativesdk" diff --git a/meta-zephyr-core/recipes-devtools/python/python3-pyelftools_0.27.bb b/meta-zephyr-core/recipes-devtools/python/python3-pyelftools_0.27.bb new file mode 100644 index 0000000..1405fc5 --- /dev/null +++ b/meta-zephyr-core/recipes-devtools/python/python3-pyelftools_0.27.bb @@ -0,0 +1,14 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# SPDX-License-Identifier: Apache-2.0 + +SUMMARY = "Python pyelftools" +HOMEPAGE = "https://pypi.org/project/pyelftools" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=5ce2a2b07fca326bc7c146d10105ccfc" + +inherit pypi setuptools3 + +PYPI_PACKAGE = "pyelftools" +SRC_URI[md5sum] = "061d67c669a9b1f8d07f28c47fb6a65f" +SRC_URI[sha256sum] = "cde854e662774c5457d688ca41615f6594187ba7067af101232df889a6b7a66b" +BBCLASSEXTEND = "native nativesdk" diff --git a/meta-zephyr-core/recipes-devtools/python/python3-pygithub_1.55.bb b/meta-zephyr-core/recipes-devtools/python/python3-pygithub_1.55.bb new file mode 100644 index 0000000..268d2b7 --- /dev/null +++ b/meta-zephyr-core/recipes-devtools/python/python3-pygithub_1.55.bb @@ -0,0 +1,14 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# SPDX-License-Identifier: Apache-2.0 + +SUMMARY = "Python PyGithub" +HOMEPAGE = "https://pypi.org/project/PyGithub" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://MANIFEST.in;md5=c5e8b6057f82b73046c24a30809903bd" + +inherit pypi setuptools3 + +PYPI_PACKAGE = "PyGithub" +SRC_URI[md5sum] = "03e5883a8d4358b0786a0db84ad56a22" +SRC_URI[sha256sum] = "1bbfff9372047ff3f21d5cd8e07720f3dbfdaf6462fcaed9d815f528f1ba7283" +BBCLASSEXTEND = "native nativesdk" diff --git a/meta-zephyr-core/recipes-devtools/python/python3-pygments_2.10.0.bb b/meta-zephyr-core/recipes-devtools/python/python3-pygments_2.10.0.bb new file mode 100644 index 0000000..c4b63c1 --- /dev/null +++ b/meta-zephyr-core/recipes-devtools/python/python3-pygments_2.10.0.bb @@ -0,0 +1,15 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# SPDX-License-Identifier: Apache-2.0 + +SUMMARY = "Python pygments" +HOMEPAGE = "https://pypi.org/project/Pygments/" +DESCRIPTION = "Pygments is a syntax highlighting package written in Python." +LICENSE = "BSD-2-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e" +SRC_URI = "https://files.pythonhosted.org/packages/b7/b3/5cba26637fe43500d4568d0ee7b7362de1fb29c0e158d50b4b69e9a40422/Pygments-2.10.0.tar.gz" + +inherit pypi setuptools3 + +PYPI_PACKAGE = "Pygments" +SRC_URI[md5sum] = "87369a4e15019caf9cf056ab2c5858b3" +BBCLASSEXTEND = "native nativesdk" diff --git a/meta-zephyr-core/recipes-devtools/python/python3-pylink b/meta-zephyr-core/recipes-devtools/python/python3-pylink new file mode 100644 index 0000000..ddfe3ca --- /dev/null +++ b/meta-zephyr-core/recipes-devtools/python/python3-pylink @@ -0,0 +1,11 @@ +SUMMARY = "Python pylink-square" +HOMEPAGE ="https://pypi.org/project/pylink-square" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://MANIFEST.in;md5=8aa920a7ab8eabc590a0ab6dbe1b3bf2" + +inherit pypi setuptools3 + +PYPI_PACKAGE = "pylink-square" +SRC_URI[md5sum] = "e156ee1c73516e8b2cf52347f6c663f3" +SRC_URI[sha256sum] = "45674112acab890483ee738bb3957e18cc6063dca763fc91283f890fb72d2f59" +BBCLASSEXTEND = "native nativesdk" diff --git a/meta-zephyr-core/recipes-devtools/python/python3-pyocd_0.32.0.bb b/meta-zephyr-core/recipes-devtools/python/python3-pyocd_0.32.0.bb new file mode 100644 index 0000000..bbdae6a --- /dev/null +++ b/meta-zephyr-core/recipes-devtools/python/python3-pyocd_0.32.0.bb @@ -0,0 +1,14 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# SPDX-License-Identifier: Apache-2.0 + +SUMMARY = "Python pyocd" +HOMEPAGE = "https://pypi.org/project/pyocd" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=421492e27872cb498685e9d7649f63a2" + +inherit pypi setuptools3 + +PYPI_PACKAGE = "pyocd" +SRC_URI[md5sum] = "25153f563a629bb2be7560e2dc23c0a8" +SRC_URI[sha256sum] = "d5aa498130f251373ac50724be73dc2f8cf60b03c9547bddf3c140fa6555ead1" +BBCLASSEXTEND = "native nativesdk" diff --git a/meta-zephyr-core/recipes-devtools/python/python3-pyparsing_2.4.7.bb b/meta-zephyr-core/recipes-devtools/python/python3-pyparsing_2.4.7.bb new file mode 100644 index 0000000..0cb0d36 --- /dev/null +++ b/meta-zephyr-core/recipes-devtools/python/python3-pyparsing_2.4.7.bb @@ -0,0 +1,14 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# SPDX-License-Identifier: Apache-2.0 + +SUMMARY = "Python pyparsing" +HOMEPAGE = "https://pypi.org/project/pyparsing" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=657a566233888513e1f07ba13e2f47f1" + +inherit pypi setuptools3 + +PYPI_PACKAGE = "pyparsing" +SRC_URI[md5sum] = "f0953e47a0112f7a65aec2305ffdf7b4" +SRC_URI[sha256sum] = "c203ec8783bf771a155b207279b9bccb8dea02d8f0c9e5f8ead507bc3246ecc1" +BBCLASSEXTEND = "native nativesdk" diff --git a/meta-zephyr-core/recipes-devtools/python/python3-sphinx_4.2.0.bb b/meta-zephyr-core/recipes-devtools/python/python3-sphinx_4.2.0.bb new file mode 100644 index 0000000..290fabb --- /dev/null +++ b/meta-zephyr-core/recipes-devtools/python/python3-sphinx_4.2.0.bb @@ -0,0 +1,14 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# SPDX-License-Identifier: Apache-2.0 + +DESCRIPTION = "Python documentation generator" +HOMEPAGE = "http://sphinx-doc.org/" +SECTION = "devel/python" +LICENSE = "BSD-2-Clause & BSD-3-Clause & MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=82cc7d23060a75a07b820eaaf75abecf" + +inherit setuptools3 pypi + +PYPI_PACKAGE = "Sphinx" +SRC_URI[sha256sum] = "94078db9184491e15bce0a56d9186e0aec95f16ac20b12d00e06d4e36f1058a6" +BBCLASSEXTEND = "native nativesdk" diff --git a/meta-zephyr-core/recipes-devtools/west/west_0.12.99.bb b/meta-zephyr-core/recipes-devtools/west/west_0.12.99.bb new file mode 100644 index 0000000..6a9f8bc --- /dev/null +++ b/meta-zephyr-core/recipes-devtools/west/west_0.12.99.bb @@ -0,0 +1,22 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# SPDX-License-Identifier: Apache-2.0 + +SUMMARY = "Zephyr RTOS Project meta-tool" +HOMEPAGE = "https://github.com/zephyrproject-rtos/west" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e" + +SRC_URI = "git://github.com/zephyrproject-rtos/west;protocol=https;branch=main" + +PV = "0.12.99" +SRCREV = "38e656b05ea8f4c8d80b953f6d88b1ed604d11f8" +PROVIDES = "virtual/west" + +S = "${WORKDIR}/git" + +inherit setuptools3 python3native + +DEPENDS_${PN} += "python3-pyyaml python3-core python3-packaging python3-colorama python3-pyparsing" +RDEPENDS_${PN} += "python3-pyyaml python3-core python3-packaging python3-colorama python3-pyparsing" +BBCLASSEXTEND = "native nativesdk" +TOOLCHAIN_HOST_TASK:append = " nativesdk-west" -- 2.25.1
|
|
[meta-zephyr][PATCH v4] meta-zephyr-core/bsp: Restructure into sublayers
Eilís Ní Fhlannagáin
From: Eilís Ní Fhlannagáin <elizabeth.flanagan@...>
This commit restructures meta-zephyr into meta-zephyr-core and meta-zephyr-bsp. It moves machine definitions into meta-zephyr-bsp in preparation for adding the autogenerated zephyr machines. Signed-off-by: Eilís Ní Fhlannagáin <elizabeth.flanagan@...> --- README.txt | 2 +- meta-zephyr-bsp/conf/layer.conf | 20 +++ .../conf}/machine/96b-avenger96.conf | 0 .../conf}/machine/96b-nitrogen.conf | 0 .../conf}/machine/arduino-nano-33-ble.conf | 0 .../conf}/machine/include/nrf52.inc | 0 .../machine/include/stm32mp1-cortex-m4.inc | 0 .../conf}/machine/include/tune-arc.inc | 0 .../machine/include/tune-corei7-common.inc | 0 .../conf}/machine/include/tune-cortexm0.inc | 0 .../conf}/machine/include/tune-cortexm3.inc | 0 .../conf}/machine/include/tune-cortexm4.inc | 0 .../conf}/machine/include/tune-iamcu.inc | 0 .../conf}/machine/include/tune-nios2.inc | 0 .../conf}/machine/intel-x86-64.conf | 0 .../conf}/machine/nrf52840dk-nrf52840.conf | 0 .../conf}/machine/qemu-cortex-m3.conf | 0 .../conf}/machine/qemu-nios2.conf | 0 .../conf}/machine/qemu-x86.conf | 0 .../conf}/machine/stm32mp157c-dk2.conf | 0 COPYING.MIT => meta-zephyr-core/COPYING.MIT | 0 meta-zephyr-core/README.txt | 119 ++++++++++++++++++ .../classes}/siteinfo-zephyr.bbclass | 0 .../classes}/zephyr-flash-bossac.bbclass | 0 .../classes}/zephyr-flash-dfu.bbclass | 0 .../classes}/zephyr-flash-pyocd.bbclass | 0 .../classes}/zephyr-qemuboot.bbclass | 0 .../classes}/zephyr.bbclass | 0 .../classes}/zephyrtest.bbclass | 0 .../conf}/distro/zephyr.conf | 0 {conf => meta-zephyr-core/conf}/layer.conf | 12 +- .../lib}/oeqa/controllers/__init__.py | 0 .../oeqa/controllers/zephyrtargetcontrol.py | 0 .../lib}/oeqa/runtime/__init__.py | 0 .../lib}/oeqa/runtime/cases/zephyr.py | 0 .../lib}/oeqa/utils/qemuzephyrrunner.py | 0 .../recipes-core}/newlib/newlib_%.bbappend | 0 .../binutils/binutils-2.26arc.inc | 0 .../binutils-cross-canadian_2.26arc.bb | 0 .../binutils/binutils-cross_2.26arc.bb | 0 ...e54244cd02bdcf4f1057be3ce96631f35ac3.patch | 0 .../recipes-devtools-arc}/gcc/gcc-6.x.arc.inc | 0 .../gcc/gcc-cross-canadian_6.x.arc.bb | 0 .../gcc/gcc-cross_6.x.arc .bb | 0 .../gcc/gcc-source_6.x.arc.bb | 0 .../gcc/libgcc_6.x.arc.bb | 0 .../gcc/gcc-cross_6.%.bbappend | 0 .../recipes-devtools}/gcc/libgcc_6.%.bbappend | 0 .../python/python3-colorama_0.4.4.bb | 16 +++ .../python/python3-intelhex_2.3.0.bb | 12 ++ .../python/python3-lpc-checksum_2.2.0.bb | 14 +++ .../qemu/files/nios2-add-support.patch | 0 .../recipes-devtools}/qemu/qemu_%.bbappend | 0 .../0001-cmake-add-yocto-toolchain.patch | 0 ...0001-cmake-added-missing-file-ext-to.patch | 0 ...ry-generation-issue-in-cross-compila.patch | 0 ...rduino-nano-33-ble-storage-partition.patch | 0 .../zephyr-kernel/files/dtc.patch | 0 .../zephyr-kernel/zephyr-blinky.bb | 0 .../zephyr-kernel/zephyr-coap-client.bb | 0 .../zephyr-kernel/zephyr-coap-server.bb | 0 .../zephyr-kernel/zephyr-echo-client.bb | 0 .../zephyr-kernel/zephyr-hci-uart.bb | 0 .../zephyr-kernel/zephyr-helloworld.bb | 0 .../zephyr-kernel/zephyr-http-client.bb | 0 .../zephyr-kernel/zephyr-image.inc | 0 .../zephyr-kernel/zephyr-kernel-common.inc | 0 .../zephyr-kernel/zephyr-kernel-src-2.6.1.inc | 0 .../zephyr-kernel/zephyr-kernel-src-2.7.1.inc | 0 .../zephyr-kernel/zephyr-kernel-src-dev.inc | 0 .../zephyr-kernel/zephyr-kernel-src.bb | 0 .../zephyr-kernel/zephyr-kernel-src.inc | 0 .../zephyr-kernel/zephyr-kernel-test-all.bb | 0 .../zephyr-kernel/zephyr-kernel-test.bb | 0 .../zephyr-kernel/zephyr-kernel-test.inc | 0 .../zephyr-kernel/zephyr-lvgl.bb | 0 .../zephyr-kernel/zephyr-mqtt-publisher.bb | 0 .../zephyr-kernel/zephyr-openamp-rsc-table.bb | 0 .../zephyr-openthread-echo-client.bb | 0 .../zephyr-kernel/zephyr-peripheral-esp.bb | 0 .../zephyr-kernel/zephyr-peripheral-hr.bb | 0 .../zephyr-kernel/zephyr-philosophers.bb | 0 .../zephyr-kernel/zephyr-sample.inc | 0 .../zephyr-kernel/zephyr-websocket-client.bb | 0 84 files changed, 188 insertions(+), 7 deletions(-) create mode 100644 meta-zephyr-bsp/conf/layer.conf rename {conf => meta-zephyr-bsp/conf}/machine/96b-avenger96.conf (100%) rename {conf => meta-zephyr-bsp/conf}/machine/96b-nitrogen.conf (100%) rename {conf => meta-zephyr-bsp/conf}/machine/arduino-nano-33-ble.conf (100%) rename {conf => meta-zephyr-bsp/conf}/machine/include/nrf52.inc (100%) rename {conf => meta-zephyr-bsp/conf}/machine/include/stm32mp1-cortex-m4.inc (100%) rename {conf => meta-zephyr-bsp/conf}/machine/include/tune-arc.inc (100%) rename {conf => meta-zephyr-bsp/conf}/machine/include/tune-corei7-common.inc (100%) rename {conf => meta-zephyr-bsp/conf}/machine/include/tune-cortexm0.inc (100%) rename {conf => meta-zephyr-bsp/conf}/machine/include/tune-cortexm3.inc (100%) rename {conf => meta-zephyr-bsp/conf}/machine/include/tune-cortexm4.inc (100%) rename {conf => meta-zephyr-bsp/conf}/machine/include/tune-iamcu.inc (100%) rename {conf => meta-zephyr-bsp/conf}/machine/include/tune-nios2.inc (100%) rename {conf => meta-zephyr-bsp/conf}/machine/intel-x86-64.conf (100%) rename {conf => meta-zephyr-bsp/conf}/machine/nrf52840dk-nrf52840.conf (100%) rename {conf => meta-zephyr-bsp/conf}/machine/qemu-cortex-m3.conf (100%) rename {conf => meta-zephyr-bsp/conf}/machine/qemu-nios2.conf (100%) rename {conf => meta-zephyr-bsp/conf}/machine/qemu-x86.conf (100%) rename {conf => meta-zephyr-bsp/conf}/machine/stm32mp157c-dk2.conf (100%) rename COPYING.MIT => meta-zephyr-core/COPYING.MIT (100%) create mode 100644 meta-zephyr-core/README.txt rename {classes => meta-zephyr-core/classes}/siteinfo-zephyr.bbclass (100%) rename {classes => meta-zephyr-core/classes}/zephyr-flash-bossac.bbclass (100%) rename {classes => meta-zephyr-core/classes}/zephyr-flash-dfu.bbclass (100%) rename {classes => meta-zephyr-core/classes}/zephyr-flash-pyocd.bbclass (100%) rename {classes => meta-zephyr-core/classes}/zephyr-qemuboot.bbclass (100%) rename {classes => meta-zephyr-core/classes}/zephyr.bbclass (100%) rename {classes => meta-zephyr-core/classes}/zephyrtest.bbclass (100%) rename {conf => meta-zephyr-core/conf}/distro/zephyr.conf (100%) rename {conf => meta-zephyr-core/conf}/layer.conf (62%) rename {lib => meta-zephyr-core/lib}/oeqa/controllers/__init__.py (100%) rename {lib => meta-zephyr-core/lib}/oeqa/controllers/zephyrtargetcontrol.py (100%) rename {lib => meta-zephyr-core/lib}/oeqa/runtime/__init__.py (100%) rename {lib => meta-zephyr-core/lib}/oeqa/runtime/cases/zephyr.py (100%) rename {lib => meta-zephyr-core/lib}/oeqa/utils/qemuzephyrrunner.py (100%) rename {recipes-core => meta-zephyr-core/recipes-core}/newlib/newlib_%.bbappend (100%) rename {recipes-devtools-arc => meta-zephyr-core/recipes-devtools-arc}/binutils/binutils-2.26arc.inc (100%) rename {recipes-devtools-arc => meta-zephyr-core/recipes-devtools-arc}/binutils/binutils-cross-canadian_2.26arc.bb (100%) rename {recipes-devtools-arc => meta-zephyr-core/recipes-devtools-arc}/binutils/binutils-cross_2.26arc.bb (100%) rename {recipes-devtools-arc => meta-zephyr-core/recipes-devtools-arc}/gcc/files/cbd8e54244cd02bdcf4f1057be3ce96631f35ac3.patch (100%) rename {recipes-devtools-arc => meta-zephyr-core/recipes-devtools-arc}/gcc/gcc-6.x.arc.inc (100%) rename {recipes-devtools-arc => meta-zephyr-core/recipes-devtools-arc}/gcc/gcc-cross-canadian_6.x.arc.bb (100%) rename {recipes-devtools-arc => meta-zephyr-core/recipes-devtools-arc}/gcc/gcc-cross_6.x.arc .bb (100%) rename {recipes-devtools-arc => meta-zephyr-core/recipes-devtools-arc}/gcc/gcc-source_6.x.arc.bb (100%) rename {recipes-devtools-arc => meta-zephyr-core/recipes-devtools-arc}/gcc/libgcc_6.x.arc.bb (100%) rename {recipes-devtools => meta-zephyr-core/recipes-devtools}/gcc/gcc-cross_6.%.bbappend (100%) rename {recipes-devtools => meta-zephyr-core/recipes-devtools}/gcc/libgcc_6.%.bbappend (100%) create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-colorama_0.4.4.bb create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-intelhex_2.3.0.bb create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-lpc-checksum_2.2.0.bb rename {recipes-devtools => meta-zephyr-core/recipes-devtools}/qemu/files/nios2-add-support.patch (100%) rename {recipes-devtools => meta-zephyr-core/recipes-devtools}/qemu/qemu_%.bbappend (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/files/0001-cmake-add-yocto-toolchain.patch (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/files/0001-cmake-added-missing-file-ext-to.patch (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/files/0001-x86-fix-efi-binary-generation-issue-in-cross-compila.patch (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/files/arduino-nano-33-ble-storage-partition.patch (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/files/dtc.patch (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-blinky.bb (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-coap-client.bb (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-coap-server.bb (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-echo-client.bb (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-hci-uart.bb (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-helloworld.bb (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-http-client.bb (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-image.inc (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-kernel-common.inc (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-kernel-src-2.6.1.inc (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-kernel-src-2.7.1.inc (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-kernel-src-dev.inc (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-kernel-src.bb (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-kernel-src.inc (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-kernel-test-all.bb (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-kernel-test.bb (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-kernel-test.inc (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-lvgl.bb (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-mqtt-publisher.bb (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-openamp-rsc-table.bb (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-openthread-echo-client.bb (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-peripheral-esp.bb (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-peripheral-hr.bb (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-philosophers.bb (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-sample.inc (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-websocket-client.bb (100%) diff --git a/README.txt b/README.txt index 5a0ccc7..f3dda51 100644 --- a/README.txt +++ b/README.txt @@ -19,7 +19,7 @@ Modify local conf by adding: Add "meta-openembedded/meta-oe" to BBLAYERS Add "meta-openembedded/meta-python" to BBLAYERS -Add "meta-zephyr" to BBLAYERS +Add "meta-zephyr-core" and "meta-zephyr-bsp" to BBLAYERS Building and Running Zephyr Samples =================================== diff --git a/meta-zephyr-bsp/conf/layer.conf b/meta-zephyr-bsp/conf/layer.conf new file mode 100644 index 0000000..d5d478c --- /dev/null +++ b/meta-zephyr-bsp/conf/layer.conf @@ -0,0 +1,20 @@ +# We have a conf and classes directory, add to BBPATH +BBPATH .= ":${LAYERDIR}" + +# We have recipes-* directories, add to BBFILES +BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ + ${LAYERDIR}/recipes-*/*/*.bbappend" + +BBFILE_COLLECTIONS += "zephyrbsp" +BBFILE_PATTERN_zephyrbsp = "^${LAYERDIR}/" +BBFILE_PRIORITY_zephyrbsp = "6" + +# This should only be incremented on significant changes that will +# cause compatibility issues with other layers +LAYERVERSION_zephyrbsp = "1" + +LAYERDEPENDS_zephyrbsp = "zephyrcore core meta-python" + +LAYERSERIES_COMPAT_zephyrbsp = "dunfell gatesgarth hardknott honister" + +X86_TUNE_DIR = "${@bb.utils.contains('LAYERSERIES_CORENAMES', 'honister', 'include/x86', 'include', d)}" diff --git a/conf/machine/96b-avenger96.conf b/meta-zephyr-bsp/conf/machine/96b-avenger96.conf similarity index 100% rename from conf/machine/96b-avenger96.conf rename to meta-zephyr-bsp/conf/machine/96b-avenger96.conf diff --git a/conf/machine/96b-nitrogen.conf b/meta-zephyr-bsp/conf/machine/96b-nitrogen.conf similarity index 100% rename from conf/machine/96b-nitrogen.conf rename to meta-zephyr-bsp/conf/machine/96b-nitrogen.conf diff --git a/conf/machine/arduino-nano-33-ble.conf b/meta-zephyr-bsp/conf/machine/arduino-nano-33-ble.conf similarity index 100% rename from conf/machine/arduino-nano-33-ble.conf rename to meta-zephyr-bsp/conf/machine/arduino-nano-33-ble.conf diff --git a/conf/machine/include/nrf52.inc b/meta-zephyr-bsp/conf/machine/include/nrf52.inc similarity index 100% rename from conf/machine/include/nrf52.inc rename to meta-zephyr-bsp/conf/machine/include/nrf52.inc diff --git a/conf/machine/include/stm32mp1-cortex-m4.inc b/meta-zephyr-bsp/conf/machine/include/stm32mp1-cortex-m4.inc similarity index 100% rename from conf/machine/include/stm32mp1-cortex-m4.inc rename to meta-zephyr-bsp/conf/machine/include/stm32mp1-cortex-m4.inc diff --git a/conf/machine/include/tune-arc.inc b/meta-zephyr-bsp/conf/machine/include/tune-arc.inc similarity index 100% rename from conf/machine/include/tune-arc.inc rename to meta-zephyr-bsp/conf/machine/include/tune-arc.inc diff --git a/conf/machine/include/tune-corei7-common.inc b/meta-zephyr-bsp/conf/machine/include/tune-corei7-common.inc similarity index 100% rename from conf/machine/include/tune-corei7-common.inc rename to meta-zephyr-bsp/conf/machine/include/tune-corei7-common.inc diff --git a/conf/machine/include/tune-cortexm0.inc b/meta-zephyr-bsp/conf/machine/include/tune-cortexm0.inc similarity index 100% rename from conf/machine/include/tune-cortexm0.inc rename to meta-zephyr-bsp/conf/machine/include/tune-cortexm0.inc diff --git a/conf/machine/include/tune-cortexm3.inc b/meta-zephyr-bsp/conf/machine/include/tune-cortexm3.inc similarity index 100% rename from conf/machine/include/tune-cortexm3.inc rename to meta-zephyr-bsp/conf/machine/include/tune-cortexm3.inc diff --git a/conf/machine/include/tune-cortexm4.inc b/meta-zephyr-bsp/conf/machine/include/tune-cortexm4.inc similarity index 100% rename from conf/machine/include/tune-cortexm4.inc rename to meta-zephyr-bsp/conf/machine/include/tune-cortexm4.inc diff --git a/conf/machine/include/tune-iamcu.inc b/meta-zephyr-bsp/conf/machine/include/tune-iamcu.inc similarity index 100% rename from conf/machine/include/tune-iamcu.inc rename to meta-zephyr-bsp/conf/machine/include/tune-iamcu.inc diff --git a/conf/machine/include/tune-nios2.inc b/meta-zephyr-bsp/conf/machine/include/tune-nios2.inc similarity index 100% rename from conf/machine/include/tune-nios2.inc rename to meta-zephyr-bsp/conf/machine/include/tune-nios2.inc diff --git a/conf/machine/intel-x86-64.conf b/meta-zephyr-bsp/conf/machine/intel-x86-64.conf similarity index 100% rename from conf/machine/intel-x86-64.conf rename to meta-zephyr-bsp/conf/machine/intel-x86-64.conf diff --git a/conf/machine/nrf52840dk-nrf52840.conf b/meta-zephyr-bsp/conf/machine/nrf52840dk-nrf52840.conf similarity index 100% rename from conf/machine/nrf52840dk-nrf52840.conf rename to meta-zephyr-bsp/conf/machine/nrf52840dk-nrf52840.conf diff --git a/conf/machine/qemu-cortex-m3.conf b/meta-zephyr-bsp/conf/machine/qemu-cortex-m3.conf similarity index 100% rename from conf/machine/qemu-cortex-m3.conf rename to meta-zephyr-bsp/conf/machine/qemu-cortex-m3.conf diff --git a/conf/machine/qemu-nios2.conf b/meta-zephyr-bsp/conf/machine/qemu-nios2.conf similarity index 100% rename from conf/machine/qemu-nios2.conf rename to meta-zephyr-bsp/conf/machine/qemu-nios2.conf diff --git a/conf/machine/qemu-x86.conf b/meta-zephyr-bsp/conf/machine/qemu-x86.conf similarity index 100% rename from conf/machine/qemu-x86.conf rename to meta-zephyr-bsp/conf/machine/qemu-x86.conf diff --git a/conf/machine/stm32mp157c-dk2.conf b/meta-zephyr-bsp/conf/machine/stm32mp157c-dk2.conf similarity index 100% rename from conf/machine/stm32mp157c-dk2.conf rename to meta-zephyr-bsp/conf/machine/stm32mp157c-dk2.conf diff --git a/COPYING.MIT b/meta-zephyr-core/COPYING.MIT similarity index 100% rename from COPYING.MIT rename to meta-zephyr-core/COPYING.MIT diff --git a/meta-zephyr-core/README.txt b/meta-zephyr-core/README.txt new file mode 100644 index 0000000..5a0ccc7 --- /dev/null +++ b/meta-zephyr-core/README.txt @@ -0,0 +1,119 @@ +Building Zephyr Images via bitbake recipes +========================================== + +More detailed and up-to-date information can be found here: + +https://wiki.yoctoproject.org/wiki/TipsAndTricks/BuildingZephyrImages + +Prerequisites: +============== + +This layer depends on: + Yocto distro (master) + git://git.yoctoproject.org/poky + Python layer (meta-openembedded/meta-python) + git://git.openembedded.org/meta-openembedded + +Modify local conf by adding: + DISTRO="zephyr" + +Add "meta-openembedded/meta-oe" to BBLAYERS +Add "meta-openembedded/meta-python" to BBLAYERS +Add "meta-zephyr" to BBLAYERS + +Building and Running Zephyr Samples +=================================== + +You can build Zephyr samples. There are several sample recipes. +For example, to build the Zephyr "philosophers" sample: + + $ MACHINE=qemu-x86 bitbake zephyr-philosophers + +You can then run the created "philosophers" image in qemu: + + $ runqemu qemu-x86 + +The same sample, for ARM image: + + $ MACHINE=qemu-cortex-m3 bitbake zephyr-philosophers + $ runqemu qemu-cortex-m3 + +The same sample, for Nios2 image: + + $ MACHINE=qemu-nios2 bitbake zephyr-philosophers + $ runqemu qemu-nios2 + +Flashing +================================= + +You can flash Zephyr samples to boards. Currently, the following MACHINEs +are supported: + * DFU: + - arduino-101-sss + - arduino-101 + - arduino-101-ble + * pyocd: + - 96b-nitrogen + +To flash the example you built with command e.g. + + $ MACHINE=96b-nitrogen bitbake zephyr-philosophers + +call similar command with explicit flash_usb command: + + $ MACHINE=96b-nitrogen bitbake zephyr-philosophers -c flash_usb + +dfu-util and/or pyocd need to be installed in your system. If you observe +permission errors or the flashing process seem to hang, follow those instructions: +https://github.com/pyocd/pyOCD/tree/master/udev + +By default, pyocd tries to flash all the attached probes. This behaviour can be +customised by defining the PYOCD_FLASH_IDS variable as a space-separated list +of IDs. Once that is set, the tool will only try to program these IDs. You can +query for the IDs by running `pyocd list` on your host while having the probes +attached. Besides setting this variable through the build's configuration or +metadata, you can also inject its value from command line with something like: + + $ PYOCD_FLASH_IDS='<ID1> <ID2> <ID3>' BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE PYOCD_FLASH_IDS" bitbake <TARGET> -c flash_usb + +Building and Running Zephyr Tests +================================= +Presently only toolchains for ARM, x86, IAMCU and Nios2 are supported. +(For ARM we use CortexM3 toolchain) + +To run Zephyr Test using Yocto Image Tests, ensure following in local.conf: + + INHERIT += "testimage" + +You can build and test an individual existing Zephyr test. +This is done by appending the actual test name to the "zephyr-kernel-test", +for example: + + $ MACHINE=qemu-x86 bitbake zephyr-kernel-test-sleep + $ MACHINE=qemu-x86 bitbake zephyr-kernel-test-sleep -c testimage + +You can also build and run all Zephyr existing tests (as listed in the file +zephyr-kernel-test.inc). For example: + + $ MACHINE=qemu-x86 bitbake zephyr-kernel-test-all + $ MACHINE=qemu-x86 bitbake zephyr-kernel-test-all -c testimage +or + $ MACHINE=qemu-cortex-m3 bitbake zephyr-kernel-test-all + $ MACHINE=qemu-cortex-m3 bitbake zephyr-kernel-test-all -c testimage +or + $ MACHINE=qemu-nios2 bitbake zephyr-kernel-test-all + $ MACHINE=qemu-nios2 bitbake zephyr-kernel-test-all -c testimage + + +Contributing +============ + +Patches for meta-zephyr should be sent to the yocto@... +mailing list. See https://lists.yoctoproject.org/g/yocto for subscription +details and the list archive. Please add [meta-zephyr] to the subject so +the patches are identifable. + +Git can be configured to send mails appropriately when using git send-email: + +$ git config --local sendemail.to yocto@... +$ git config --local format.subjectPrefix meta-zephyr][PATCH diff --git a/classes/siteinfo-zephyr.bbclass b/meta-zephyr-core/classes/siteinfo-zephyr.bbclass similarity index 100% rename from classes/siteinfo-zephyr.bbclass rename to meta-zephyr-core/classes/siteinfo-zephyr.bbclass diff --git a/classes/zephyr-flash-bossac.bbclass b/meta-zephyr-core/classes/zephyr-flash-bossac.bbclass similarity index 100% rename from classes/zephyr-flash-bossac.bbclass rename to meta-zephyr-core/classes/zephyr-flash-bossac.bbclass diff --git a/classes/zephyr-flash-dfu.bbclass b/meta-zephyr-core/classes/zephyr-flash-dfu.bbclass similarity index 100% rename from classes/zephyr-flash-dfu.bbclass rename to meta-zephyr-core/classes/zephyr-flash-dfu.bbclass diff --git a/classes/zephyr-flash-pyocd.bbclass b/meta-zephyr-core/classes/zephyr-flash-pyocd.bbclass similarity index 100% rename from classes/zephyr-flash-pyocd.bbclass rename to meta-zephyr-core/classes/zephyr-flash-pyocd.bbclass diff --git a/classes/zephyr-qemuboot.bbclass b/meta-zephyr-core/classes/zephyr-qemuboot.bbclass similarity index 100% rename from classes/zephyr-qemuboot.bbclass rename to meta-zephyr-core/classes/zephyr-qemuboot.bbclass diff --git a/classes/zephyr.bbclass b/meta-zephyr-core/classes/zephyr.bbclass similarity index 100% rename from classes/zephyr.bbclass rename to meta-zephyr-core/classes/zephyr.bbclass diff --git a/classes/zephyrtest.bbclass b/meta-zephyr-core/classes/zephyrtest.bbclass similarity index 100% rename from classes/zephyrtest.bbclass rename to meta-zephyr-core/classes/zephyrtest.bbclass diff --git a/conf/distro/zephyr.conf b/meta-zephyr-core/conf/distro/zephyr.conf similarity index 100% rename from conf/distro/zephyr.conf rename to meta-zephyr-core/conf/distro/zephyr.conf diff --git a/conf/layer.conf b/meta-zephyr-core/conf/layer.conf similarity index 62% rename from conf/layer.conf rename to meta-zephyr-core/conf/layer.conf index 35f1075..4b1bf91 100644 --- a/conf/layer.conf +++ b/meta-zephyr-core/conf/layer.conf @@ -5,16 +5,16 @@ BBPATH .= ":${LAYERDIR}" BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ ${LAYERDIR}/recipes-*/*/*.bbappend" -BBFILE_COLLECTIONS += "zephyr" -BBFILE_PATTERN_zephyr = "^${LAYERDIR}/" -BBFILE_PRIORITY_zephyr = "6" +BBFILE_COLLECTIONS += "zephyrcore" +BBFILE_PATTERN_zephyrcore = "^${LAYERDIR}/" +BBFILE_PRIORITY_zephyrcore = "6" # This should only be incremented on significant changes that will # cause compatibility issues with other layers -LAYERVERSION_zephyr = "1" +LAYERVERSION_zephyrcore = "1" -LAYERDEPENDS_zephyr = "core meta-python" +LAYERDEPENDS_zephyrcore = "core meta-python" -LAYERSERIES_COMPAT_zephyr = "dunfell gatesgarth hardknott honister" +LAYERSERIES_COMPAT_zephyrcore = "dunfell gatesgarth hardknott honister" X86_TUNE_DIR = "${@bb.utils.contains('LAYERSERIES_CORENAMES', 'honister', 'include/x86', 'include', d)}" diff --git a/lib/oeqa/controllers/__init__.py b/meta-zephyr-core/lib/oeqa/controllers/__init__.py similarity index 100% rename from lib/oeqa/controllers/__init__.py rename to meta-zephyr-core/lib/oeqa/controllers/__init__.py diff --git a/lib/oeqa/controllers/zephyrtargetcontrol.py b/meta-zephyr-core/lib/oeqa/controllers/zephyrtargetcontrol.py similarity index 100% rename from lib/oeqa/controllers/zephyrtargetcontrol.py rename to meta-zephyr-core/lib/oeqa/controllers/zephyrtargetcontrol.py diff --git a/lib/oeqa/runtime/__init__.py b/meta-zephyr-core/lib/oeqa/runtime/__init__.py similarity index 100% rename from lib/oeqa/runtime/__init__.py rename to meta-zephyr-core/lib/oeqa/runtime/__init__.py diff --git a/lib/oeqa/runtime/cases/zephyr.py b/meta-zephyr-core/lib/oeqa/runtime/cases/zephyr.py similarity index 100% rename from lib/oeqa/runtime/cases/zephyr.py rename to meta-zephyr-core/lib/oeqa/runtime/cases/zephyr.py diff --git a/lib/oeqa/utils/qemuzephyrrunner.py b/meta-zephyr-core/lib/oeqa/utils/qemuzephyrrunner.py similarity index 100% rename from lib/oeqa/utils/qemuzephyrrunner.py rename to meta-zephyr-core/lib/oeqa/utils/qemuzephyrrunner.py diff --git a/recipes-core/newlib/newlib_%.bbappend b/meta-zephyr-core/recipes-core/newlib/newlib_%.bbappend similarity index 100% rename from recipes-core/newlib/newlib_%.bbappend rename to meta-zephyr-core/recipes-core/newlib/newlib_%.bbappend diff --git a/recipes-devtools-arc/binutils/binutils-2.26arc.inc b/meta-zephyr-core/recipes-devtools-arc/binutils/binutils-2.26arc.inc similarity index 100% rename from recipes-devtools-arc/binutils/binutils-2.26arc.inc rename to meta-zephyr-core/recipes-devtools-arc/binutils/binutils-2.26arc.inc diff --git a/recipes-devtools-arc/binutils/binutils-cross-canadian_2.26arc.bb b/meta-zephyr-core/recipes-devtools-arc/binutils/binutils-cross-canadian_2.26arc.bb similarity index 100% rename from recipes-devtools-arc/binutils/binutils-cross-canadian_2.26arc.bb rename to meta-zephyr-core/recipes-devtools-arc/binutils/binutils-cross-canadian_2.26arc.bb diff --git a/recipes-devtools-arc/binutils/binutils-cross_2.26arc.bb b/meta-zephyr-core/recipes-devtools-arc/binutils/binutils-cross_2.26arc.bb similarity index 100% rename from recipes-devtools-arc/binutils/binutils-cross_2.26arc.bb rename to meta-zephyr-core/recipes-devtools-arc/binutils/binutils-cross_2.26arc.bb diff --git a/recipes-devtools-arc/gcc/files/cbd8e54244cd02bdcf4f1057be3ce96631f35ac3.patch b/meta-zephyr-core/recipes-devtools-arc/gcc/files/cbd8e54244cd02bdcf4f1057be3ce96631f35ac3.patch similarity index 100% rename from recipes-devtools-arc/gcc/files/cbd8e54244cd02bdcf4f1057be3ce96631f35ac3.patch rename to meta-zephyr-core/recipes-devtools-arc/gcc/files/cbd8e54244cd02bdcf4f1057be3ce96631f35ac3.patch diff --git a/recipes-devtools-arc/gcc/gcc-6.x.arc.inc b/meta-zephyr-core/recipes-devtools-arc/gcc/gcc-6.x.arc.inc similarity index 100% rename from recipes-devtools-arc/gcc/gcc-6.x.arc.inc rename to meta-zephyr-core/recipes-devtools-arc/gcc/gcc-6.x.arc.inc diff --git a/recipes-devtools-arc/gcc/gcc-cross-canadian_6.x.arc.bb b/meta-zephyr-core/recipes-devtools-arc/gcc/gcc-cross-canadian_6.x.arc.bb similarity index 100% rename from recipes-devtools-arc/gcc/gcc-cross-canadian_6.x.arc.bb rename to meta-zephyr-core/recipes-devtools-arc/gcc/gcc-cross-canadian_6.x.arc.bb diff --git a/recipes-devtools-arc/gcc/gcc-cross_6.x.arc .bb b/meta-zephyr-core/recipes-devtools-arc/gcc/gcc-cross_6.x.arc .bb similarity index 100% rename from recipes-devtools-arc/gcc/gcc-cross_6.x.arc .bb rename to meta-zephyr-core/recipes-devtools-arc/gcc/gcc-cross_6.x.arc .bb diff --git a/recipes-devtools-arc/gcc/gcc-source_6.x.arc.bb b/meta-zephyr-core/recipes-devtools-arc/gcc/gcc-source_6.x.arc.bb similarity index 100% rename from recipes-devtools-arc/gcc/gcc-source_6.x.arc.bb rename to meta-zephyr-core/recipes-devtools-arc/gcc/gcc-source_6.x.arc.bb diff --git a/recipes-devtools-arc/gcc/libgcc_6.x.arc.bb b/meta-zephyr-core/recipes-devtools-arc/gcc/libgcc_6.x.arc.bb similarity index 100% rename from recipes-devtools-arc/gcc/libgcc_6.x.arc.bb rename to meta-zephyr-core/recipes-devtools-arc/gcc/libgcc_6.x.arc.bb diff --git a/recipes-devtools/gcc/gcc-cross_6.%.bbappend b/meta-zephyr-core/recipes-devtools/gcc/gcc-cross_6.%.bbappend similarity index 100% rename from recipes-devtools/gcc/gcc-cross_6.%.bbappend rename to meta-zephyr-core/recipes-devtools/gcc/gcc-cross_6.%.bbappend diff --git a/recipes-devtools/gcc/libgcc_6.%.bbappend b/meta-zephyr-core/recipes-devtools/gcc/libgcc_6.%.bbappend similarity index 100% rename from recipes-devtools/gcc/libgcc_6.%.bbappend rename to meta-zephyr-core/recipes-devtools/gcc/libgcc_6.%.bbappend diff --git a/meta-zephyr-core/recipes-devtools/python/python3-colorama_0.4.4.bb b/meta-zephyr-core/recipes-devtools/python/python3-colorama_0.4.4.bb new file mode 100644 index 0000000..67b8d52 --- /dev/null +++ b/meta-zephyr-core/recipes-devtools/python/python3-colorama_0.4.4.bb @@ -0,0 +1,16 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# SPDX-License-Identifier: Apache-2.0 + +SUMMARY = "Python colorama" +HOMEPAGE = "https://pypi.org/project/colorama" +DESCRIPTION = "Makes ANSI escape character sequences (for producing colored \ + terminal text and cursor positioning) work under MS Windows." +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b4936429a56a652b84c5c01280dcaa26" + +inherit pypi setuptools3 + +PYPI_PACKAGE = "colorama" +SRC_URI[md5sum] = "57b22f2597f63df051b69906fbf310cc" +SRC_URI[sha256sum] = "5941b2b48a20143d2267e95b1c2a7603ce057ee39fd88e7329b0c292aa16869b" +BBCLASSEXTEND = "native nativesdk" diff --git a/meta-zephyr-core/recipes-devtools/python/python3-intelhex_2.3.0.bb b/meta-zephyr-core/recipes-devtools/python/python3-intelhex_2.3.0.bb new file mode 100644 index 0000000..e297491 --- /dev/null +++ b/meta-zephyr-core/recipes-devtools/python/python3-intelhex_2.3.0.bb @@ -0,0 +1,12 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# SPDX-License-Identifier: Apache-2.0 + +SUMMARY = "Python library for Intel HEX files manipulations" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=4eba844696655c3eae07aca8e3a94772" + +SRC_URI[sha256sum] = "892b7361a719f4945237da8ccf754e9513db32f5628852785aea108dcd250093" + +inherit pypi setuptools3 + +BBCLASSEXTEND = "native nativesdk" diff --git a/meta-zephyr-core/recipes-devtools/python/python3-lpc-checksum_2.2.0.bb b/meta-zephyr-core/recipes-devtools/python/python3-lpc-checksum_2.2.0.bb new file mode 100644 index 0000000..503f7ca --- /dev/null +++ b/meta-zephyr-core/recipes-devtools/python/python3-lpc-checksum_2.2.0.bb @@ -0,0 +1,14 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# SPDX-License-Identifier: Apache-2.0 + +SUMMARY = "Python lpc_checksum" +HOMEPAGE = "https://pypi.org/project/lpc_checksum" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=85c86965b0249c221935f585c0313d60" + +inherit pypi setuptools3 + +PYPI_PACKAGE = "lpc_checksum" +SRC_URI[md5sum] = "eef81888414a111e1fd5992b8614b6cb" +SRC_URI[sha256sum] = "1f2fb198483cc718141f1aa0ed4717fd188e29874d7db0409d1ed04358b64185" +BBCLASSEXTEND = "native nativesdk" diff --git a/recipes-devtools/qemu/files/nios2-add-support.patch b/meta-zephyr-core/recipes-devtools/qemu/files/nios2-add-support.patch similarity index 100% rename from recipes-devtools/qemu/files/nios2-add-support.patch rename to meta-zephyr-core/recipes-devtools/qemu/files/nios2-add-support.patch diff --git a/recipes-devtools/qemu/qemu_%.bbappend b/meta-zephyr-core/recipes-devtools/qemu/qemu_%.bbappend similarity index 100% rename from recipes-devtools/qemu/qemu_%.bbappend rename to meta-zephyr-core/recipes-devtools/qemu/qemu_%.bbappend diff --git a/recipes-kernel/zephyr-kernel/files/0001-cmake-add-yocto-toolchain.patch b/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-cmake-add-yocto-toolchain.patch similarity index 100% rename from recipes-kernel/zephyr-kernel/files/0001-cmake-add-yocto-toolchain.patch rename to meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-cmake-add-yocto-toolchain.patch diff --git a/recipes-kernel/zephyr-kernel/files/0001-cmake-added-missing-file-ext-to.patch b/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-cmake-added-missing-file-ext-to.patch similarity index 100% rename from recipes-kernel/zephyr-kernel/files/0001-cmake-added-missing-file-ext-to.patch rename to meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-cmake-added-missing-file-ext-to.patch diff --git a/recipes-kernel/zephyr-kernel/files/0001-x86-fix-efi-binary-generation-issue-in-cross-compila.patch b/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-x86-fix-efi-binary-generation-issue-in-cross-compila.patch similarity index 100% rename from recipes-kernel/zephyr-kernel/files/0001-x86-fix-efi-binary-generation-issue-in-cross-compila.patch rename to meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-x86-fix-efi-binary-generation-issue-in-cross-compila.patch diff --git a/recipes-kernel/zephyr-kernel/files/arduino-nano-33-ble-storage-partition.patch b/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/arduino-nano-33-ble-storage-partition.patch similarity index 100% rename from recipes-kernel/zephyr-kernel/files/arduino-nano-33-ble-storage-partition.patch rename to meta-zephyr-core/recipes-kernel/zephyr-kernel/files/arduino-nano-33-ble-storage-partition.patch diff --git a/recipes-kernel/zephyr-kernel/files/dtc.patch b/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/dtc.patch similarity index 100% rename from recipes-kernel/zephyr-kernel/files/dtc.patch rename to meta-zephyr-core/recipes-kernel/zephyr-kernel/files/dtc.patch diff --git a/recipes-kernel/zephyr-kernel/zephyr-blinky.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-blinky.bb similarity index 100% rename from recipes-kernel/zephyr-kernel/zephyr-blinky.bb rename to meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-blinky.bb diff --git a/recipes-kernel/zephyr-kernel/zephyr-coap-client.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-coap-client.bb similarity index 100% rename from recipes-kernel/zephyr-kernel/zephyr-coap-client.bb rename to meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-coap-client.bb diff --git a/recipes-kernel/zephyr-kernel/zephyr-coap-server.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-coap-server.bb similarity index 100% rename from recipes-kernel/zephyr-kernel/zephyr-coap-server.bb rename to meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-coap-server.bb diff --git a/recipes-kernel/zephyr-kernel/zephyr-echo-client.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-echo-client.bb similarity index 100% rename from recipes-kernel/zephyr-kernel/zephyr-echo-client.bb rename to meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-echo-client.bb diff --git a/recipes-kernel/zephyr-kernel/zephyr-hci-uart.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-hci-uart.bb similarity index 100% rename from recipes-kernel/zephyr-kernel/zephyr-hci-uart.bb rename to meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-hci-uart.bb diff --git a/recipes-kernel/zephyr-kernel/zephyr-helloworld.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-helloworld.bb similarity index 100% rename from recipes-kernel/zephyr-kernel/zephyr-helloworld.bb rename to meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-helloworld.bb diff --git a/recipes-kernel/zephyr-kernel/zephyr-http-client.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-http-client.bb similarity index 100% rename from recipes-kernel/zephyr-kernel/zephyr-http-client.bb rename to meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-http-client.bb diff --git a/recipes-kernel/zephyr-kernel/zephyr-image.inc b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc similarity index 100% rename from recipes-kernel/zephyr-kernel/zephyr-image.inc rename to meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc similarity index 100% rename from recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc rename to meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.1.inc b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.1.inc similarity index 100% rename from recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.1.inc rename to meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.1.inc diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.7.1.inc b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.7.1.inc similarity index 100% rename from recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.7.1.inc rename to meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.7.1.inc diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-dev.inc b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-dev.inc similarity index 100% rename from recipes-kernel/zephyr-kernel/zephyr-kernel-src-dev.inc rename to meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-dev.inc diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src.bb similarity index 100% rename from recipes-kernel/zephyr-kernel/zephyr-kernel-src.bb rename to meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src.bb diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc similarity index 100% rename from recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc rename to meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-test-all.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-test-all.bb similarity index 100% rename from recipes-kernel/zephyr-kernel/zephyr-kernel-test-all.bb rename to meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-test-all.bb diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-test.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-test.bb similarity index 100% rename from recipes-kernel/zephyr-kernel/zephyr-kernel-test.bb rename to meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-test.bb diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-test.inc b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-test.inc similarity index 100% rename from recipes-kernel/zephyr-kernel/zephyr-kernel-test.inc rename to meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-test.inc diff --git a/recipes-kernel/zephyr-kernel/zephyr-lvgl.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-lvgl.bb similarity index 100% rename from recipes-kernel/zephyr-kernel/zephyr-lvgl.bb rename to meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-lvgl.bb diff --git a/recipes-kernel/zephyr-kernel/zephyr-mqtt-publisher.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-mqtt-publisher.bb similarity index 100% rename from recipes-kernel/zephyr-kernel/zephyr-mqtt-publisher.bb rename to meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-mqtt-publisher.bb diff --git a/recipes-kernel/zephyr-kernel/zephyr-openamp-rsc-table.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-rsc-table.bb similarity index 100% rename from recipes-kernel/zephyr-kernel/zephyr-openamp-rsc-table.bb rename to meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-rsc-table.bb diff --git a/recipes-kernel/zephyr-kernel/zephyr-openthread-echo-client.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openthread-echo-client.bb similarity index 100% rename from recipes-kernel/zephyr-kernel/zephyr-openthread-echo-client.bb rename to meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openthread-echo-client.bb diff --git a/recipes-kernel/zephyr-kernel/zephyr-peripheral-esp.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-peripheral-esp.bb similarity index 100% rename from recipes-kernel/zephyr-kernel/zephyr-peripheral-esp.bb rename to meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-peripheral-esp.bb diff --git a/recipes-kernel/zephyr-kernel/zephyr-peripheral-hr.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-peripheral-hr.bb similarity index 100% rename from recipes-kernel/zephyr-kernel/zephyr-peripheral-hr.bb rename to meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-peripheral-hr.bb diff --git a/recipes-kernel/zephyr-kernel/zephyr-philosophers.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-philosophers.bb similarity index 100% rename from recipes-kernel/zephyr-kernel/zephyr-philosophers.bb rename to meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-philosophers.bb diff --git a/recipes-kernel/zephyr-kernel/zephyr-sample.inc b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-sample.inc similarity index 100% rename from recipes-kernel/zephyr-kernel/zephyr-sample.inc rename to meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-sample.inc diff --git a/recipes-kernel/zephyr-kernel/zephyr-websocket-client.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-websocket-client.bb similarity index 100% rename from recipes-kernel/zephyr-kernel/zephyr-websocket-client.bb rename to meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-websocket-client.bb -- 2.25.1
|
|
[meta-zephyr][PATCH v4] Restructure and remove MACHINEOVERRIDES
Eilís Ní Fhlannagáin
From: Eilís Ní Fhlannagáin <elizabeth.flanagan@...>
This set of patches relates to what I discussed at https://lists.yoctoproject.org/g/yocto/message/55285. Four major issues (and one minor issue)are dealt with in this series. The first is a logical split of the meta-zephyr layer into a machine BSP layer and a functional core layer. The second is the removal for the need of MACHINEOVERRIDES as a method of telling zephyr it's'-DZEPHYR_MODULES. Zephyr already knows this, so by abusing west list a bit, we can pull that information out and generate the needed config line to be passed into cmake. Out of tree ZEPHYR_MODULES should be added via ZEPHYR_EXTRA_MODULES. The third major issue is as we're now relying on west to know what modules Zephyr needs, we need to checkout the complete Zephyr source. The last major issue is that Zephyr knows it's own machine config and I would like us to support as many of the Zephyr machines as possible. As I've yet to find a way to do this at build time, with a little abuse of cmake exports we can generate machine configurations based on what is in Zephyr itself. These have obviously not all been tested I've not added the machines it generates as there are still some issues around automatic machine generation that I wish to solve before adding those machines, however 288 machines will build helloworld without issue. More work needs to be done here. A few machines will most likely never work at all without some significant work. Lastly there was a minor issue with the 2.6.1 kernel in that the dtc patch Ross created for 2.7.0 (moved to 2.7.1) wasn't applied which causes 2.6.1 to fail with the same error Eilís Ní Fhlannagáin (8): meta-zephyr-core/bsp: Restructure into sublayers west: Add west and python dependencies zephyr.bbclass: Remove need for MACHINEOVERRIDES for ZEPHYR_MODULES zephyr-kernel-src: Add complete zephyr source zephyr-kernel-src-2.6.1: Add dtc patch. recipes-meta: Abuse CMake to create OE machine definitions zephyr-kernel: Modify recipes to work with new -DZEPHYR_MODULES README.txt: Document generate-zephyr-machine use README.txt | 18 +- {conf => meta-zephyr-bsp/conf}/layer.conf | 12 +- .../conf}/machine/96b-avenger96.conf | 0 .../conf}/machine/96b-nitrogen.conf | 0 .../conf}/machine/arduino-nano-33-ble.conf | 0 .../conf}/machine/include/nrf52.inc | 2 - .../machine/include/stm32mp1-cortex-m4.inc | 3 - .../conf}/machine/include/tune-arc.inc | 0 .../machine/include/tune-corei7-common.inc | 0 .../conf}/machine/include/tune-cortexm0.inc | 0 .../conf}/machine/include/tune-cortexm3.inc | 0 .../conf}/machine/include/tune-cortexm4.inc | 0 .../conf}/machine/include/tune-iamcu.inc | 0 .../conf}/machine/include/tune-nios2.inc | 0 .../conf}/machine/intel-x86-64.conf | 0 .../conf}/machine/nrf52840dk-nrf52840.conf | 0 .../conf}/machine/qemu-cortex-m3.conf | 0 .../conf}/machine/qemu-nios2.conf | 0 .../conf}/machine/qemu-x86.conf | 0 .../conf}/machine/stm32mp157c-dk2.conf | 0 ...xport-an-OpenEmbedded-machine-config.patch | 184 ++++++++++++++++++ .../meta/generate-zephyr-machines.bb | 45 +++++ COPYING.MIT => meta-zephyr-core/COPYING.MIT | 0 meta-zephyr-core/README.txt | 119 +++++++++++ .../classes}/siteinfo-zephyr.bbclass | 0 .../classes}/zephyr-flash-bossac.bbclass | 0 .../classes}/zephyr-flash-dfu.bbclass | 0 .../classes}/zephyr-flash-pyocd.bbclass | 0 .../classes}/zephyr-qemuboot.bbclass | 0 .../classes}/zephyr.bbclass | 42 ++++ .../classes}/zephyrtest.bbclass | 0 .../conf}/distro/zephyr.conf | 0 meta-zephyr-core/conf/layer.conf | 22 +++ .../lib}/oeqa/controllers/__init__.py | 0 .../oeqa/controllers/zephyrtargetcontrol.py | 0 .../lib}/oeqa/runtime/__init__.py | 0 .../lib}/oeqa/runtime/cases/zephyr.py | 0 .../lib}/oeqa/utils/qemuzephyrrunner.py | 0 .../recipes-core}/newlib/newlib_%.bbappend | 0 .../binutils/binutils-2.26arc.inc | 0 .../binutils-cross-canadian_2.26arc.bb | 0 .../binutils/binutils-cross_2.26arc.bb | 0 ...e54244cd02bdcf4f1057be3ce96631f35ac3.patch | 0 .../recipes-devtools-arc}/gcc/gcc-6.x.arc.inc | 0 .../gcc/gcc-cross-canadian_6.x.arc.bb | 0 .../gcc/gcc-cross_6.x.arc .bb | 0 .../gcc/gcc-source_6.x.arc.bb | 0 .../gcc/libgcc_6.x.arc.bb | 0 .../gcc/gcc-cross_6.%.bbappend | 0 .../recipes-devtools}/gcc/libgcc_6.%.bbappend | 0 .../python/python3-anytree_2.8.0.bb | 14 ++ .../python/python3-breathe_4.31.0.bb | 17 ++ .../python/python3-canopen_1.2.1.bb | 17 ++ .../python/python3-cbor_1.0.0.bb | 19 ++ .../python/python3-gitlint_0.15.1.bb | 14 ++ .../python/python3-imgtool_1.7.2.bb | 14 ++ .../python/python3-junithtml_30.0.4.bb | 14 ++ .../python/python3-junitparser_2.1.1.bb | 14 ++ .../python/python3-lpc-checksum_2.2.0.bb | 14 ++ .../python/python3-packaging_21.0.bb | 14 ++ .../python/python3-pyelftools_0.27.bb | 14 ++ .../python/python3-pygithub_1.55.bb | 14 ++ .../python/python3-pygments_2.10.0.bb | 15 ++ .../recipes-devtools/python/python3-pylink | 11 ++ .../python/python3-pyocd_0.32.0.bb | 14 ++ .../python/python3-pyparsing_2.4.7.bb | 14 ++ .../python/python3-sphinx_4.2.0.bb | 14 ++ .../qemu/files/nios2-add-support.patch | 0 .../recipes-devtools}/qemu/qemu_%.bbappend | 0 .../recipes-devtools/west/west_0.12.99.bb | 22 +++ .../0001-cmake-add-yocto-toolchain.patch | 0 ...0001-cmake-added-missing-file-ext-to.patch | 0 ...ry-generation-issue-in-cross-compila.patch | 0 ...rduino-nano-33-ble-storage-partition.patch | 0 .../zephyr-kernel/files/dtc.patch | 0 .../zephyr-kernel/zephyr-blinky.bb | 0 .../zephyr-kernel/zephyr-coap-client.bb | 2 - .../zephyr-kernel/zephyr-coap-server.bb | 2 - .../zephyr-kernel/zephyr-echo-client.bb | 2 - .../zephyr-kernel/zephyr-hci-uart.bb | 0 .../zephyr-kernel/zephyr-helloworld.bb | 0 .../zephyr-kernel/zephyr-http-client.bb | 1 - .../zephyr-kernel/zephyr-image.inc | 0 .../zephyr-kernel/zephyr-kernel-common.inc | 13 +- .../zephyr-kernel/zephyr-kernel-src-2.6.1.inc | 54 +++++ .../zephyr-kernel/zephyr-kernel-src-2.7.1.inc | 69 +++++++ .../zephyr-kernel/zephyr-kernel-src-dev.inc | 0 .../zephyr-kernel/zephyr-kernel-src.bb | 0 .../zephyr-kernel/zephyr-kernel-src.inc | 58 ++++++ .../zephyr-kernel/zephyr-kernel-test-all.bb | 0 .../zephyr-kernel/zephyr-kernel-test.bb | 0 .../zephyr-kernel/zephyr-kernel-test.inc | 0 .../zephyr-kernel/zephyr-lvgl.bb | 8 + .../zephyr-kernel/zephyr-mqtt-publisher.bb | 2 - .../zephyr-kernel/zephyr-openamp-rsc-table.bb | 0 .../zephyr-openthread-echo-client.bb | 3 - .../zephyr-kernel/zephyr-peripheral-esp.bb | 2 - .../zephyr-kernel/zephyr-peripheral-hr.bb | 2 - .../zephyr-kernel/zephyr-philosophers.bb | 0 .../zephyr-kernel/zephyr-sample.inc | 0 .../zephyr-kernel/zephyr-websocket-client.bb | 2 - .../zephyr-kernel/zephyr-kernel-src-2.6.1.inc | 20 -- .../zephyr-kernel/zephyr-kernel-src-2.7.1.inc | 20 -- .../zephyr-kernel/zephyr-kernel-src.inc | 27 --- recipes-kernel/zephyr-kernel/zephyr-lvgl.bb | 18 -- 105 files changed, 898 insertions(+), 123 deletions(-) rename {conf => meta-zephyr-bsp/conf}/layer.conf (62%) rename {conf => meta-zephyr-bsp/conf}/machine/96b-avenger96.conf (100%) rename {conf => meta-zephyr-bsp/conf}/machine/96b-nitrogen.conf (100%) rename {conf => meta-zephyr-bsp/conf}/machine/arduino-nano-33-ble.conf (100%) rename {conf => meta-zephyr-bsp/conf}/machine/include/nrf52.inc (89%) rename {conf => meta-zephyr-bsp/conf}/machine/include/stm32mp1-cortex-m4.inc (67%) rename {conf => meta-zephyr-bsp/conf}/machine/include/tune-arc.inc (100%) rename {conf => meta-zephyr-bsp/conf}/machine/include/tune-corei7-common.inc (100%) rename {conf => meta-zephyr-bsp/conf}/machine/include/tune-cortexm0.inc (100%) rename {conf => meta-zephyr-bsp/conf}/machine/include/tune-cortexm3.inc (100%) rename {conf => meta-zephyr-bsp/conf}/machine/include/tune-cortexm4.inc (100%) rename {conf => meta-zephyr-bsp/conf}/machine/include/tune-iamcu.inc (100%) rename {conf => meta-zephyr-bsp/conf}/machine/include/tune-nios2.inc (100%) rename {conf => meta-zephyr-bsp/conf}/machine/intel-x86-64.conf (100%) rename {conf => meta-zephyr-bsp/conf}/machine/nrf52840dk-nrf52840.conf (100%) rename {conf => meta-zephyr-bsp/conf}/machine/qemu-cortex-m3.conf (100%) rename {conf => meta-zephyr-bsp/conf}/machine/qemu-nios2.conf (100%) rename {conf => meta-zephyr-bsp/conf}/machine/qemu-x86.conf (100%) rename {conf => meta-zephyr-bsp/conf}/machine/stm32mp157c-dk2.conf (100%) create mode 100644 meta-zephyr-bsp/recipes-meta/meta/files/0001-zephyr-Export-an-OpenEmbedded-machine-config.patch create mode 100644 meta-zephyr-bsp/recipes-meta/meta/generate-zephyr-machines.bb rename COPYING.MIT => meta-zephyr-core/COPYING.MIT (100%) create mode 100644 meta-zephyr-core/README.txt rename {classes => meta-zephyr-core/classes}/siteinfo-zephyr.bbclass (100%) rename {classes => meta-zephyr-core/classes}/zephyr-flash-bossac.bbclass (100%) rename {classes => meta-zephyr-core/classes}/zephyr-flash-dfu.bbclass (100%) rename {classes => meta-zephyr-core/classes}/zephyr-flash-pyocd.bbclass (100%) rename {classes => meta-zephyr-core/classes}/zephyr-qemuboot.bbclass (100%) rename {classes => meta-zephyr-core/classes}/zephyr.bbclass (54%) rename {classes => meta-zephyr-core/classes}/zephyrtest.bbclass (100%) rename {conf => meta-zephyr-core/conf}/distro/zephyr.conf (100%) create mode 100644 meta-zephyr-core/conf/layer.conf rename {lib => meta-zephyr-core/lib}/oeqa/controllers/__init__.py (100%) rename {lib => meta-zephyr-core/lib}/oeqa/controllers/zephyrtargetcontrol.py (100%) rename {lib => meta-zephyr-core/lib}/oeqa/runtime/__init__.py (100%) rename {lib => meta-zephyr-core/lib}/oeqa/runtime/cases/zephyr.py (100%) rename {lib => meta-zephyr-core/lib}/oeqa/utils/qemuzephyrrunner.py (100%) rename {recipes-core => meta-zephyr-core/recipes-core}/newlib/newlib_%.bbappend (100%) rename {recipes-devtools-arc => meta-zephyr-core/recipes-devtools-arc}/binutils/binutils-2.26arc.inc (100%) rename {recipes-devtools-arc => meta-zephyr-core/recipes-devtools-arc}/binutils/binutils-cross-canadian_2.26arc.bb (100%) rename {recipes-devtools-arc => meta-zephyr-core/recipes-devtools-arc}/binutils/binutils-cross_2.26arc.bb (100%) rename {recipes-devtools-arc => meta-zephyr-core/recipes-devtools-arc}/gcc/files/cbd8e54244cd02bdcf4f1057be3ce96631f35ac3.patch (100%) rename {recipes-devtools-arc => meta-zephyr-core/recipes-devtools-arc}/gcc/gcc-6.x.arc.inc (100%) rename {recipes-devtools-arc => meta-zephyr-core/recipes-devtools-arc}/gcc/gcc-cross-canadian_6.x.arc.bb (100%) rename {recipes-devtools-arc => meta-zephyr-core/recipes-devtools-arc}/gcc/gcc-cross_6.x.arc .bb (100%) rename {recipes-devtools-arc => meta-zephyr-core/recipes-devtools-arc}/gcc/gcc-source_6.x.arc.bb (100%) rename {recipes-devtools-arc => meta-zephyr-core/recipes-devtools-arc}/gcc/libgcc_6.x.arc.bb (100%) rename {recipes-devtools => meta-zephyr-core/recipes-devtools}/gcc/gcc-cross_6.%.bbappend (100%) rename {recipes-devtools => meta-zephyr-core/recipes-devtools}/gcc/libgcc_6.%.bbappend (100%) create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-anytree_2.8.0.bb create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-breathe_4.31.0.bb create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-canopen_1.2.1.bb create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-cbor_1.0.0.bb create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-gitlint_0.15.1.bb create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-imgtool_1.7.2.bb create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-junithtml_30.0.4.bb create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-junitparser_2.1.1.bb create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-lpc-checksum_2.2.0.bb create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-packaging_21.0.bb create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-pyelftools_0.27.bb create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-pygithub_1.55.bb create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-pygments_2.10.0.bb create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-pylink create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-pyocd_0.32.0.bb create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-pyparsing_2.4.7.bb create mode 100644 meta-zephyr-core/recipes-devtools/python/python3-sphinx_4.2.0.bb rename {recipes-devtools => meta-zephyr-core/recipes-devtools}/qemu/files/nios2-add-support.patch (100%) rename {recipes-devtools => meta-zephyr-core/recipes-devtools}/qemu/qemu_%.bbappend (100%) create mode 100644 meta-zephyr-core/recipes-devtools/west/west_0.12.99.bb rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/files/0001-cmake-add-yocto-toolchain.patch (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/files/0001-cmake-added-missing-file-ext-to.patch (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/files/0001-x86-fix-efi-binary-generation-issue-in-cross-compila.patch (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/files/arduino-nano-33-ble-storage-partition.patch (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/files/dtc.patch (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-blinky.bb (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-coap-client.bb (60%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-coap-server.bb (60%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-echo-client.bb (60%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-hci-uart.bb (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-helloworld.bb (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-http-client.bb (61%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-image.inc (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-kernel-common.inc (76%) create mode 100644 meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.1.inc create mode 100644 meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.7.1.inc rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-kernel-src-dev.inc (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-kernel-src.bb (100%) create mode 100644 meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-kernel-test-all.bb (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-kernel-test.bb (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-kernel-test.inc (100%) create mode 100644 meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-lvgl.bb rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-mqtt-publisher.bb (59%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-openamp-rsc-table.bb (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-openthread-echo-client.bb (77%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-peripheral-esp.bb (58%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-peripheral-hr.bb (58%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-philosophers.bb (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-sample.inc (100%) rename {recipes-kernel => meta-zephyr-core/recipes-kernel}/zephyr-kernel/zephyr-websocket-client.bb (61%) delete mode 100644 recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.1.inc delete mode 100644 recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.7.1.inc delete mode 100644 recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc delete mode 100644 recipes-kernel/zephyr-kernel/zephyr-lvgl.bb -- 2.25.1
|
|
Re: Invalid checksums for SRC_URI ignored?
Michael Opdenacker
Peter, Ross
On 1/19/22 1:56 PM, Peter Bergin wrote: Hi, Thanks for your replies. This all makes perfect sense then. Thanks again Michael. -- Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
|
|
Re: Invalid checksums for SRC_URI ignored?
Peter Bergin
Hi,
On 2022-01-19 13:16, Michael Opdenacker wrote: Greetings,No they are not mandatory for all fetchers. They are only used for content downloaded from non-local archives. https://docs.yoctoproject.org/bitbake/bitbake-user-manual/bitbake-user-manual-fetching.html#the-download-fetch https://github.com/openembedded/bitbake/blob/32180d5057c818a69987aada482e82acf3c72ef2/lib/bb/fetch2/__init__.py#L1268 ^^ here you can see the selection of URI's that automatically needs a checksum. Best regards, /Peter
|
|
Re: Invalid checksums for SRC_URI ignored?
Ross Burton <ross@...>
On Wed, 19 Jan 2022 at 12:16, Michael Opdenacker
<michael.opdenacker@...> wrote: Checksums are for files that are fetched via http:// and friends, not local files. Ross
|
|
Invalid checksums for SRC_URI ignored?
Michael Opdenacker
Greetings,
I reused a simple "hello" recipe and added a non-matching checksum to it: ... SRC_URI = "file://helloworld.c" SRC_URI[md5sum] = "34f0efd76b4f18888888888833cdd129" ... The rest of the recipe comes from https://git.openembedded.org/openembedded-core/tree/meta-skeleton/recipes-skeleton/hello-single. Why doesn't Bitbake stop, reporting that the checksum doesn't match the source file? Anyway, why does the recipe build without a checksum? Shouldn't checksums be mandatory? I'm using the "master" version of Poky. Thanks in advance Michael. -- Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
|
|
Re: Honister broken WiFi communication
JH
Hi Tomasz,
Thanks for your response. Are you using custom Linux kernel / custom device tree? Maybe there isYes, but the Zeus build image uses the same device tree that could run WiFi connection without any issues, I am comparing the same source and configuration between Zeus and Honister, the only difference is the two different OE Yocto versions. Thank you. Kind regards, - jh
|
|
Re: Honister broken WiFi communication
tomzy
Hi JH, Are you using custom Linux kernel / custom device tree? Maybe there is
Kind regards,
|
|
[yocto-autobuilder2][PATCH] config.py: enable debian11 for hardknott
Anuj Mittal
Signed-off-by: Anuj Mittal <anuj.mittal@...>
--- config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.py b/config.py index 4c0b83b..0f99557 100644 --- a/config.py +++ b/config.py @@ -149,7 +149,7 @@ all_workers = workers + workers_bringup + workers_buildperf + workers_arm # Worker filtering for older releases workers_prev_releases = { - "hardknott" : ("centos7", "centos8", "debian8", "debian9", "debian10", "fedora31", "fedora32", "fedora33", "fedora34", "opensuse152", "ubuntu1604", "ubuntu1804", "ubuntu2004", "perf-"), + "hardknott" : ("centos7", "centos8", "debian8", "debian9", "debian10", "debian11", "fedora31", "fedora32", "fedora33", "fedora34", "opensuse152", "ubuntu1604", "ubuntu1804", "ubuntu2004", "perf-"), "gatesgarth" : ("centos7", "centos8", "debian8", "debian9", "debian10", "fedora30", "fedora31", "fedora32", "opensuse150", "opensuse151", "opensuse152", "ubuntu1604", "ubuntu1804", "ubuntu1904", "ubuntu2004", "perf-"), "dunfell" : ("centos7", "centos8", "debian8", "debian9", "debian10", "debian11", "fedora29", "fedora30", "fedora31", "fedora32", "fedora33", "fedora34", "opensuse150", "opensuse151", "opensuse152", "ubuntu1604", "ubuntu1804", "ubuntu1904", "ubuntu2004", "perf-"), "zeus" : ("centos7", "debian8", "debian9", "debian10", "fedora28", "fedora29", "fedora30", "opensuse150", "opensuse151", "ubuntu1604", "ubuntu1804", "ubuntu1904", "perf-"), -- 2.34.1
|
|
Re: Honister broken WiFi communication
JH
Hi Rudolf,
Thanks for your response and comments. If you run ifconfig -a does your WiFi interface show up? If not there is anNot that bad, the WiFi interfaces was fine, but it could not get dhcp response and IP address so an automatic private IP address 169.254 was assigned mlan0 Link encap:Ethernet HWaddr D4:CA:6E:A4:E8:B4 inet addr:169.254.193.101 Bcast:169.254.255.255 Mask:255.255.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2 errors:0 dropped:0 overruns:0 frame:0 TX packets:56 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:330 (330.0 B) TX bytes:16392 (16.0 KiB) I could see WiFi information well, it is not a major problem, but the subtle issues are connman and wpa_supplicant did not set up the WiFi driver correctly. Connected to 34:08:04:12:b1:a2 (on mlan0) SSID: JupiterIoT freq: 2437 RX: 660 bytes (4 packets) TX: 46622 bytes (129 packets) signal: -57 dBm rx bitrate: 1.0 MBit/s tx bitrate: 72.2 MBit/s MCS 7 short GI bss flags: short-slot-time dtim period: 1 beacon int: 100 Did you install the regulatory database?Did you mean to enable CONFIG_CFG80211_INTERNAL_REGDB? No, I did not install it in the Zeus version either so I don't see that could be an issue. What error messages are you seeing when attempting to connect to a WiFiNo error in connman, I don't think it is connman or wpa_supplicant issue, my suspicion is something missing in Honister built image to prevent connman and wpa_supplicant to set up the WiFi driver correctly. It is not the first time I have the WiFi setup trouble to get WiFi 169.254 address, when I upgraded from Thud to Zeus, I got the exactly the same problem that WiFi was assigned by a 169.254 address, no dhcp response, at time, I was totally convinced it was connman issue, I spend several months to debug connman and wpa_supplicant without any results, then after waiting several months to pull updated Zeus again, that problem was disappeared miraculous, that is why I suspect the same problem in oe-core and bitbake in Honister as well. Are there anyone in oe-core and bitbake tested connman, wpa_supplicant for the current Honister branch? I can help to test and to debug it if more advanced people in oe-core, bitbake, kernel, WiFi driver mwifiex can provide me more information. Thank you. Kind regards, - jupiter
|
|
Re: gdb with a broken sdk
On 1/16/22 3:26 PM, dacav wrote:
On Wed, Jan 12, 2022 at 02:15:38AM +0000, dacav wrote:perhaps gdb-cross-${TARGET_ARCH} would be more generic.How can I include aarch64-foobar-gdb in the devshell's PATH?Follow up on this thread: I've been kindly helped by kroon on #yocto. At this point I can just use `bitbake -c devshell $myrecipe` and the
|
|
Re: Advertise lore.kernel.org archives on website?
Michael Opdenacker
On 1/18/22 12:04 PM, Richard Purdie wrote:
On Tue, 2022-01-18 at 10:44 +0100, Michael Opdenacker wrote:Greetings,Sounds fine to me. Thanks for the feedback. Done on https://www.yoctoproject.org/community/mailing-lists/ I added lore.kernel.org links when applicable, and also added the openembedded-devel mailing list which was missing. I could shorten "Archives / Public Inbox" by just "Public Inbox" if you think it makes more sense. Cheers Michael. -- Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
|
|
Re: Building uImage with appended DTB
Nicolas Jeker
On 17 Jan 2022, at 06:41, rgovostes@... wrote:Just a short hint if you didn’t discover it yourself, there is a (very) old BSP available from PHYTEC [1]. The downloads don’t seem to work, but they’re available on a probably forgotten FTP server [2]. [1]: https://web.archive.org/web/20120501212117/http://www.phytec.com/products/linux/bsp-LPC3180.html [2]: ftp://ftp.phytec.com/temp/PCM-031_phyCORE-LPC3180
|
|
Yocto Project Status WW03`22
Stephen Jolley
Current Dev Position: YP 3.5 M2 Next Deadline: 17th Jan. 2022 YP 3.5 M2 build
Next Team Meetings:
Key Status/Updates:
Ways to contribute:
YP 3.5 Milestone Dates:
Upcoming dot releases:
Tracking Metrics:
The Yocto Project’s technical governance is through its Technical Steering Committee, more information is available at: https://wiki.yoctoproject.org/wiki/TSC
The Status reports are now stored on the wiki at: https://wiki.yoctoproject.org/wiki/Weekly_Status
[If anyone has suggestions for other information you’d like to see on this weekly status update, let us know!]
Thanks,
Stephen K. Jolley Yocto Project Program Manager ( Cell: (208) 244-4460 * Email: sjolley.yp.pm@...
|
|
Re: Honister broken WiFi communication
Hi JH, On Tue, Jan 18, 2022, 01:54 JH <jupiter.hce@...> wrote: Hi, Yes, I have, but with Network Manager instead of connman. WiFi works just fine.
There are a lot of pieces in the chain and it is not obvious from your description where it is broken. If you run ifconfig -a does your WiFi interface show up? If not there is an issue with the driver. Use dmesg and filter for the driver. Often a driver cannot load the firmware. What is your WiFi hardware? Did you install the regulatory database? What error messages are you seeing when attempting to connect to a WiFi network? Did you look at the connman logs?
|
|
Re: gdb with a broken sdk
dacav
On Wed, Jan 12, 2022 at 02:15:38AM +0000, dacav wrote:
How can I include aarch64-foobar-gdb in the devshell's PATH?Follow up on this thread: I've been kindly helped by kroon on #yocto. The trick consists in adding a build-time dependency to gdb-cross-aarch64 in my recipe: DEPEND = "gdb-cross-aarch64" At this point I can just use `bitbake -c devshell $myrecipe` and the debugger is available. Bonus: the devshell turns out to be very useful as a replacement for the SDK: the environment allows me to do the cross-compilation with just a `make`, while earlier I needed to run `bitbake $myrecipe` and wait several seconds. - dacav
|
|
Re: Advertise lore.kernel.org archives on website?
Richard Purdie
On Tue, 2022-01-18 at 10:44 +0100, Michael Opdenacker wrote:
Greetings,Sounds fine to me. Cheers, Richard
|
|
Honister broken WiFi communication
JH
Hi,
Has anyone successfully built a Linux image by Honister to run WiFi driver, connman and wpa_supplicant for WiFi interface? I could build an image by Zeus to run WiFi driver, wpa_supplicant, connman and dbus well, but after upgrading to Honister, the Linux image building was fie, but the WiFi is now broken, the WiFi failed to respond DHCP the WiFi could not connect to Internet, something is broken between wpa_supplicant and connman which setting kernel WiFi driver, WiFi interface and connection. I don't see any issues in kernel WiFi driver, connman and wpa_supplicant, something missing in the Linux image failing to set up the WiF network interface. Appreciate your comments. Thank you. Kind regards, - jupiter
|
|