• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

Could use a little help with building a kernel for the g5

Search This thread

Shadicbypass

Senior Member
Jun 11, 2014
486
131
Conway
Note: I am not sure where I should have put this thread but I was going to put it in the development section but I don't have a high enough post count. If this thread should be in another section please feel free to move it mods.

ok so i am trying to build my own kernel for the g5 and i have read that i need to build a clean unmodified kernel first in order to make sure everything is set up right. these are the errors i keep getting everytime without fail.
these are the compile commands.
[email protected]:~$ cd kernel;
[email protected]:~/kernel$ export /home/maxwell/Android/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-
bash: export: `/home/maxwell/Android/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-': not a valid identifier
[email protected]:~/kernel$ export CROSS_COMPILE=/home/maxwell/Android/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-
[email protected]:~/kernel$ export ARCH=arm64
[email protected]:~/kernel$ make h1_global_com-perf_defconfigdrivers/soc/qcom/Kconfig:287:warning: choice value used outside its choice group
drivers/soc/qcom/Kconfig:292:warning: choice value used outside its choice group
arch/arm64/configs/h1_global_com-perf_defconfig:694:warning: override: reassigning to symbol INET_XFRM_MODE_BEET
arch/arm64/configs/h1_global_com-perf_defconfig:705:warning: override: reassigning to symbol LGE_SP_MIRRORING_CTRL_BL
#
# configuration written to .config
#
[email protected]:~/kernel$ make clean && make mrproper
CLEAN .
CLEAN arch/arm64/kernel/vdso
CLEAN arch/arm64/kernel
CLEAN crypto/asymmetric_keys
CLEAN firmware
CLEAN kernel/time
CLEAN kernel
CLEAN security/selinux
CLEAN usr
CLEAN .tmp_versions
CLEAN scripts/basic
CLEAN scripts/dtc
CLEAN scripts/genksyms
CLEAN scripts/kconfig
CLEAN scripts/mod
CLEAN scripts/selinux/genheaders
CLEAN scripts/selinux/mdp
CLEAN scripts
CLEAN include/config include/generated arch/arm64/include/generated
CLEAN .config .config.old .version include/generated/uapi/linux/version.h signing_key.priv signing_key.x509 x509.genkey
[email protected]:~/kernel$ make h1_global_com-perf_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/soc/qcom/Kconfig:287:warning: choice value used outside its choice group
drivers/soc/qcom/Kconfig:292:warning: choice value used outside its choice group
arch/arm64/configs/h1_global_com-perf_defconfig:694:warning: override: reassigning to symbol INET_XFRM_MODE_BEET
arch/arm64/configs/h1_global_com-perf_defconfig:705:warning: override: reassigning to symbol LGE_SP_MIRRORING_CTRL_BL
#
# configuration written to .config
#
[email protected]:~/kernel$ make -j8

these are the errors.
scripts/Makefile.build:402: recipe for target 'drivers/usb' failed
make[1]: *** [drivers/usb] Error 2
In file included from drivers/soc/qcom/tracer_pkt_private.h:49:0,
from drivers/soc/qcom/tracer_pkt.c:18:
include/trace/define_trace.h:83:43: fatal error: ./tracer_pkt_private.h: No such file or directory
#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
^
compilation terminated.
scripts/Makefile.build:257: recipe for target 'drivers/soc/qcom/tracer_pkt.o' failed
make[3]: *** [drivers/soc/qcom/tracer_pkt.o] Error 1
make[3]: *** Waiting for unfinished jobs....
scripts/Makefile.build:402: recipe for target 'drivers/soc/qcom' failed
make[2]: *** [drivers/soc/qcom] Error 2
scripts/Makefile.build:402: recipe for target 'drivers/soc' failed
make[1]: *** [drivers/soc] Error 2
Makefile:945: recipe for target 'drivers' failed
make: *** [drivers] Error 2
[email protected]:~/kernel$