sanitize = $(call tolower,$(subst _,-,$(1)))
+SUBTARGET ?= default
DIST_SANITIZED:=$(call sanitize,$(VERSION_DIST))
EXTRA_NAME_SANITIZED=$(call sanitize,$(EXTRA_IMAGE_NAME))
define Device/Init
PROFILES := $(PROFILE)
+ SUBTARGETS := $(SUBTARGET)
DEVICE_NAME := $(1)
DEVICE_TITLE :=
DEVICE_PACKAGES :=
endef
define Device/Check
- _TARGET = $$(if $$(filter $(PROFILE),$$(PROFILES)),install,install-disabled)
+ _TARGET = $$(if $$(and $$(filter $(SUBTARGET),$$(SUBTARGETS)),$$(filter $(PROFILE),$$(PROFILES))),install,install-disabled)
_COMPILE_TARGET = $$(if $(if $(IB),,$(CONFIG_IB)$$(filter $(PROFILE),$$(PROFILES))),compile,compile-disabled)
endef
endef
+DEVICE_PROFILE_CHECK=$(and $(DEVICE_TITLE),$(filter $(SUBTARGET),$(SUBTARGETS)))
+
define Device/Dump
-$$(eval $$(if $$(DEVICE_TITLE),$$(info $$(call Device/DumpInfo,$(1)))))
+$$(eval $$(if $$(DEVICE_PROFILE_CHECK),$$(info $$(call Device/DumpInfo,$(1)))))
endef
define Device