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]>
Sat, 24 May 2025 19:51:55 +0000 (21:51 +0200)
commit6b0bbe3223f4f3a52b0fc139d606684bd2e1e23a
treeaf415ab16c59abdce3e73fe5b436ff856dd7969f
parent876932b850e4288a1a6a57caa33d21e4df680403
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