]> git.ipfire.org Git - thirdparty/openwrt.git/commit
image: respect DEFAULT and BROKEN when Default profile is selected 18814/head
authorRobert Marko <robimarko@gmail.com>
Fri, 16 May 2025 11:18:46 +0000 (13:18 +0200)
committerRobert Marko <robimarko@gmail.com>
Fri, 16 May 2025 17:40:36 +0000 (19:40 +0200)
commitf060615a78e5c5e86829b2e40c3f77e5cf7033bf
tree2d0ded5528b54bc1b98cf09ca3b615a6613d7993
parentfb90296c322ac7231091782cf92db8868ccfeb7a
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 <robimarko@gmail.com>
include/image.mk