imagebuilder: exclude metadata for profiles that have no kernel
authorEric Fahlgren <[email protected]>
Thu, 8 May 2025 22:28:52 +0000 (15:28 -0700)
committerRobert Marko <[email protected]>
Sat, 24 May 2025 19:51:39 +0000 (21:51 +0200)
commit876932b850e4288a1a6a57caa33d21e4df680403
tree032d76efb36f6c0dcd720b4077635e005d2baa7d
parentfc75f8782368eed8810bbc62858303a00e0c0d4e
imagebuilder: exclude metadata for profiles that have no kernel

Device profiles that specify 'DEFAULT := n' are being included
in the imagebuilder metadata, specifically in .profiles.mk, even
though there is no kernel built for the device.  This results in
'make info' showing the device as valid, but then 'make image
PROFILE=xxx' failing with 'No rule to make target xxx-kernel.bin ...'

We exclude these profiles from the imagebuilder, avoiding these
errors.

Fixes: https://github.com/openwrt/openwrt/issues/18410
Signed-off-by: Eric Fahlgren <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/18748
Signed-off-by: Robert Marko <[email protected]>
(cherry picked from commit b88f3ebb3341281fa7e61dc4f039062e72c86b9e)
scripts/target-metadata.pl