diff options
author | Wolfgang Denk <wd@denx.de> | 2010-10-27 08:31:42 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-10-27 20:16:52 +0200 |
commit | e4691f5ed1a60a019505359b5033698cc813a787 (patch) | |
tree | 668503a2e24b0825823162fdcfb64fe9074658f0 /tools/scripts/make-asm-offsets | |
parent | f503d52a9ee5bceaedbc4d8331d397aab96092ff (diff) | |
download | u-boot-imx-e4691f5ed1a60a019505359b5033698cc813a787.zip u-boot-imx-e4691f5ed1a60a019505359b5033698cc813a787.tar.gz u-boot-imx-e4691f5ed1a60a019505359b5033698cc813a787.tar.bz2 |
make-asm-offsets: fix sed script
When copying the "sed" script to generate the asm-offsets.h file from
the Linux Kbuild script into the make-asm-offsets file I missed the
fact that the former runs in a "make" context and thus uses double
"$$" to escape a single "$", while the latter is a shell script, where
this must not be done. Unfortunately the problem did not show up
during the initial tests on Power Architecture systems, but on ARM the
generated asm-offsets.h was not correct.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Tested-by: Heiko Schocher <hs@denx.de>
Tested-by: Ben Gardiner <bengardiner@nanometrics.ca>
Diffstat (limited to 'tools/scripts/make-asm-offsets')
-rwxr-xr-x | tools/scripts/make-asm-offsets | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/scripts/make-asm-offsets b/tools/scripts/make-asm-offsets index 61c095f..4c33756 100755 --- a/tools/scripts/make-asm-offsets +++ b/tools/scripts/make-asm-offsets @@ -8,8 +8,8 @@ mkdir -p $(dirname $2) # Default sed regexp - multiline due to syntax constraints SED_CMD="/^->/{s:->#\(.*\):/* \1 */:; \ - s:^->\([^ ]*\) [\$$#]*\([-0-9]*\) \(.*\):#define \1 (\2) /* \3 */:; \ - s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; \ + s:^->\([^ ]*\) [\$#]*\([-0-9]*\) \(.*\):#define \1 (\2) /* \3 */:; \ + s:^->\([^ ]*\) [\$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; \ s:->::; p;}" (set -e |