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

Commit 35298ee9 authored by LaMont Jones's avatar LaMont Jones
Browse files

Support release configs: disallow_lunch_use=true

If release config sets `_disallow_lunch_use`, produce an error.

Bug: b/382530638
Test: manual
Change-Id: I843723de15dcd21955b719278d7043072421a35b
parent afdc92c6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -146,6 +146,9 @@ ifneq (,$(_use_protobuf))
        # This will also set ALL_RELEASE_CONFIGS_FOR_PRODUCT and _used_files for us.
        $(eval include $(_flags_file))
        $(KATI_extra_file_deps $(OUT_DIR)/release-config $(protobuf_map_files) $(_flags_file))
        ifneq (,$(_disallow_lunch_use))
            $(error Release config ${TARGET_RELEASE} is disallowed for build.  Please use one of: $(ALL_RELEASE_CONFIGS_FOR_PRODUCT))
        endif
    else
        # This is the first pass of product config.
        $(eval include $(_flags_varmk))