diff --git a/devices/common/patches/imagebuilder.patch b/devices/common/patches/imagebuilder.patch index f29ea4077c25..7785d5a1f710 100644 --- a/devices/common/patches/imagebuilder.patch +++ b/devices/common/patches/imagebuilder.patch @@ -91,7 +91,7 @@ # "-pkgname" in the package list means remove "pkgname" from the package list BUILD_PACKAGES:=$(filter-out $(filter -%,$(BUILD_PACKAGES)) $(patsubst -%,%,$(filter -%,$(BUILD_PACKAGES))),$(BUILD_PACKAGES)) BUILD_PACKAGES:=$(USER_PACKAGES) $(BUILD_PACKAGES) -+IMAGE_SIZE_VALUE := $(USER_PROFILE)_IMAGE_SIZE ++IMAGE_SIZE_VALUE := $($(USER_PROFILE)_IMAGE_SIZE) +ifdef IMAGE_SIZE_VALUE + ifeq ($(shell test $(IMAGE_SIZE_VALUE) -lt 35840 && echo true),true) + SMALL_FLASH := true