Thread (40 messages) 40 messages, 9 authors, 2016-08-10

Re: [PATCH 3/5] kbuild: add arch specific post-module-link pass

From: Nicholas Piggin <npiggin@gmail.com>
Date: 2016-08-08 03:30:10
Also in: linux-arch, linux-kbuild

On Sat, 6 Aug 2016 22:16:29 +0200
Sam Ravnborg [off-list ref] wrote:
On Fri, Aug 05, 2016 at 10:12:01PM +1000, Nicholas Piggin wrote:
quoted
Add an option for architectures to pass over modules after they are
linked. powerpc will use this to fix up alternate instruction patch
relocations.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
---
 Documentation/kbuild/makefiles.txt | 6 ++++++
 Makefile                           | 1 +
 scripts/Makefile.modpost           | 8 ++++++++
 3 files changed, 15 insertions(+)
diff --git a/Documentation/kbuild/makefiles.txt b/Documentation/kbuild/makefiles.txt
index 13f888a..f6c065b 100644
--- a/Documentation/kbuild/makefiles.txt
+++ b/Documentation/kbuild/makefiles.txt
@@ -952,6 +952,12 @@ When kbuild executes, the following steps are followed (roughly):
 	$(KBUILD_ARFLAGS) set by the top level Makefile to "D" (deterministic
 	mode) if this option is supported by $(AR).
 
+    KBUILD_MODPOST_TOOL   Arch-specific command to run after module link
+
+        $(KBUILD_MODPOST_TOOL) is used to add an arch-specific pass over
+        modules after their final link. E.g., powerpc uses this to adjust
+        relative branches of "alternate code patching" sections.
+  
This needs documentation in kbuild.txt, where there is a
nearly full lst of KBUILD_ variables.
Thanks, I missed that.

Thanks,
Nick
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help