amlogic: isp_module: find include directory only under source tree 86/248986/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 4 Dec 2020 04:41:12 +0000 (13:41 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 4 Dec 2020 04:50:00 +0000 (13:50 +0900)
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 <sw0312.kim@samsung.com>
drivers/amlogic/isp_module/subdev/iq/Makefile
drivers/amlogic/isp_module/subdev/lens/Makefile
drivers/amlogic/isp_module/subdev/sensor/Makefile
drivers/amlogic/isp_module/v4l2_dev/Makefile

index 1062e1c..fc0150a 100644 (file)
@@ -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/
 
index 317d3e9..fee3357 100644 (file)
@@ -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/
 
index b22f4c4..7f143e9 100644 (file)
@@ -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/
 
index 204701c..9715a4d 100644 (file)
@@ -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/