[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <50A8F837.7040700@acm.org>
Date: Sun, 18 Nov 2012 16:01:11 +0100
From: Bart Van Assche <bvanassche@....org>
To: Sam Ravnborg <sam@...nborg.org>
CC: Arnaud Lacombe <lacombar@...il.com>,
Nick Bowler <nbowler@...iptictech.com>,
Richard Weinberger <richard@....at>,
Michal Marek <mmarek@...e.cz>,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: [PATCH] kbuild: Unbreak cleaning external module build directory
Avoid that "$(MAKE) -C $(KDIR) M=$(PWD) clean" triggers the following
error message when invoked from inside the Makefile of an external
kernel module:
rm: cannot remove 'System.map': Permission denied
make[1]: *** [clean] Error 1
Cc: Sam Ravnborg <sam@...nborg.org>
Cc: Arnaud Lacombe <lacombar@...il.com>
Cc: Nick Bowler <nbowler@...iptictech.com>
Cc: Richard Weinberger <richard@....at>
Cc: Michal Marek <mmarek@...e.cz>
Cc: <stable@...r.kernel.org>
Signed-off-by: Bart Van Assche <bvanassche@....org>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 9f6ca12..46b9be5 100644
--- a/Makefile
+++ b/Makefile
@@ -1252,7 +1252,7 @@ scripts: ;
endif # KBUILD_EXTMOD
clean: $(clean-dirs)
- $(Q)$(CONFIG_SHELL) $(srctree)/scripts/link-vmlinux.sh clean
+ $(Q)$(if $(KBUILD_EXTMOD),,$(CONFIG_SHELL) $(srctree)/scripts/link-vmlinux.sh clean)
$(call cmd,rmdirs)
$(call cmd,rmfiles)
@find $(if $(KBUILD_EXTMOD), $(KBUILD_EXTMOD), .) $(RCS_FIND_IGNORE) \
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists