From: Ethan Chen Date: Thu, 24 Oct 2013 23:11:51 +0000 (-0700) Subject: exynos: Add kernel headers to include path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e306d8386ec3353f40430cc30660e0b627502380;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung_slsi_exynos.git exynos: Add kernel headers to include path --- diff --git a/include/exynos_v4l2.h b/include/exynos_v4l2.h index 0b550ef..ed26397 100644 --- a/include/exynos_v4l2.h +++ b/include/exynos_v4l2.h @@ -41,8 +41,8 @@ extern "C" { /* V4L2 */ #include -#include "videodev2.h" /* vendor specific videodev2.h */ -#include "videodev2_exynos_media.h" +#include /* vendor specific videodev2.h */ +#include /*! \ingroup exynos_v4l2 */ int exynos_v4l2_open(const char *filename, int oflag, ...); @@ -96,7 +96,7 @@ int exynos_v4l2_g_ext_ctrl(int fd, struct v4l2_ext_controls *ctrl); int exynos_v4l2_s_ext_ctrl(int fd, struct v4l2_ext_controls *ctrl); /* V4L2_SUBDEV */ -#include +#include /*! \ingroup exynos_v4l2 */ int exynos_subdev_open(const char *filename, int oflag, ...); @@ -126,7 +126,7 @@ int exynos_subdev_s_frame_interval(int fd, struct v4l2_subdev_frame_interval *fr int exynos_subdev_enum_mbus_code(int fd, struct v4l2_subdev_mbus_code_enum *mbus_code_enum); /* MEDIA CONTORLLER */ -#include +#include /*! media_link * \ingroup exynos_v4l2 diff --git a/include/s5p_fimc_v4l2.h b/include/s5p_fimc_v4l2.h index d0c5d5f..52b1b6d 100644 --- a/include/s5p_fimc_v4l2.h +++ b/include/s5p_fimc_v4l2.h @@ -20,8 +20,8 @@ #ifndef _S5P_FIMC_H_ #define _S5P_FIMC_H_ -#include "videodev2.h" -#include "videodev2_exynos_media.h" +#include +#include /* * G E N E R A L S @@ -60,14 +60,9 @@ * V 4 L 2 F I M C E X T E N S I O N S * */ -#define V4L2_PIX_FMT_YVYU v4l2_fourcc('Y', 'V', 'Y', 'U') - /* FOURCC for FIMC specific */ #define V4L2_PIX_FMT_NV12X v4l2_fourcc('N', '1', '2', 'X') #define V4L2_PIX_FMT_NV21X v4l2_fourcc('N', '2', '1', 'X') -#define V4L2_PIX_FMT_VYUY v4l2_fourcc('V', 'Y', 'U', 'Y') -#define V4L2_PIX_FMT_NV16 v4l2_fourcc('N', 'V', '1', '6') -#define V4L2_PIX_FMT_NV61 v4l2_fourcc('N', 'V', '6', '1') #define V4L2_PIX_FMT_NV16X v4l2_fourcc('N', '1', '6', 'X') #define V4L2_PIX_FMT_NV61X v4l2_fourcc('N', '6', '1', 'X') diff --git a/libcsc/Android.mk b/libcsc/Android.mk index 82d08df..3920b4c 100644 --- a/libcsc/Android.mk +++ b/libcsc/Android.mk @@ -17,12 +17,16 @@ LOCAL_C_INCLUDES += \ endif LOCAL_C_INCLUDES += \ + $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \ system/core/include \ hardware/samsung_slsi/openmax/include/khronos \ hardware/samsung_slsi/openmax/include/$(OMX_NAME) \ hardware/samsung_slsi/$(PLATFORM_DIR)/include \ $(LOCAL_PATH)/../include +LOCAL_ADDITIONAL_DEPENDENCIES := \ + $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr + LOCAL_CFLAGS := \ -DUSE_SAMSUNG_COLORFORMAT \ -DEXYNOS_OMX @@ -41,11 +45,15 @@ LOCAL_SRC_FILES := \ csc.c LOCAL_C_INCLUDES := \ + $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \ hardware/samsung_slsi/$(PLATFORM_DIR)/include \ hardware/samsung_slsi/openmax/include/khronos \ hardware/samsung_slsi/openmax/include/$(OMX_NAME) \ $(LOCAL_PATH)/../libexynosutils +LOCAL_ADDITIONAL_DEPENDENCIES := \ + $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr + LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) LOCAL_CFLAGS := diff --git a/libexynosutils/Android.mk b/libexynosutils/Android.mk index 627e823..c95e74b 100644 --- a/libexynosutils/Android.mk +++ b/libexynosutils/Android.mk @@ -33,7 +33,9 @@ LOCAL_MODULE := libexynosutils ifeq ($(TARGET_BOARD_PLATFORM), exynos5) LOCAL_SRC_FILES += exynos5_format_v4l2.c LOCAL_C_INCLUDES += \ + $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \ $(LOCAL_PATH)/../include +LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr endif include $(BUILD_SHARED_LIBRARY) diff --git a/libexynosutils/exynos5_format_v4l2.c b/libexynosutils/exynos5_format_v4l2.c index 24f6097..8c30826 100644 --- a/libexynosutils/exynos5_format_v4l2.c +++ b/libexynosutils/exynos5_format_v4l2.c @@ -41,8 +41,6 @@ #include "exynos_format.h" #include "s5p_fimc_v4l2.h" #include -#include "videodev2.h" -#include "videodev2_exynos_media.h" int HAL_PIXEL_FORMAT_2_V4L2_PIX( int hal_pixel_format) diff --git a/libfimg4x/Android.mk b/libfimg4x/Android.mk index 74fc02b..5ec3060 100644 --- a/libfimg4x/Android.mk +++ b/libfimg4x/Android.mk @@ -25,8 +25,12 @@ LOCAL_SRC_FILES:= \ FimgExynos5.cpp LOCAL_C_INCLUDES += \ + $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \ $(LOCAL_PATH)/../include +LOCAL_ADDITIONAL_DEPENDENCIES := \ + $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr + LOCAL_SHARED_LIBRARIES:= liblog libutils libbinder LOCAL_MODULE:= libfimg diff --git a/libv4l2/Android.mk b/libv4l2/Android.mk index f7d06cf..e2c44de 100644 --- a/libv4l2/Android.mk +++ b/libv4l2/Android.mk @@ -22,9 +22,13 @@ LOCAL_SRC_FILES := \ exynos_mc.c LOCAL_C_INCLUDES := \ + $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \ $(LOCAL_PATH)/../include \ $(TOP)/hardware/samsung_slsi/exynos/libexynosutils +LOCAL_ADDITIONAL_DEPENDENCIES := \ + $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr + LOCAL_SHARED_LIBRARIES := \ liblog \ libutils \ diff --git a/libv4l2/exynos_mc.c b/libv4l2/exynos_mc.c index 02e8303..759eb51 100644 --- a/libv4l2/exynos_mc.c +++ b/libv4l2/exynos_mc.c @@ -37,7 +37,7 @@ #include #include #include -#include +#include #include #include