linux: Deselect all unconfigured compression options
authorCam Hutchison <camh@xdna.net>
Thu, 19 Oct 2017 10:59:17 +0000 (21:59 +1100)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 21 Oct 2017 18:20:45 +0000 (20:20 +0200)
commit712f81fb3c3d8cdfb7e7ac89738ca8690493604f
tree4662e606a72f6c873595590ae95739595a5b5f6f
parent193dfffa834a4cd76bc7b41089bd93d4c37dfc65
linux: Deselect all unconfigured compression options

The LINUX_KCONFIG_FIXUP_CMDS are meant to deselect any compression
option that are not selected in the buildroot configuration. But it only
deselects the last one in the list instead of all of them because it
overwrites the LINUX_COMPRESSION_OPT_ variable instead of appending to
it. Only the last option set to that variable gets deselected.

This produces the warning:

.config:2216:warning: override: KERNEL_GZIP changes choice state

is emitted when buildroot runs olddefconfig when buildroot configures a
kernel with a custom config that has a different kernel compression
option set to what is configured in buildroot.

Accumulate all the deselected compression options instead of overwriting
them to ensure all non-selected options get deselected..

Signed-off-by: Cam Hutchison <camh@xdna.net>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
linux/linux.mk