遇见如下问题:
make[2]: *** [prepare3] Error 1
make[2]: *** 正在等待未完成的任务....
package/pkg-generic.mk:238: recipe for target '/home/sunhelong/work/buildbetter/buildroot/output/build/linux-custom/.stamp_built' failed
make[1]: *** [/home/sunhelong/work/buildbetter/buildroot/output/build/linux-custom/.stamp_built] Error 2
Makefile:84: recipe for target '_all' failed
make: *** [_all] Error 2
进入kernel目录,执行make mrproper,
然后返回原目录重新编译,问题即可解决
make mrproper命令会删除所有的编译生成文件、内核配置文件(.config文件)和各种备份文件
可参考:https://blog.csdn.net/gchww/article/details/7407790