上面是我的微信和QQ群,欢迎新朋友的加入。

今天下载Uboot,发现编译失败

看提示信息,是版本过低

查看当前版本

查看当前版本信息,果然是这个问题

修改Uboot源码

uboot的源码:/arch/arm/config.mk

uboot的源码:/arch/arm/config.mk

# Only test once
ifeq ($(CONFIG_$(SPL_)SYS_THUMB_BUILD),y)
#archprepare: checkthumb checkgcc6
archprepare: checkthumb 
 
checkthumb:
    @if test "$(call cc-name)" = "gcc" -a \
            "$(call cc-version)" -lt "0404"; then \
        echo -n '*** Your GCC does not produce working '; \
        echo 'binaries in THUMB mode.'; \
        echo '*** Your board is configured for THUMB mode.'; \
        false; \
    fi
#else
#archprepare: checkgcc6
endif
 
#checkgcc6:
#   @if test "$(call cc-name)" = "gcc" -a \
#           "$(call cc-version)" -lt "0600"; then \
#       echo '*** Your GCC is older than 6.0 and is not supported'; \
#       false; 

如果再次编译报错,那就检查是不是没有用tab,而是用的空格

Logo

更多推荐