kernel: fix KernelPackage when all KCONFIG are versioned
authorJohn Thomson <[email protected]>
Sat, 1 Jul 2023 00:23:35 +0000 (10:23 +1000)
committerHauke Mehrtens <[email protected]>
Tue, 4 Jul 2023 17:29:41 +0000 (19:29 +0200)
commitb3448b3fdb59d25dce05991dc8f322c1020b090b
treee5a9df0f8e53908bcc236107bac1c3ee8464703d
parentce8c639a6c539534be14a540e7c3e9933d3a34ef
kernel: fix KernelPackage when all KCONFIG are versioned

If a kernel package was defined where all KCONFIG symbols were dynamic,
and versioned, no FILES would be installed, as the foreach evaluation was
providing the value of the variable defined by the KCONFIG symbol name
including the version test

Fix this by calling the version_filter function on the list of KCONFIG
variable names run through by foreach

Example, kernel 6.1:
KCONFIG:[email protected] [email protected]
filter-out any KCONFIG settings forced by package:
[email protected] [email protected]
there are dynamic settings, so for each of them,
get the value of the make variable defined by symbol name:
    [email protected] is not set
    [email protected] is not set
  versus
    CONFIG_OLD is not set
    CONFIG_NEW=m
test if any of these are m, or y
if yes, install files, otherwise, nothing to install

Signed-off-by: John Thomson <[email protected]>
include/kernel.mk