omni: soong: add TARGET_ENFORCE_AB_OTA_PARTITION_LIST variable

Change-Id: Iadb506093872fae535189a01058b66966e6a0fcd
diff --git a/build/soong/android/variable.go b/build/soong/android/variable.go
index 786ae6e..0822528 100644
--- a/build/soong/android/variable.go
+++ b/build/soong/android/variable.go
@@ -1,36 +1,40 @@
 package android
 type Product_variables struct {
-	Healthd_use_battery_info struct {
-		Cflags []string
-	}
-        Healthd_enable_op_fastchg struct {
-                Cflags []string
-        }
-	TargetNeedsHWCOnFirstRef struct {
-		Cflags []string
-	}
-	Uses_metadata_as_fde_key struct {
-		Cflags []string
-	}
-        Target_init_vendor_lib struct {
-                Static_libs []string
-                Cflags []string
-        }
-        Target_camera_needs_client_info struct {
-                Cflags []string
-        }
-        Target_motorized_camera struct {
-                Cflags []string
-        }
+    Healthd_use_battery_info struct {
+        Cflags []string
+    }
+    Healthd_enable_op_fastchg struct {
+        Cflags []string
+    }
+    TargetNeedsHWCOnFirstRef struct {
+        Cflags []string
+    }
+    Uses_metadata_as_fde_key struct {
+        Cflags []string
+    }
+    Target_init_vendor_lib struct {
+        Static_libs []string
+        Cflags []string
+    }
+    Target_camera_needs_client_info struct {
+        Cflags []string
+    }
+    Target_motorized_camera struct {
+        Cflags []string
+    }
+    Target_enforce_ab_ota_partition_list struct {
+        Cflags []string
+    }
 }
 
 type ProductVariables struct {
-	Healthd_use_battery_info                *bool `json:",omitempty"`
-	Healthd_enable_op_fastchg               *bool `json:",omitempty"`
-	TargetNeedsHWCOnFirstRef                *bool `json:",omitempty"`
-	Uses_metadata_as_fde_key                *bool `json:",omitempty"`
-	Target_use_sdclang                      *bool `json:",omitempty"`
-	Target_camera_needs_client_info         *bool `json:",omitempty"`
-	Target_motorized_camera                 *bool `json:",omitempty"`
-	Target_init_vendor_lib                  *string `json:",omitempty"`
+    Healthd_use_battery_info                *bool `json:",omitempty"`
+    Healthd_enable_op_fastchg               *bool `json:",omitempty"`
+    TargetNeedsHWCOnFirstRef                *bool `json:",omitempty"`
+    Uses_metadata_as_fde_key                *bool `json:",omitempty"`
+    Target_use_sdclang                      *bool `json:",omitempty"`
+    Target_camera_needs_client_info         *bool `json:",omitempty"`
+    Target_motorized_camera                 *bool `json:",omitempty"`
+    Target_init_vendor_lib                  *string `json:",omitempty"`
+    Target_enforce_ab_ota_partition_list    *bool `json:",omitempty"`
 }
diff --git a/build/soong/soong_config.mk b/build/soong/soong_config.mk
index cdc66f1..957167b 100644
--- a/build/soong/soong_config.mk
+++ b/build/soong/soong_config.mk
@@ -10,7 +10,8 @@
 $(call add_json_bool, Target_use_sdclang,                     $(filter true,$(TARGET_USE_SDCLANG)))
 $(call add_json_bool, Target_camera_needs_client_info,        $(filter true,$(TARGET_CAMERA_NEEDS_CLIENT_INFO)))
 $(call add_json_bool, Target_motorized_camera,                $(filter true,$(TARGET_MOTORIZED_CAMERA)))
-$(call add_json_str_omitempty, Target_init_vendor_lib, $(TARGET_INIT_VENDOR_LIB))
+$(call add_json_str_omitempty, Target_init_vendor_lib, 	      $(TARGET_INIT_VENDOR_LIB))
+$(call add_json_bool, Target_enforce_ab_ota_partition_list,   $(filter true,$(TARGET_ENFORCE_AB_OTA_PARTITION_LIST)))
 
 # This causes the build system to strip out the last comma in our nested struct, to keep the JSON valid.
 _json_contents := $(_json_contents)__SV_END