I am trying to build a kernel for moto g 2014
I have tried using linaro and stock gcc toolchains.
[CODEsid@sid-truestark:~/kernelmoto$ export ARCH=arm
sid@sid-truestark:~/kernelmoto$ export CROSS_COMPILER=~/android/aosp-6.0/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-
sid@sid-truestark:~/kernelmoto$
sid@sid-truestark:~/kernelmoto$ make titan_defconfig
drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
#
# configuration written to .config
#
sid@sid-truestark:~/kernelmoto$ make clean && mrproper
CLEAN .
CLEAN arch/arm/kernel
CLEAN kernel
CLEAN security/selinux
CLEAN usr
CLEAN arch/arm/boot
CLEAN .tmp_versions
mrproper: command not found
sid@sid-truestark:~/kernelmoto$ make -j6
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
CHK include/linux/version.h
CHK include/generated/utsrelease.h
HOSTCC scripts/conmakehash
HOSTCC scripts/kallsyms
CC scripts/mod/empty.o
HOSTCC scripts/dtc/checks.o
gcc: error: unrecognized argument in option -mabi=aapcs-linux
gcc: note: valid arguments to -mabi= are: ms sysv
gcc: error: unrecognized command line option -mlittle-endian
gcc: error: unrecognized command line option -mno-thumb-interwork
scripts/Makefile.build:307: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 1
scripts/Makefile.build:443: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
HOSTCC scripts/selinux/genheaders/genheaders
HOSTCC scripts/dtc/data.o
HOSTCC scripts/selinux/mdp/mdp
HOSTCC scripts/dtc/dtc-lexer.lex.o
make[1]: 'include/generated/mach-types.h' is up to date.
HOSTCC scripts/dtc/dtc-parser.tab.o
HOSTCC scripts/dtc/dtc.o
HOSTCC scripts/dtc/flattree.o
CC kernel/bounds.s
HOSTCC scripts/dtc/fstree.o
gcc: error: unrecognized argument in option -mabi=aapcs-linux
gcc: note: valid arguments to -mabi= are: ms sysv
gcc: error: unrecognized command line option -mlittle-endian
gcc: error: unrecognized command line option -mno-thumb-interwork
/home/sid/kernelmoto/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 1
Makefile:995: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
HOSTCC scripts/dtc/livetree.o
HOSTCC scripts/dtc/srcpos.o
HOSTCC scripts/dtc/util.o
HOSTCC scripts/dtc/treesource.o
HOSTLD scripts/dtc/dtc
Makefile:515: recipe for target 'scripts' failed
make: *** [scripts] Error 2
sid@sid-truestark:~/kernelmoto$
][/CODE]
how to fix these errors? any help will be appreciated.
I have tried using linaro and stock gcc toolchains.
[CODEsid@sid-truestark:~/kernelmoto$ export ARCH=arm
sid@sid-truestark:~/kernelmoto$ export CROSS_COMPILER=~/android/aosp-6.0/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-
sid@sid-truestark:~/kernelmoto$
sid@sid-truestark:~/kernelmoto$ make titan_defconfig
drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
#
# configuration written to .config
#
sid@sid-truestark:~/kernelmoto$ make clean && mrproper
CLEAN .
CLEAN arch/arm/kernel
CLEAN kernel
CLEAN security/selinux
CLEAN usr
CLEAN arch/arm/boot
CLEAN .tmp_versions
mrproper: command not found
sid@sid-truestark:~/kernelmoto$ make -j6
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
CHK include/linux/version.h
CHK include/generated/utsrelease.h
HOSTCC scripts/conmakehash
HOSTCC scripts/kallsyms
CC scripts/mod/empty.o
HOSTCC scripts/dtc/checks.o
gcc: error: unrecognized argument in option -mabi=aapcs-linux
gcc: note: valid arguments to -mabi= are: ms sysv
gcc: error: unrecognized command line option -mlittle-endian
gcc: error: unrecognized command line option -mno-thumb-interwork
scripts/Makefile.build:307: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 1
scripts/Makefile.build:443: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
HOSTCC scripts/selinux/genheaders/genheaders
HOSTCC scripts/dtc/data.o
HOSTCC scripts/selinux/mdp/mdp
HOSTCC scripts/dtc/dtc-lexer.lex.o
make[1]: 'include/generated/mach-types.h' is up to date.
HOSTCC scripts/dtc/dtc-parser.tab.o
HOSTCC scripts/dtc/dtc.o
HOSTCC scripts/dtc/flattree.o
CC kernel/bounds.s
HOSTCC scripts/dtc/fstree.o
gcc: error: unrecognized argument in option -mabi=aapcs-linux
gcc: note: valid arguments to -mabi= are: ms sysv
gcc: error: unrecognized command line option -mlittle-endian
gcc: error: unrecognized command line option -mno-thumb-interwork
/home/sid/kernelmoto/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 1
Makefile:995: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
HOSTCC scripts/dtc/livetree.o
HOSTCC scripts/dtc/srcpos.o
HOSTCC scripts/dtc/util.o
HOSTCC scripts/dtc/treesource.o
HOSTLD scripts/dtc/dtc
Makefile:515: recipe for target 'scripts' failed
make: *** [scripts] Error 2
sid@sid-truestark:~/kernelmoto$
][/CODE]
how to fix these errors? any help will be appreciated.
Download from this link
No comments:
Post a Comment