aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJonas Gorski <jonas.gorski@gmail.com>2019-08-13 12:33:47 +0200
committerJo-Philipp Wich <jo@mein.io>2019-09-04 13:39:37 +0200
commitf783ad5b5b105407fd47123b02217a8a09525b44 (patch)
tree68ebc5c7568c88ee5feb45a14ae58a39a498ab89 /include
parent378b51908c06bca0af0d19e976fd0db51699ae7c (diff)
downloadupstream-f783ad5b5b105407fd47123b02217a8a09525b44.tar.gz
upstream-f783ad5b5b105407fd47123b02217a8a09525b44.tar.bz2
upstream-f783ad5b5b105407fd47123b02217a8a09525b44.zip
build: allow overriding default selection state for devices
Allow overriding the default selection state for Devices, similar to setting a default for packages. E.g. by setting DEFAULT to n, they won't be selected by default anymore when enabling all device in the multi device profile. This allows preventing images being built by the default config for known broken devices, devices without enough RAM/flash, or devices not working with a certain kernel versions. This does not prevent the devices from being manually selected or images being built by the ImageBuilder. These devices often still have worth with a reduced package-set, or as a device for regression testing, when no better device is available. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com> (cherry picked from commit 7546be60074e452751ba2a48eddbc13910bec708)
Diffstat (limited to 'include')
-rw-r--r--include/image.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/image.mk b/include/image.mk
index 530a2b1335..1538d83df3 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -385,6 +385,8 @@ define Device/Init
FILESYSTEMS := $(TARGET_FILESYSTEMS)
UBOOT_PATH := $(STAGING_DIR_IMAGE)/uboot-$(1)
+
+ DEFAULT :=
endef
DEFAULT_DEVICE_VARS := \
@@ -561,6 +563,7 @@ Target-Profile-Name: $(DEVICE_TITLE)
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 $(DEFAULT),Target-Profile-Default: $(DEFAULT))
Target-Profile-Description:
$(DEVICE_DESCRIPTION)
@@