mirror of
https://github.com/thead-yocto-mirror/meta-external-toolchain
synced 2026-09-16 12:13:08 +02:00
Since the external toolchain is available at parse time, we can actually grab the kernel version from the external toolchain sysroot and use that to determine whether to apply the patch. Do so. Signed-off-by: Christopher Larson <chris_larson@mentor.com>
9 lines
527 B
Plaintext
9 lines
527 B
Plaintext
inherit external-common
|
|
|
|
# This patch is needed, at this time, to fix builds with linux-libc-headers
|
|
# from the 4.8 Linux kernel or newer, which is not the case for most external
|
|
# toolchains. As the external toolchain is available at parse time, we can
|
|
# check the version and only apply it when appropriate.
|
|
KERNEL_48_PATCH = "file://ppp-fix-building-with-linux-4.8.patch"
|
|
SRC_URI_remove_class-target := "${@'${KERNEL_48_PATCH}' if [int(i) for i in ('${EXTERNAL_LIBC_KERNEL_VERSION}' or '0.0').split('.')] < [4, 8] else ''}"
|