qcacmn: Use file for include path instead of environment variable
The include path passed to the CFLAGS may get very long in few cases and passing them to the compiler results in the error "arguments too long" from the shell. We can pass the same argument by writing the include paths to a file and avoid these errors when there are many include paths added. Change-Id: I2788d6e97a854ae6272d665943d56d581dc002bf CRs-Fixed: 2999763
This commit is contained in:
@@ -117,7 +117,11 @@ INCS += -I$(obj)/$(DEPTH)/cmn_dev/iot_sim/dispatcher/inc
|
||||
|
||||
obj-m += qca_iot_sim.o
|
||||
|
||||
ccflags-y+= $(INCS) $(COPTS)
|
||||
inc_file := $(obj)/$(DEPTH)/iot_inc_opts
|
||||
inc_var := $(shell echo $(INCS) > $(inc_file))
|
||||
var := "@$(inc_file)"
|
||||
|
||||
ccflags-y+= $(var) $(COPTS)
|
||||
|
||||
ifeq ($(strip ${QCA_PARTNER_MAKE_F_SUPPORT}),1)
|
||||
MOD_CFLAGS = -D"KBUILD_STR(s)=\#s" -D"KBUILD_BASENAME=KBUILD_STR(qca_iot_sim.mod)" -D"KBUILD_MODNAME=KBUILD_STR(qca_iot_sim)"
|
||||
|
Reference in New Issue
Block a user