diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-07-28 20:47:34 +0200 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-07-30 21:49:07 +0200 |
commit | 1d5260cf72763d92ba8c4aff61b3605e37af614a (patch) | |
tree | 9d09bbfb97522804d905de633cfb63bbe8f6c44b /include/image.mk | |
parent | 504000d520ac8699137bd6b8dbd55f723f34bfbe (diff) | |
download | upstream-1d5260cf72763d92ba8c4aff61b3605e37af614a.tar.gz upstream-1d5260cf72763d92ba8c4aff61b3605e37af614a.tar.bz2 upstream-1d5260cf72763d92ba8c4aff61b3605e37af614a.zip |
build: add option to mark devices as BROKEN
By specifying "BROKEN := 1" or "BROKEN := y" for a device, it will be
hidden (and deselected) by default. By that, it provides a stronger
option to "disable" a device beyond just using DEFAULT := n.
To make these devices visible, just enable the BROKEN option in
developer settings as already implemented for targets and packages.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'include/image.mk')
-rw-r--r-- | include/image.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/image.mk b/include/image.mk index 300f7a6619..be934e94d3 100644 --- a/include/image.mk +++ b/include/image.mk @@ -426,6 +426,7 @@ define Device/Init UBOOT_PATH := $(STAGING_DIR_IMAGE)/uboot-$(1) + BROKEN := DEFAULT := endef @@ -638,6 +639,7 @@ Target-Profile-Name: $(DEVICE_DISPLAY) Target-Profile-Packages: $(DEVICE_PACKAGES) Target-Profile-hasImageMetadata: $(if $(foreach image,$(IMAGES),$(findstring append-metadata,$(IMAGE/$(image)))),1,0) Target-Profile-SupportedDevices: $(SUPPORTED_DEVICES) +$(if $(BROKEN),Target-Profile-Broken: $(BROKEN)) $(if $(DEFAULT),Target-Profile-Default: $(DEFAULT)) Target-Profile-Description: $(DEVICE_DESCRIPTION) |