aboutsummaryrefslogtreecommitdiffstats
path: root/Kbuild
diff options
context:
space:
mode:
authorChristoph Lameter2008-04-28 04:12:45 -0500
committerLinus Torvalds2008-04-28 10:58:21 -0500
commitbf2ae2b37c06cc9fb6fc03d99617f1161939980f (patch)
tree3ffc871c7cf45eb08a51704f840778dda6db0cdc /Kbuild
parent726b80127239aeea9c8d8aad5b4e2c80313e3ce8 (diff)
downloadkernel-omap-bf2ae2b37c06cc9fb6fc03d99617f1161939980f.tar.gz
kernel-omap-bf2ae2b37c06cc9fb6fc03d99617f1161939980f.tar.xz
kernel-omap-bf2ae2b37c06cc9fb6fc03d99617f1161939980f.zip
pageflags: standardize comment inclusion in asm-offsets.h and fix MIPS
Add the ability to pass comments into asm-offsets.h by generating asm output like -># comment line Mips needs this feature to preserve the comments that are in asm-mips/asm-offsets.h right now. Then remove the special handling for mips from Kbuild and convert mips to use the new string to include the comments. Cc: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Christoph Lameter <clameter@sgi.com> Cc: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Kbuild')
-rw-r--r--Kbuild6
1 files changed, 3 insertions, 3 deletions
diff --git a/Kbuild b/Kbuild
index 7136de7b6fcb..32f19c5c9bb0 100644
--- a/Kbuild
+++ b/Kbuild
@@ -52,10 +52,10 @@ targets += arch/$(SRCARCH)/kernel/asm-offsets.s
52 52
53# Default sed regexp - multiline due to syntax constraints 53# Default sed regexp - multiline due to syntax constraints
54define sed-y 54define sed-y
55 "/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}" 55 "/^->/{s:->#\(.*\):/* \1 */:; \
56 s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; \
57 s:->::; p;}"
56endef 58endef
57# Override default regexp for specific architectures
58sed-$(CONFIG_MIPS) := "/^@@@/{s/^@@@//; s/ \#.*\$$//; p;}"
59 59
60quiet_cmd_offsets = GEN $@ 60quiet_cmd_offsets = GEN $@
61define cmd_offsets 61define cmd_offsets