VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Masahiro Yamada <masahiroy@kernel.org> 2021-06-02 23:02:13 +0900 committer: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2021-07-20 16:00:40 +0200 commit: 3dbb2de9e7afe0005b8c8f9e0da9f13a80e386d7 parent: 2292bba57bb6c67ecc5223a616d809519eabac80
Commit Summary:
kbuild: remove trailing slashes from $(KBUILD_EXTMOD)
Diffstat:
1 file changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 83f4212e004f..4258a60f6119 100644
--- a/Makefile
+++ b/Makefile
@@ -129,6 +129,11 @@ endif
 $(if $(word 2, $(KBUILD_EXTMOD)), \
 	$(error building multiple external modules is not supported))
 
+# Remove trailing slashes
+ifneq ($(filter %/, $(KBUILD_EXTMOD)),)
+KBUILD_EXTMOD := $(shell dirname $(KBUILD_EXTMOD).)
+endif
+
 export KBUILD_EXTMOD
 
 # Kbuild will save output files in the current working directory.