diff --git a/include/image.mk b/include/image.mk index dd0e3fc6b53..98a440be3ce 100644 --- a/include/image.mk +++ b/include/image.mk @@ -567,12 +567,14 @@ endef define Device/Check/Common _PROFILE_SET = $$(strip $$(foreach profile,$$(PROFILES) DEVICE_$(1),$$(call DEVICE_CHECK_PROFILE,$$(profile)))) - # Check if device is disabled and if so do not mark to be installed - ifeq ($$(DEFAULT),n) - _PROFILE_SET := - endif - ifeq ($$(BROKEN),y) - _PROFILE_SET := + # Check if device is disabled and if so do not mark to be installed when ImageBuilder is used + ifeq ($(IB),1) + ifeq ($$(DEFAULT),n) + _PROFILE_SET := + endif + ifeq ($$(BROKEN),y) + _PROFILE_SET := + endif endif DEVICE_PACKAGES += $$(call extra_packages,$$(DEVICE_PACKAGES)) ifdef TARGET_PER_DEVICE_ROOTFS