5.0编译错误,求指导(提示make mrproper)
GEN /home/tangh/mtk_work/92L/alps/out/target/product/6592_wet_l/obj/KERNEL_OBJ/Makefile
Using /home/tangh/mtk_work/92L/alps/kernel-3.10 as source for kernel
CHK include/generated/utsrelease.h
/home/tangh/mtk_work/92L/alps/kernel-3.10 is not clean, please run 'make mrproper'
in the '/home/tangh/mtk_work/92L/alps/kernel-3.10' directory.
make[2]: *** [prepare3] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/tangh/mtk_work/92L/alps/kernel-3.10'
make: *** [/home/tangh/mtk_work/92L/alps/out/target/product/6592_wet_l/obj/KERNEL_OBJ/arch/ARM/boot/zImage] Error 2
#### make failed to build some targets (10:55 (mm:ss)) ####
本来编译是OK 的,改着改着编译就出现这个错误,在内核执行make mrproper也会报错。
:o:o:o:o:o:o
我只能帮你顶一下。
你看看 kernel-3.10\include下面是不是有个config的文件夹,把它删了,就可以了
不会困难啊,帮顶下。
你这种方法应该可以,下次尝试一下
后面我自己还是在kernel目录下面用了make mrproper,删掉所有的.0和一些.config文件,后面再去编kernel就好了。
make mrproper这个命令报错是因为在Makefile里面有指定路径但是却没有改路径时就会报错,类似这种:
#obj-$(CONFIG_MTK_TC1_FEATURE) += tc1_interface/ 不管CONFIG_MTK_TC1_FEATURE这个有没有定义,没有tc1_interface这个目录就会报错。
其实kernel下面的makefile脚本里面有说明的:ifneq ($(KBUILD_SRC),)
@$(kecho) ' Using $(srctree) as source for kernel'
$(Q)if [ -f $(srctree)/.config -o -d $(srctree)/include/config ]; then \
echo >&2 " $(srctree) is not clean, please run 'make mrproper'"; \
echo >&2 " in the '$(srctree)' directory.";\
/bin/false; \
fi;
endif