Sorry, indeed echo
is from shell and inside of Makefile usually replaced by $(info ...)
, $(warning ...)
or $(error ...)
.
Regarding the command line limit, in DOS it is about 32k, but in Linux this limit is several thousand characters long (on my Ubuntu build machine about 2M characters) and the ccflags-y
line printed above is not even 1000 characters long. So I don’t think it is cut off.
Nor should multithreating be an issue, the compile may use multiple threats, that the makefile is multithreating would be new to me.
So you end up with a ccflags-y
like
ccflags-y =
-Idrivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/../../linux/include
-Idrivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/../../linux/pri/include
-Idrivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/../../core/include
-Idrivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/../../include
-Idrivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/../include
-Idrivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/../../../common_detect
-I/media/data_fast/bpi/kernel/BPI-R2-4.14/drivers/misc/mediatek/btif/common/inc
-I/media/data_fast/bpi/kernel/BPI-R2-4.14/drivers/misc/mediatek/mach//include/mach
-DWMT_CREATE_NODE_DYNAMIC=1
which should be equivalent to:
ccflags-y =
-Idrivers/misc/mediatek/connectivity/common/conn_soc/linux/include
-Idrivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/include
-Idrivers/misc/mediatek/connectivity/common/conn_soc/core/include
-Idrivers/misc/mediatek/connectivity/common/conn_soc/include
-Idrivers/misc/mediatek/connectivity/common/conn_soc/linux/include
-Idrivers/misc/mediatek/connectivity/common/common_detect
-I/media/data_fast/bpi/kernel/BPI-R2-4.14/drivers/misc/mediatek/btif/common/inc
-I/media/data_fast/bpi/kernel/BPI-R2-4.14/drivers/misc/mediatek/mach//include/mach
-DWMT_CREATE_NODE_DYNAMIC=1
with
-I/media/data_fast/bpi/kernel/BPI-R2-4.14/drivers/misc/mediatek/btif/common/inc
pointing to the mtk_btif.h
file… strange
Can you rewrite that include to use the $(src)
instead of $(srctree)
syntax?
like -I$(src)/../../../../../btif/common/inc
?
Anyway for me this include this high up in the hierarchy should be probably declared in the top level makfile of the subdir-ccflags-y
declaration in BPI-R2-4.14/drivers/misc/ mediatek /
Edit: scrap the last part, as it is actually defined in the makefile of btif/common/ Makefile using a local path. Also you alreayd wrote that you tried commenting out -I$(srctree)/drivers/misc/mediatek/btif/common/inc
.
Question though, is the ifneq ($(KERNELRELEASE),)
actually evaluated, in other words, does it go inside of this branch?