# limitations under the License.
#
-exynos5_dirs := libion_exynos
+ifeq ($(TARGET_BOARD_PLATFORM),exynos5)
+
+exynos5_dirs := \
+ libion_exynos \
+ libexynosutils \
+ exynos_omx \
+ libcsc \
+ libgscaler \
+ librotator \
+ libstagefrighthw \
+ libswconverter \
+ libv4l2 \
+ libhwjpeg \
+ libhwc \
+ libcamera2 \
+ mobicore \
+ libkeymaster \
+ gralloc \
+ libsecurepath
+
+BOARD_USE_V4L2 := true
+BOARD_USE_V4L2_ION := true
+
+BOARD_USE_SAMSUNG_COLORFORMAT := true
+BOARD_FIX_NATIVE_COLOR_FORMAT := true
+BOARD_NONBLOCK_MODE_PROCESS := true
+BOARD_USE_STOREMETADATA := true
+BOARD_USE_METADATABUFFERTYPE := true
+BOARD_USES_MFC_FPS := true
+BOARD_USE_S3D_SUPPORT := true
+BOARD_USE_EXYNOS_OMX := true
+
+# TVOUT
+#BOARD_USES_HDMI := true
+#BOARD_HDMI_STD := STD_1080P
+#BOARD_HDMI_DDC_CH := DDC_CH_I2C_2
+#BOARD_USES_HDMI_FIMGAPI := true
+#BOARD_USES_FIMGAPI := true
+
+# HWC
+USE_HWC_CSC_THREAD := true
+
include $(call all-named-subdir-makefiles,$(exynos5_dirs))
+
+endif