lkml.org 
[lkml]   [2012]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] Let modpost parses vmlinux instead of vmlinux.o
Date
Dear Mr. Rowand,

What do you think about this patch?
Thanks!

Ciao,
Alessio

---
Makefile | 2 +-
scripts/Makefile.modpost | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 123d858..b589d1f 100644
--- a/Makefile
+++ b/Makefile
@@ -876,7 +876,7 @@ quiet_cmd_vmlinux-modpost = LD $@
define rule_vmlinux-modpost
:
+$(call cmd,vmlinux-modpost)
- $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost $@
+ $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost $*
$(Q)echo 'cmd_$@ := $(cmd_vmlinux-modpost)' > $(dot-target).cmd
endef

diff --git a/scripts/Makefile.modpost b/scripts/Makefile.modpost
index 56dfafc..ca0db29 100644
--- a/scripts/Makefile.modpost
+++ b/scripts/Makefile.modpost
@@ -93,7 +93,7 @@ __modpost: $(modules:.ko=.o) FORCE
quiet_cmd_kernel-mod = MODPOST $@
cmd_kernel-mod = $(modpost) $@

-vmlinux.o: FORCE
+vmlinux vmlinux.o: FORCE
$(call cmd,kernel-mod)

# Declare generated files as targets for modpost
--
1.7.5.4


\
 
 \ /
  Last update: 2012-03-29 17:03    [W:0.142 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site