diff --git a/devices/common/patches/imagebuilder.patch b/devices/common/patches/imagebuilder.patch index a46105b00ec0..83bc8b62eb6f 100644 --- a/devices/common/patches/imagebuilder.patch +++ b/devices/common/patches/imagebuilder.patch @@ -93,10 +93,10 @@ BUILD_PACKAGES:=$(USER_PACKAGES) $(BUILD_PACKAGES) +IMAGE_SIZE_VALUE := $($(USER_PROFILE)_IMAGE_SIZE) +ifdef IMAGE_SIZE_VALUE -+ ifeq ($(shell test $(IMAGE_SIZE_VALUE) -lt 35840 && echo true),true) ++ ifeq ($(shell test $(IMAGE_SIZE_VALUE) -le 35840 && echo true),true) + SMALL_FLASH := true + endif -+ ifeq ($(shell test $(IMAGE_SIZE_VALUE) -lt 20480 && echo true),true) ++ ifeq ($(shell test $(IMAGE_SIZE_VALUE) -le 20480 && echo true),true) + XSMALL_FLASH := true + endif +endif