From: Seung-Woo Kim Date: Fri, 4 Dec 2020 04:41:12 +0000 (+0900) Subject: amlogic: isp_module: find include directory only under source tree X-Git-Tag: submit/tizen/20201211.030542~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b48523aed0e1b9a12b9b580f688de69bf39cc904;p=platform%2Fkernel%2Flinux-amlogic.git amlogic: isp_module: find include directory only under source tree For building, it takes too much time to find include directory because find is called from top directory. Fix to find only under source tree. Change-Id: I0b77d6b6b68dba39d8b9c7f41dbc6570ff9c2a0c Signed-off-by: Seung-Woo Kim --- diff --git a/drivers/amlogic/isp_module/subdev/iq/Makefile b/drivers/amlogic/isp_module/subdev/iq/Makefile index 1062e1c203d1..fc0150a62f94 100644 --- a/drivers/amlogic/isp_module/subdev/iq/Makefile +++ b/drivers/amlogic/isp_module/subdev/iq/Makefile @@ -58,7 +58,7 @@ FW_SRC_OBJ := app/soc_iq.o \ iv009_isp_iq-objs += $(FW_SRC_OBJ) -INCLUDE_DIRS := $(addprefix -I,$(shell find ../ -type d 2> /dev/null)) +INCLUDE_DIRS := $(addprefix -I,$(shell cd ${src}; find ../ -type d 2> /dev/null)) ccflags-y:=-I$(DIR)/app -I$(DIR)/inc -I$(DIR)/app/control -I$(DIR)/inc/api -I$(DIR)/inc/isp -I$(DIR)/inc/sys -I$(DIR)/src/platform -I$(DIR)/src/fw -I$(DIR)/src/fw_lib -I$(DIR)/src/calibration -I$(DIR)/src/driver/sensor -I$(DIR)/src/driver/lens -I$(_KDIR)/include/linux/ diff --git a/drivers/amlogic/isp_module/subdev/lens/Makefile b/drivers/amlogic/isp_module/subdev/lens/Makefile index 317d3e92f43c..fee33577b3c1 100644 --- a/drivers/amlogic/isp_module/subdev/lens/Makefile +++ b/drivers/amlogic/isp_module/subdev/lens/Makefile @@ -46,7 +46,7 @@ FW_SRC_OBJ += app/soc_lens.o \ iv009_isp_lens-objs += $(FW_SRC_OBJ) -INCLUDE_DIRS := $(addprefix -I,$(shell find ../ -type d 2> /dev/null)) +INCLUDE_DIRS := $(addprefix -I,$(shell cd ${src}; find ../ -type d 2> /dev/null)) ccflags-y:=-I$(DIR)/app -I$(DIR)/inc -I$(DIR)/app/control -I$(DIR)/inc/api -I$(DIR)/inc/isp -I$(DIR)/inc/sys -I$(DIR)/src/platform -I$(DIR)/src/fw -I$(DIR)/src/fw_lib -I$(DIR)/src/calibration -I$(DIR)/src/driver/sensor -I$(DIR)/src/driver/lens -I$(_KDIR)/include/linux/ diff --git a/drivers/amlogic/isp_module/subdev/sensor/Makefile b/drivers/amlogic/isp_module/subdev/sensor/Makefile index b22f4c419068..7f143e9c8238 100644 --- a/drivers/amlogic/isp_module/subdev/sensor/Makefile +++ b/drivers/amlogic/isp_module/subdev/sensor/Makefile @@ -52,7 +52,7 @@ FW_SRC_OBJ := app/soc_sensor.o \ iv009_isp_sensor-objs += $(FW_SRC_OBJ) -INCLUDE_DIRS := $(addprefix -I,$(shell find ../ -type d 2> /dev/null)) +#INCLUDE_DIRS := $(addprefix -I,$(shell cd ${src}; find ../ -type d 2> /dev/null)) ccflags-y:=-I$(DIR)/app -I$(DIR)/inc -I$(DIR)/app/control -I$(DIR)/inc/api -I$(DIR)/inc/isp -I$(DIR)/inc/sys -I$(DIR)/src/platform -I$(DIR)/src/fw -I$(DIR)/src/fw_lib -I$(DIR)/src/calibration -I$(DIR)/src/driver/sensor -I$(DIR)/src/driver/lens -I$(_KDIR)/include/linux/ diff --git a/drivers/amlogic/isp_module/v4l2_dev/Makefile b/drivers/amlogic/isp_module/v4l2_dev/Makefile index 204701ccd5df..9715a4d649d7 100644 --- a/drivers/amlogic/isp_module/v4l2_dev/Makefile +++ b/drivers/amlogic/isp_module/v4l2_dev/Makefile @@ -131,7 +131,7 @@ FW_SRC_OBJ := app/main_kernel_juno_v4l2.o \ iv009_isp-objs += $(FW_SRC_OBJ) -INCLUDE_DIRS := $(addprefix -I,$(shell find ../ -type d 2> /dev/null)) +INCLUDE_DIRS := $(addprefix -I,$(shell cd ${src}; find ../ -type d 2> /dev/null)) ccflags-y:=-I$(DIR)/app -I$(DIR)/inc -I$(DIR)/app/control -I$(DIR)/inc/api -I$(DIR)/inc/isp -I$(DIR)/inc/sys -I$(DIR)/src/platform -I$(DIR)/src/fw -I$(DIR)/src/fw_lib -I$(DIR)/src/calibration -I$(DIR)/src/driver/sensor -I$(DIR)/src/driver/lens -I$(_KDIR)/include/linux/