Build VP8 libraries for baytrail

BZ: 96392

Modify the makefile to build VP8 libraries for baytrail.
Signed-off-by: wfeng6 <wei.feng@intel.com>

Change-Id: Ia9f8e68bcc8591d75eb8cd683de012687e81f0a2
Reviewed-on: http://android.intel.com:8080/98865
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
diff --git a/mix_vbp/Android.mk b/mix_vbp/Android.mk
index edf358d..93e9bd3 100644
--- a/mix_vbp/Android.mk
+++ b/mix_vbp/Android.mk
@@ -8,7 +8,9 @@
 include $(VENDORS_INTEL_MRST_MIXVBP_ROOT)/viddec_fw/fw/codecs/mp4/parser/Android.mk
 include $(VENDORS_INTEL_MRST_MIXVBP_ROOT)/viddec_fw/fw/codecs/vc1/parser/Android.mk
 
-# Add source codes for Merrifield
-ifeq ($(TARGET_BOARD_PLATFORM),merrifield)
+PLATFORM_SUPPORT_VP8 := \
+    merrifield \
+    baytrail
+ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_SUPPORT_VP8)),)
 include $(VENDORS_INTEL_MRST_MIXVBP_ROOT)/viddec_fw/fw/codecs/vp8/parser/Android.mk
 endif
diff --git a/mix_vbp/viddec_fw/fw/parser/Android.mk b/mix_vbp/viddec_fw/fw/parser/Android.mk
index 7fba3b2..4bc8b9b 100644
--- a/mix_vbp/viddec_fw/fw/parser/Android.mk
+++ b/mix_vbp/viddec_fw/fw/parser/Android.mk
@@ -45,7 +45,11 @@
 LOCAL_SHARED_LIBRARIES += liblog
 endif
 
-ifeq ($(TARGET_BOARD_PLATFORM),merrifield)
+PLATFORM_SUPPORT_VP8 := \
+    merrifield \
+    baytrail
+
+ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_SUPPORT_VP8)),)
 LOCAL_SRC_FILES += vbp_vp8_parser.c
 LOCAL_C_INCLUDES += $(VENDORS_INTEL_MRST_MIXVBP_ROOT)/viddec_fw/fw/codecs/vp8/include
 LOCAL_CFLAGS += -DUSE_HW_VP8
diff --git a/videodecoder/Android.mk b/videodecoder/Android.mk
index 26a869e..dc86bec 100644
--- a/videodecoder/Android.mk
+++ b/videodecoder/Android.mk
@@ -44,8 +44,11 @@
 LOCAL_MODULE_TAGS := optional
 LOCAL_MODULE := libva_videodecoder
 
-# Add source codes for Merrifield
-ifeq ($(TARGET_BOARD_PLATFORM),merrifield)
+PLATFORM_SUPPORT_VP8 := \
+    merrifield \
+    baytrail
+
+ifneq ($(filter $(TARGET_BOARD_PLATFORM),$(PLATFORM_SUPPORT_VP8)),)
 LOCAL_SRC_FILES += VideoDecoderVP8.cpp
 LOCAL_CFLAGS += -DUSE_HW_VP8
 endif