Files
meta-external-toolchain/core/recipes-connectivity/ppp/ppp_2.4.7.bbappend
Christopher Larson 55c946aeb0 ppp: obey the actual libc kernel version
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>
2016-10-19 10:14:44 -07:00

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 ''}"