编译官方给的Linux 源码没有问题,写完内核驱动(驱动没问题)并修改了Makefile和Kconfig,然后用make menuconfig加载驱动,最后调用官方给的编译脚本命令 ./build.sh,编译过程中出现错误。帮忙看看怎么解决,谢谢。
root@ubuntu:/home/orangepi/Android_5.1/Android/lichee# ./build.sh
INFO: ----------------------------------------
INFO: build lichee ...
INFO: chip: sun50iw2p1
INFO: platform: android
INFO: business:
INFO: kernel: linux-3.10
INFO: arch: arm64
INFO: board:
INFO: output: out/sun50iw2p1/android/
INFO: ----------------------------------------
INFO: build buildroot ...
external toolchain has been installed
external toolchain_32 has been installed
INFO: build buildroot OK.
INFO: build kernel ...
INFO: prepare toolchain ...
use last time build config
Building kernel
/home/orangepi/Android_5.1/Android/lichee/linux-3.10/output/lib/modules/3.10.65
Copy rootfs.cpio.gz for arm64
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CALL scripts/checksyscalls.sh
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
CHK include/generated/compile.h
CC arch/arm64/kernel/debug-monitors.o
arch/arm64/kernel/debug-monitors.c:323:5: error: redefinition of 'aarch32_break_handler'
int aarch32_break_handler(struct pt_regs *regs)
^
In file included from arch/arm64/kernel/debug-monitors.c:29:0:
/home/orangepi/Android_5.1/Android/lichee/linux-3.10/arch/arm64/include/asm/debug-monitors.h:149:12: note: previous definition of 'aarch32_break_handler' was here
static int aarch32_break_handler(struct pt_regs *regs)
^
/home/orangepi/Android_5.1/Android/lichee/linux-3.10/arch/arm64/include/asm/debug-monitors.h:149:12: warning: 'aarch32_break_handler' defined but not used [-Wunused-function]
make[1]: *** [arch/arm64/kernel/debug-monitors.o] 错误 1
make: *** [arch/arm64/kernel] 错误 2
make: *** 正在等待未完成的任务....
GZIP kernel/config_data.gz
CHK kernel/config_data.h
ERROR: build kernel Failed
离线