编译uboot时遇到以下几个问题:
1、make[1]: Nothing to be done for '_depend'.
2、‘_sha1_src’ defined but not used [-Wunused-const-variable=]
我的系统环境:Ubuntu 18.04,kernel: Linux version 5.3.0-53-generic
工具链设置为:
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
export PATH=$PATH:/home/ToolChain/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin
问题1:百度后找到几篇网文,都认为是编译前没有使用make distclean导致的,但我使用了啊,编译是还是每次都出现
参见:编译U-boot 出现Nothing to be done for `_depend'
各种搜索也没有解决,最后决定不理了,解决下一个问题,哈哈,原来这个不是问题,不影响u-boot编译
问题2:/home/book/test/u-boot-2012.04.01/lib/sha1.c:389:19: warning: ‘_sha1_src’ defined but not used [-Wunused-const-variable=]
百度后看到很多说要找到Makefile,去掉其中-Werror ,重新编译,可我全文都搜索不到-Werror