soong: Add Qcom_bsp_legacy config

Change-Id: Ib9284864e77a18e07f048a4afd26f2da1b6c1485
diff --git a/build/soong/android/variable.go b/build/soong/android/variable.go
index c6dc7d7..c58afa4 100644
--- a/build/soong/android/variable.go
+++ b/build/soong/android/variable.go
@@ -19,6 +19,10 @@
 	Cant_reallocate_omx_buffers struct {
 		Cflags []string
 	}
+
+	Qcom_bsp_legacy struct {
+		Cflags []string
+	}
 }
 
 type ProductVariables struct {
@@ -30,4 +34,5 @@
 	QTIDisplayPath          *string `json:",omitempty"`
 	QTIMediaPath            *string `json:",omitempty"`
 	Cant_reallocate_omx_buffers *bool `json:",omitempty"`
+	Qcom_bsp_legacy         *bool `json:",omitempty"`
 }
diff --git a/build/soong/soong_config.mk b/build/soong/soong_config.mk
index 3365175..18d119d 100644
--- a/build/soong/soong_config.mk
+++ b/build/soong/soong_config.mk
@@ -13,5 +13,6 @@
 	echo '    "QTIDisplayPath":  "$(call project-path-for,qcom-display)",'; \
 	echo '    "QTIMediaPath":  "$(call project-path-for,qcom-media)",';  \
 	echo '    "Cant_reallocate_omx_buffers":  $(if $(filter omap4,$(TARGET_BOARD_PLATFORM)),true,false),';  \
+	echo '    "Qcom_bsp_legacy":  $(if $(filter msm7x27a msm7x30 msm8660 msm8960,$(TARGET_BOARD_PLATFORM)),true,false),';  \
         echo '},'; \
 	echo '') > $(SOONG_VARIABLES_TMP)