Skip to content

Commit 3a475b2

Browse files
geertumasahir0y
authored andcommitted
kbuild: Inform user to pass ARCH= for make mrproper
When cross-compiling an out-of-tree build with an unclean source tree directory, the build fails with: /path/to/kernel/source/tree is not clean, please run 'make mrproper' in the '/path/to/kernel/source/tree' directory. However, doing so does not fix the problem, as "make mrproper" now requires passing the target architecture to the make command, else it won't remove $(srctree)/arch/$(SRCARCH)/include/generated. "git ls-files -o" doesn't give a clue, as it doesn't list (empty) directories, only files. Improve usability by including the ARCH= option in the error output. Fixes: a788b2e ("kbuild: check arch/$(SRCARCH)/include/generated before out-of-tree build") Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent b956c7a commit 3a475b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ ifdef building_out_of_srctree
11071107
$(Q)if [ -f $(srctree)/.config -o \
11081108
-d $(srctree)/include/config -o \
11091109
-d $(srctree)/arch/$(SRCARCH)/include/generated ]; then \
1110-
echo >&2 " $(srctree) is not clean, please run 'make mrproper'"; \
1110+
echo >&2 " $(srctree) is not clean, please run 'make ARCH=$(ARCH) mrproper'"; \
11111111
echo >&2 " in the '$(srctree)' directory.";\
11121112
/bin/false; \
11131113
fi;

0 commit comments

Comments
 (0)