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 1062e1c203d1237326f727149f76822544912e42..fc0150a62f94b164de5fc72240718aaa511f4f70 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 317d3e92f43cb8ce6bc5d353eb12d1582494dfc9..fee33577b3c13032db4312706eb7a2442a7b5115 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 b22f4c41906811c8c59c4ecc483f8afe1a35f6a4..7f143e9c8238aba01426f8abfb332071b4307b49 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 204701ccd5dfcb43a6140c347f78cf64012dd841..9715a4d649d7bb89555364a86135f0f47b699e94 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/