audio: Add mixer_xml_utils.py script for easy use.

generates and combines base and overlay XML files.
Create base and overlay's for all target variants
of shima and holi.

Change-Id: I49a3a23a62deb2f774fd1bc4ad3b6560cd6df4a4
diff --git a/configs/holi/holi.mk b/configs/holi/holi.mk
index 069f8f8..33e95f5 100644
--- a/configs/holi/holi.mk
+++ b/configs/holi/holi.mk
@@ -6,7 +6,16 @@
 AUDIO_USE_STUB_HAL := true
 endif
 endif
+##mixer xml generation
+BASE_PATH := vendor/qcom/opensource/audio-hal/primary-hal/configs/common/base
+OVERLAY_PATH := vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/holi_overlay
+TARGET_PATH := vendor/qcom/opensource/audio-hal/primary-hal/configs/holi
+SCRIPT := vendor/qcom/opensource/audio-hal/primary-hal/configs/common/mixer_xml_utils.py
 
+$(shell python $(SCRIPT) --generate combine --base $(BASE_PATH)/mixer_paths_base.xml --overlay $(OVERLAY_PATH)/mixer_paths_overlay.xml $(OVERLAY_PATH)/mixer_paths_qrd_overlay.xml $(OVERLAY_PATH)/mixer_paths_usbc_overlay.xml --out_dir $(TARGET_PATH) --out mixer_paths.xml mixer_paths_qrd.xml mixer_paths_usbc.xml )
+
+$(shell python $(SCRIPT) --generate combine --base $(BASE_PATH)/sound_trigger_mixer_paths_base.xml --overlay $(OVERLAY_PATH)/sound_trigger_mixer_paths_overlay.xml $(OVERLAY_PATH)/sound_trigger_mixer_paths_qrd_overlay.xml $(OVERLAY_PATH)/sound_trigger_mixer_paths_usbc_overlay.xml --out_dir $(TARGET_PATH) --out sound_trigger_mixer_paths.xml sound_trigger_mixer_paths_qrd.xml sound_trigger_mixer_paths_usbc.xml )
+##
 ifneq ($(AUDIO_USE_STUB_HAL), true)
 BOARD_USES_ALSA_AUDIO := true
 TARGET_USES_AOSP_FOR_AUDIO := false