summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2023-08-23 20:50:44 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2023-08-29 22:38:23 +0900
commitd8131c2965d5ee59bfa4d548641e52a13cbe17c9 (patch)
tree0c629abda223ed60e6a2a35e22dba95c326fecaf /Makefile
parent79b96c332241c06b4c63cfa0e23a539558b79b90 (diff)
downloadlinux-d8131c2965d5ee59bfa4d548641e52a13cbe17c9.tar.gz
linux-d8131c2965d5ee59bfa4d548641e52a13cbe17c9.tar.bz2
linux-d8131c2965d5ee59bfa4d548641e52a13cbe17c9.zip
kbuild: remove $(MODLIB)/source symlink
This reverts the old commit "kbuild: Introduce source symlink in /lib/modules/.../". [1] The current Kbuild does not require $(MODLIB)/source. If the kernel was built in a separate output directory, $(MODLIB)/build/Makefile wraps the Makefile in the source tree. It is enough for building external modules. [1] https://git.kernel.org/pub/scm/linux/kernel/git/history/history.git/commit/?id=e09e58867154b8aae0a3ac26a9b1c05962f5a355 Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 2 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index ac11e6893ed1..f61ad7ff0057 100644
--- a/Makefile
+++ b/Makefile
@@ -1486,14 +1486,10 @@ modules_install: $(modinst_pre)
PHONY += __modinst_pre
__modinst_pre:
@rm -rf $(MODLIB)/kernel
- @rm -f $(MODLIB)/source
+ @rm -f $(MODLIB)/build
@mkdir -p $(MODLIB)
ifdef CONFIG_MODULES
- @ln -s $(abspath $(srctree)) $(MODLIB)/source
- @if [ ! $(objtree) -ef $(MODLIB)/build ]; then \
- rm -f $(MODLIB)/build ; \
- ln -s $(CURDIR) $(MODLIB)/build ; \
- fi
+ @ln -s $(CURDIR) $(MODLIB)/build
@sed 's:^\(.*\)\.o$$:kernel/\1.ko:' modules.order > $(MODLIB)/modules.order
endif
@cp -f modules.builtin $(MODLIB)/