diff options
| author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2023-06-07 17:36:06 +0800 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2023-06-14 04:14:25 -1000 |
| commit | f27e8dd716e9241cea6ecb6c89ba56575eea12e8 (patch) | |
| tree | b4af62044d5243de7db00139a60446dca465d761 | |
| parent | 8740329b235a352f6f4e0d136790200d10b72fba (diff) | |
| download | poky-f27e8dd716e9241cea6ecb6c89ba56575eea12e8.tar.gz | |
linux-yocto: move build / debug dependencies to .inc
When the architecture and debug specific build and runtime dependencies
were introduced, they were only applicable to "newer" kernel versions
and were enabled in the version specific recipes.
These are now common dependencies, so we can avoid the duplication and
move them to a common location.
We also change the adhoc nature of the existing elfutils definition,
as it is now detected by the kernel build and we no longer need the
work around to the native sysroot.
Finally, we change the undocumented KERNEL_DEBUG_OPTIONS to KERNEL_DEBUG
and use it to conditionally enable features that need extended support
(and support sometimes out of oe-core).
(From OE-Core rev: 67a972a1d8c2ff271cbbca68a2805ea31f079fa1)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 7ddeb149e7a78bedeb945898fec5e8f13b7c5711)
Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
| -rw-r--r-- | meta/recipes-kernel/linux/linux-yocto.inc | 10 | ||||
| -rw-r--r-- | meta/recipes-kernel/linux/linux-yocto_6.1.bb | 4 |
2 files changed, 8 insertions, 6 deletions
diff --git a/meta/recipes-kernel/linux/linux-yocto.inc b/meta/recipes-kernel/linux/linux-yocto.inc index 934591ff1c..04a8105e17 100644 --- a/meta/recipes-kernel/linux/linux-yocto.inc +++ b/meta/recipes-kernel/linux/linux-yocto.inc | |||
| @@ -59,8 +59,14 @@ do_install:append(){ | |||
| 59 | # enable kernel-sample for oeqa/runtime/cases's ksample.py test | 59 | # enable kernel-sample for oeqa/runtime/cases's ksample.py test |
| 60 | KERNEL_FEATURES:append:qemuall=" features/kernel-sample/kernel-sample.scc" | 60 | KERNEL_FEATURES:append:qemuall=" features/kernel-sample/kernel-sample.scc" |
| 61 | 61 | ||
| 62 | KERNEL_DEBUG_OPTIONS ?= "stack" | 62 | KERNEL_DEBUG ?= "" |
| 63 | KERNEL_EXTRA_ARGS:append:x86-64 = " ${@bb.utils.contains('KERNEL_DEBUG_OPTIONS', 'stack', 'HOST_LIBELF_LIBS="-L${RECIPE_SYSROOT_NATIVE}/usr/lib/pkgconfig/../../../usr/lib/ -lelf"', '', d)}" | 63 | # These used to be version specific, but are now common dependencies. New |
| 64 | # tools / dependencies will continue to be added in version specific recipes. | ||
| 65 | DEPENDS += '${@bb.utils.contains_any("ARCH", [ "x86", "arm64" ], "elfutils-native", "", d)}' | ||
| 66 | DEPENDS += "openssl-native util-linux-native" | ||
| 67 | DEPENDS += "gmp-native libmpc-native" | ||
| 68 | DEPENDS += '${@bb.utils.contains("KERNEL_DEBUG", "True", "pahole-native", "", d)}' | ||
| 69 | EXTRA_OEMAKE += '${@bb.utils.contains("KERNEL_DEBUG", "True", "", "PAHOLE=false", d)}' | ||
| 64 | 70 | ||
| 65 | do_devshell:prepend() { | 71 | do_devshell:prepend() { |
| 66 | # setup native pkg-config variables (kconfig scripts call pkg-config directly, cannot generically be overriden to pkg-config-native) | 72 | # setup native pkg-config variables (kconfig scripts call pkg-config directly, cannot generically be overriden to pkg-config-native) |
diff --git a/meta/recipes-kernel/linux/linux-yocto_6.1.bb b/meta/recipes-kernel/linux/linux-yocto_6.1.bb index 36f7ed8791..6640000d83 100644 --- a/meta/recipes-kernel/linux/linux-yocto_6.1.bb +++ b/meta/recipes-kernel/linux/linux-yocto_6.1.bb | |||
| @@ -45,10 +45,6 @@ SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRA | |||
| 45 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | 45 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" |
| 46 | LINUX_VERSION ?= "6.1.25" | 46 | LINUX_VERSION ?= "6.1.25" |
| 47 | 47 | ||
| 48 | DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}" | ||
| 49 | DEPENDS += "openssl-native util-linux-native" | ||
| 50 | DEPENDS += "gmp-native libmpc-native" | ||
| 51 | |||
| 52 | PV = "${LINUX_VERSION}+git${SRCPV}" | 48 | PV = "${LINUX_VERSION}+git${SRCPV}" |
| 53 | 49 | ||
| 54 | KMETA = "kernel-meta" | 50 | KMETA = "kernel-meta" |
