Makefile: Drop include/asm directory as well as symlink
authorSimon Glass <sjg@chromium.org>
Fri, 2 Jul 2021 18:36:13 +0000 (12:36 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 28 Jul 2021 18:27:54 +0000 (14:27 -0400)
At present when using 'make mrproper' on an out-of-tree build, a warning
is shown about include/asm being a directory. With old versions of U-Boot
it is a file, but more recently it has become a directory.

Remove this directory first, since that covers both cases.

Signed-off-by: Simon Glass <sjg@chromium.org>
Makefile

index 5c1fcb1..dc21066 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2100,7 +2100,7 @@ CLEAN_FILES += include/bmp_logo.h include/bmp_logo_data.h tools/version.h \
 
 # Directories & files removed with 'make mrproper'
 MRPROPER_DIRS  += include/config include/generated spl tpl \
-                 .tmp_objdiff doc/output
+                 .tmp_objdiff doc/output include/asm
 
 # Remove include/asm symlink created by U-Boot before v2014.01
 MRPROPER_FILES += .config .config.old include/autoconf.mk* include/config.h \