{standard input}: Assembler messages:{standard input}:36: 错误: unexpected character `n' in type specifier{standard input}:36: 错误: bad instruction `b.ne 1b'scripts/Makefile.build:265: recipe for target 'arch/arm/cpu/armv8/cpu.o' failedmake[1]: *** [arch/arm/cpu/armv8/cpu.o] Error 1Makefile:1783: recipe for target 'arch/arm/cpu/armv8' failedmake: *** [arch/arm/cpu/armv8] Error 2
仅添加如下代码
顶层makefile中
ARCH?=armCROSS_COMPILE?=arm-linux-gnueabihf-
看你添加的编译器配置,应该是32位的arm编译器,但是RZ/G2L的uboot代码是64位的(特别是汇编部分),建议使用官方编译方式和编译器。
1)参考VLP的release note里面“Building SDK”章节,安装yocto里面使用的toolchain,然后使用这个toolchain编译u-boot
2)直接在yocto环境里面编译u-boot:bitbake u-boot -C compile -f
首先,你需要熟悉yocto开发环境,这个网上有很多链接教程。
请问官方编译方式及编译器在哪个文档里呢
好的,非常感谢