summaryrefslogtreecommitdiffstats
path: root/platforms
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-12-06 17:40:28 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-12-06 17:46:44 +0100
commitc065184961ab1973c304ee31347205569b4f7536 (patch)
treeb0e06bedef8edc70ed3604b04f0914d5435cb820 /platforms
parenta0b8075391cfeb324f60e42482b1c34f95d1de71 (diff)
downloadptxdist-c065184961ab1973c304ee31347205569b4f7536.tar.gz
ptxdist-c065184961ab1973c304ee31347205569b4f7536.tar.xz
kernel: add workaround to keep kernelconfigs stable
With linux-4.19 and gcc-8.x oldconfig will prompt for extra options that are not available with e.g. gcc-7.x. This causes problems when a BSP is built with different host compilers. Add a workaround to optionally disable these extra options by forcing the compiler check to fail. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'platforms')
-rw-r--r--platforms/kernel.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/platforms/kernel.in b/platforms/kernel.in
index a0230a037..fc89c9aaf 100644
--- a/platforms/kernel.in
+++ b/platforms/kernel.in
@@ -265,6 +265,18 @@ config KERNEL_LIBELF
STACK_VALIDATION enabled. Stack validation is used for the orc
unwinder for kernel version >= v4.14 on x86_64.
+config KERNEL_GCC_PLUGINS
+ prompt "allow gcc plugins"
+ bool
+ help
+ The kernel kconfig options to enable gcc plugins depend on a
+ sufficiently new host compiler. As a result, the kernel config
+ may change with a different host compiler version.
+ If this option is disabled then the environment is manipulated
+ to ensure that the compiler check always fails. This keeps the
+ kernel config stable.
+ Enable this option when the kernel gcc plugins are used.
+
menu "patching & configuration "
config KERNEL_SERIES