diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-06-26 11:15:34 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-06-26 13:00:21 +0200 |
commit | 0284f2d88e5c50ebc65684282ef0be8a6259f76b (patch) | |
tree | fd682a23d62a1d46f2ec7766ee3e7c3013f16827 | |
parent | 31ada785a205ecd30082f609da62b494d5952c5d (diff) | |
download | ptxdist-0284f2d88e5c50ebc65684282ef0be8a6259f76b.tar.gz ptxdist-0284f2d88e5c50ebc65684282ef0be8a6259f76b.tar.xz |
template-kernel: handle plugin detection for kernel version >= v5.7
The old hack to disable plugin support no longer works with v5.7.
Instead, add -DGENERATOR_FILE to the HOSTCC/HOSTCXX command.
The plugin headers produce an error if this is defined.
Tested with v4.19, v5.6 and v5.7.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | rules/templates/template-kernel-make | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rules/templates/template-kernel-make b/rules/templates/template-kernel-make index 4891b17af..980ee5fbd 100644 --- a/rules/templates/template-kernel-make +++ b/rules/templates/template-kernel-make @@ -44,7 +44,8 @@ KERNEL_@PACKAGE@_CONF_OPT := \ # no gcc plugins; avoid config changes depending on the host compiler KERNEL_@PACKAGE@_CONF_OPT += \ - HOSTCXX=false + HOSTCXX="$(HOSTXX) -DGENERATOR_FILE" \ + HOSTCC="$(HOSTCC) -DGENERATOR_FILE" KERNEL_@PACKAGE@_IMAGES := @image@ KERNEL_@PACKAGE@_IMAGES := $(addprefix $(KERNEL_@PACKAGE@_BUILD_DIR)/arch/$(GENERIC_KERNEL_ARCH)/boot/,$(KERNEL_@PACKAGE@_IMAGES)) |