image: respect DEFAULT and BROKEN when Default profile is selected
authorRobert Marko <[email protected]>
Fri, 16 May 2025 11:18:46 +0000 (13:18 +0200)
committerRobert Marko <[email protected]>
Sun, 18 May 2025 07:41:54 +0000 (09:41 +0200)
commit6d4554429acbf992111d1dbe8456f68af40cf258
tree56ab054bef6179dc85f0c1950b3bbe25ba2a2b48
parentd2d9b1eaeb4268fa869d8e8766f92ee4f6e9eba9
image: respect DEFAULT and BROKEN when Default profile is selected

Currently, when you select the Default profile it does not honor DEFAULT:=n
nor BROKEN:=y in device profiles but rather just tries to build all of them.

This may work when building directly, but when using Image Builder it will
always fail since no kernel or anything else is present for devices that
have DEFAULT:=n or BROKEN:=Y set since those are skipped during build.

So, lets look for DEFAULT being set to "n" or BROKEN being set to "y" and
then remove clear _PROFILE_SET so they dont end up being marked for
installation.

Fixes: #18410
Link: https://github.com/openwrt/openwrt/pull/18814
Signed-off-by: Robert Marko <[email protected]>
(cherry picked from commit f060615a78e5c5e86829b2e40c3f77e5cf7033bf)
include/image.mk