导航

编译遇到make mrmroper问题

Posted on 2018-08-01 11:39  ricks  阅读(412)  评论(0编辑  收藏  举报
make[1]: Entering directory `/home/share/project/ql-ol-sdk/ql-ol-kernel'
make[2]: Entering directory `/home/share/project/ql-ol-sdk/ql-ol-kernel/build'
  CHK     include/config/kernel.release
  GEN     ./Makefile
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/bin2c
  Using .. as source for kernel
  .. is not clean, please run 'make mrproper'
  in the '..' directory.
make[2]: *** [prepare3] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/home/share/project/ql-ol-sdk/ql-ol-kernel/build'
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/share/project/ql-ol-sdk/ql-ol-kernel'
make: *** [kernel] Error 2

编译kernel的时候发生以上错误。

解决办法如下:

ricks@ubuntu:~/share/project/ql-ol-sdk$ cd ql-ol-kernel/
ricks@ubuntu:~/share/project/ql-ol-sdk/ql-ol-kernel$ make mrproper
arch/arm/boot/dts/Makefile:525: warning: overriding commands for target `dtbs'
arch/arm/boot/dts/Makefile:525: warning: ignoring old commands for target `dtbs'
  CLEAN   scripts/basic
  CLEAN   scripts/kconfig
  CLEAN   include/config include/generated

make clean 和 make mrproper的区别请参考 https://www.cnblogs.com/ricks/articles/9400334.html