Ubuntu U-boot移植编译错误 [bad value (‘generic-armv7-a’) for ‘-mtune=’ switch]

Makefile已修改

        Ubuntu U-boot移植编译错误 [bad value (‘generic-armv7-a’) for ‘-mtune=’ switch]_第1张图片

错误信息:

cc1: error: bad value (‘generic-armv7-a’) for ‘-mtune=’ switch
cc1: note: valid arguments to ‘-mtune=’ switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client rocketlake icelake-server cascadelake tigerlake cooperlake sapphirerapids alderlake bonnell atom silvermont slm goldmont goldmont-plus tremont knl knm intel x86-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 znver2 znver3 btver1 btver2 generic native
make[1]: *** [Kbuild:44:lib/asm-offsets.s] 错误 1

错误原因:

        编译时未明确设置默认交叉编译工具

解决办法:

        在Uboot顶层目录下继续修改Makefile

Ubuntu U-boot移植编译错误 [bad value (‘generic-armv7-a’) for ‘-mtune=’ switch]_第2张图片

成功效果:

Ubuntu U-boot移植编译错误 [bad value (‘generic-armv7-a’) for ‘-mtune=’ switch]_第3张图片

 

 

你可能感兴趣的:(ubuntu,u-boot)