zephyr-kernel-src: Restructure recipe

* Restructure recipe to use include files as opposed to a bbclass. The
  latter is unnatural when defining versions, sources etc.
* Make the zephyr-kernel-src follow the version as defined by
  PREFERRED_VERSION_zephyr-kernel.
* Make the setup of the zephyr-kernel-src.inc extensible for multiple
  versions.

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
This commit is contained in:
Andrei Gherzan
2021-02-16 15:32:59 +00:00
committed by Naveen Saini
parent 1ebcb8a34b
commit d81e72c050
4 changed files with 32 additions and 44 deletions

View File

@@ -0,0 +1,19 @@
include zephyr-kernel-src.inc
ZEPHYR_TEST_SRCDIR = "tests/legacy/kernel/"
IMAGE_NO_MANIFEST = "1"
INHIBIT_DEFAULT_DEPS = "1"
do_configure[noexec] = "1"
do_compile[noexec] = "1"
do_install () {
kerneldir=${D}/usr/src/zephyr
install -d $kerneldir
cp -r ${S}/* $kerneldir
}
PACKAGES = "${PN}"
FILES_${PN} = "/usr/src/zephyr"
SYSROOT_DIRS += "/usr/src/zephyr"