Older SoCs like 7880 only have M2M1SHOT v1.
Change-Id: I5ba2f70862f62e2d21edcac6cfee7b4034bf47da
ifeq ($(BOARD_USES_FIMGAPI_V5X), true)
LOCAL_CFLAGS += -DFIMGAPI_V5X
-ifeq ($(filter 3.18, $(TARGET_LINUX_KERNEL_VERSION)), 3.18)
+ifeq ($(BOARD_USES_FIMG2D_M2M1SHOT2), true)
LOCAL_CFLAGS += -DFIMG2D_USE_M2M1SHOT2
endif
endif
#define LOG_TAG "FimgExynos5"
#include <utils/Log.h>
+#ifdef FIMG2D_USE_M2M1SHOT2
#include <linux/m2m1shot2.h>
+#endif
+
#include "FimgExynos5.h"
extern pthread_mutex_t s_g2d_lock;