diff options
author | Sam Ravnborg <sam@mars.(none)> | 2005-09-09 16:32:31 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@mars.(none)> | 2005-09-09 16:32:31 -0400 |
commit | 048eb582f3f89737d4a29668de9935e6feea7c36 (patch) | |
tree | 515b3a1b72769d181eed020e166ece0d31b77446 /Kbuild | |
parent | 39e01cb874cbf694bd0b0c44f54c4f270e2aa556 (diff) |
kbuild: mips use generic asm-offsets.h support
Removed obsolete stuff from arch makefile.
mips had a special rule for generating asm-offsets.h so preserved it
using an architecture specific hook in top-level Kbuild file.
Renamed .h file to asm-offsets.h
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'Kbuild')
-rw-r--r-- | Kbuild | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -13,6 +13,13 @@ always := $(offsets-file) | |||
13 | targets := $(offsets-file) | 13 | targets := $(offsets-file) |
14 | targets += arch/$(ARCH)/kernel/asm-offsets.s | 14 | targets += arch/$(ARCH)/kernel/asm-offsets.s |
15 | 15 | ||
16 | # Default sed regexp - multiline due to syntax constraints | ||
17 | define sed-y | ||
18 | "/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}" | ||
19 | endef | ||
20 | # Override default regexp for specific architectures | ||
21 | sed-$(CONFIG_MIPS) := "/^@@@/s///p" | ||
22 | |||
16 | quiet_cmd_offsets = GEN $@ | 23 | quiet_cmd_offsets = GEN $@ |
17 | define cmd_offsets | 24 | define cmd_offsets |
18 | cat $< | \ | 25 | cat $< | \ |
@@ -26,7 +33,7 @@ define cmd_offsets | |||
26 | echo " *"; \ | 33 | echo " *"; \ |
27 | echo " */"; \ | 34 | echo " */"; \ |
28 | echo ""; \ | 35 | echo ""; \ |
29 | sed -ne "/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}"; \ | 36 | sed -ne $(sed-y); \ |
30 | echo ""; \ | 37 | echo ""; \ |
31 | echo "#endif" ) > $@ | 38 | echo "#endif" ) > $@ |
32 | endef | 39 | endef |