[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201103054425.59251-1-chao.wang@ucloud.cn>
Date: Tue, 3 Nov 2020 13:44:25 +0800
From: WANG Chao <chao.wang@...oud.cn>
To: linux-kernel@...r.kernel.org
Cc: Masahiro Yamada <masahiroy@...nel.org>,
linux-kbuild@...r.kernel.org
Subject: [PATCH] kbuild: add extra-y to targets-for-modules
extra-y target doesn't build for 'make M=...' since commit 6212804f2d78
("kbuild: do not create built-in objects for external module builds").
This especially breaks kpatch, which is using 'extra-y := kpatch.lds'
and 'make M=...' to build livepatch patch module.
Add extra-y to targets-for-modules so that such kind of build works
properly.
Signed-off-by: WANG Chao <chao.wang@...oud.cn>
---
scripts/Makefile.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index ae647379b579..0113a042d643 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -86,7 +86,7 @@ ifdef need-builtin
targets-for-builtin += $(obj)/built-in.a
endif
-targets-for-modules := $(patsubst %.o, %.mod, $(filter %.o, $(obj-m)))
+targets-for-modules := $(extra-y) $(patsubst %.o, %.mod, $(filter %.o, $(obj-m)))
ifdef need-modorder
targets-for-modules += $(obj)/modules.order
--
2.29.1
Powered by blists - more mailing lists