In ptxdist we have the option PTXCONF_KERNEL_GCC_PLUGINS which is
described as:

| 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.

This stopped working with this kernel commit:

| commit 1e860048c53ee77ee9870dcce94847a28544b753
| Author: Masahiro Yamada <[email protected]>
| Date:   Thu Dec 3 21:57:00 2020 +0900
| 
|     gcc-plugins: simplify GCC plugin-dev capability test

This commit changed the test in a way that it always succeeds, no matter
if PTXCONF_KERNEL_GCC_PLUGINS is set or not:

-       depends on $(success,$(srctree)/scripts/gcc-plugin.sh $(CC))
+       depends on $(success,test -e $(shell,$(CC) 
-print-file-name=plugin)/include/plugin-version.h)

What indeed still fails is compilation of the plugins when
PTXCONF_KERNEL_GCC_PLUGINS is unset. So in a way this option still does
its job, you won't get a kernel with plugins enabled, but instead you
get a terrifying error message during compilation of the kernel.

I am unsure what we want to do about this, so this is merely a heads up
for now.

Sascha



-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
[email protected]
To unsubscribe, send a mail with subject "unsubscribe" to 
[email protected]

Reply via email to