手機 - Google Pixel 3a XL - Droidian - 解決mdss_pll_trace.h No such file or directory問題



問題如下:

$ ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- make all
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CHK     include/generated/bounds.h
  CHK     include/generated/timeconst.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  CHK     scripts/mod/devicetable-offsets.h
  CHK     include/generated/compile.h
  CHK     kernel/config_data.h
  LD      drivers/clk/qcom/clk-qcom.o
  CC      drivers/clk/qcom/mdss/mdss-dsi-pll-10nm.o
In file included from drivers/clk/qcom/mdss/mdss_pll_trace.h:116:0,
                 from drivers/clk/qcom/mdss/mdss-dsi-pll-10nm.c:24:
./include/trace/define_trace.h:88:43: fatal error: ./mdss_pll_trace.h: No such file or directory
 #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
                                           ^
compilation terminated.
make[4]: *** [scripts/Makefile.build:340: drivers/clk/qcom/mdss/mdss-dsi-pll-10nm.o] Error 1
make[3]: *** [scripts/Makefile.build:653: drivers/clk/qcom/mdss] Error 2
make[2]: *** [scripts/Makefile.build:653: drivers/clk/qcom] Error 2
make[1]: *** [scripts/Makefile.build:653: drivers/clk] Error 2
make: *** [Makefile:1120: drivers] Error 2

解法如下:

$ vim drivers/clk/qcom/mdss/mdss_pll_trace.h
    115 #define TRACE_INCLUDE_PATH ../../drivers/clk/qcom/mdss