Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android kernel compiling error for arm64 (msm8996)

Tags:

android

arm64

I'm trying to compile my custom kernel for an arm64 android device having an msm8996 SOC. I cloned my Kernel on GitHub just to make sure I have a fully clean code. Then I exported these:

export PATH=/home/nico/Downloads/kernel/aarch64-linux-android-4.9/bin:$PATH
export CROSS_COMPILE=aarch64-linux-android-
export ARCH=arm64
export SUBARCH=arm64

Keep in mind that the msm8996 has two dual-core clusters which are both arm64. I tried compiling using the stock gcc 4.9 toolchain which is shiped with the Cyanogenmod sources and then I tried it using two of the UberTC 4.9 toolchains which can be found here: https://bitbucket.org/UBERTC/ aarch64-linux-android-4.9-kernel and aarch64-linux-android-4.9 (I dunno exactly what's the difference between those two). Every time I retried building my kernel I performed a

make mrproper

and also deleted the ccache folder. Then I performed a

make cm_pme_defconfig

and finally a

make -j2

I also tried the same procedure with

make -j1

I couldn't find anyone else who got the same error so I decided to post it here. Here's the error message in my terminal:

In file included from drivers/net/ethernet/msm/rndis_ipa_trace.h:81:0,
                 from drivers/net/ethernet/msm/rndis_ipa.c:32:
include/trace/define_trace.h:83:43: fatal error: ./rndis_ipa_trace.h:
No such file or directory
#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
                                           ^
compilation terminated.

Furthermore here's my kernel on my GitHub https://github.com/nico151999/android_kernel_htc_msm8996

I really need your help though the solution to the problem may be quite obvious. Thanks a lot in advance ;)

like image 869
Nico Feulner Avatar asked Feb 06 '23 06:02

Nico Feulner


1 Answers

actually based on this commit i found global answer take look :

diff --git a/drivers/platform/msm/ipa/ipa_v2/ipa_trace.h b/drivers/platform/msm/ipa/ipa_v2/ipa_trace.h
index d70abdf..7f7e452 100644
--- a/drivers/platform/msm/ipa/ipa_v2/ipa_trace.h
+++ b/drivers/platform/msm/ipa/ipa_v2/ipa_trace.h
@@ -131,5 +131,5 @@ TRACE_EVENT(

 /* This part must be outside protection */
 #undef TRACE_INCLUDE_PATH
-#define TRACE_INCLUDE_PATH .
+#define TRACE_INCLUDE_PATH ../../drivers/platform/msm/ipa/ipa_v2
 #include <trace/define_trace.h>

do this ("../../") to other TRACE_INCLUDE_PATH

like image 97
Khode_Erfan Avatar answered Feb 13 '23 07:02

Khode_Erfan