Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a50b5e34 authored by Yifan Hong's avatar Yifan Hong
Browse files

BOARD_{GROUP}_SIZE must not be empty.

Otherwise, OTA generation will fail.
Test: OTA generation
Test: do not define it, build error

Change-Id: I63da80bd35d1982db0510428560727c759212771
parent 16a07e18
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -991,11 +991,11 @@ ifeq ($(PRODUCT_BUILD_SUPER_PARTITION),true)
# For each group in BOARD_SUPER_PARTITION_GROUPS, a BOARD_{GROUP}_SIZE and
# BOARD_{GROUP}_PARTITION_PARTITION_LIST may be defined.
#     - BOARD_{GROUP}_SIZE: The maximum sum of sizes of all partitions in the group.
#       If empty, no limit is enforced on the sum of sizes for this group.
#       Must not be empty.
#     - BOARD_{GROUP}_PARTITION_PARTITION_LIST: the list of partitions that belongs to this group.
#       If empty, no partitions belong to this group, and the sum of sizes is effectively 0.
$(foreach group,$(call to-upper,$(BOARD_SUPER_PARTITION_GROUPS)), \
    $(eval BOARD_$(group)_SIZE ?=) \
    $(if $(BOARD_$(group)_SIZE),,$(error BOARD_$(group)_SIZE must not be empty)) \
    $(eval .KATI_READONLY := BOARD_$(group)_SIZE) \
    $(eval BOARD_$(group)_PARTITION_LIST ?=) \
    $(eval .KATI_READONLY := BOARD_$(group)_PARTITION_LIST) \