kbuild: mips: fix sed regexp to generate asm-offset.h
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Mon, 27 Mar 2006 15:18:54 +0000 (00:18 +0900)
committerSam Ravnborg <sam@mars.ravnborg.org>
Wed, 5 Apr 2006 10:59:36 +0000 (12:59 +0200)
Changes to Makefile.kbuild ("kbuild: add -fverbose-asm to i386
Makefile") breaks asm-offset.h file on MIPS.  Other archs possibly
suffer this change too but I'm not sure.

Here is a fix just for MIPS.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Kbuild

diff --git a/Kbuild b/Kbuild
index 95d6a00bace08c0ac50b80356847d5f19f6dc55a..2d4f95e4b89f7f81da6cb94b07e8449b3689ba37 100644 (file)
--- a/Kbuild
+++ b/Kbuild
@@ -18,7 +18,7 @@ define sed-y
        "/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}"
 endef
 # Override default regexp for specific architectures
-sed-$(CONFIG_MIPS) := "/^@@@/s///p"
+sed-$(CONFIG_MIPS) := "/^@@@/{s/^@@@//; s/ \#.*\$$//; p;}"
 
 quiet_cmd_offsets = GEN     $@
 define cmd_offsets