public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] make-asm-offsets: fix sed script
@ 2010-10-27  6:37 Wolfgang Denk
  2010-10-27  6:54 ` Heiko Schocher
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Wolfgang Denk @ 2010-10-27  6:37 UTC (permalink / raw)
  To: u-boot

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>
---
 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
-- 
1.7.2.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH] make-asm-offsets: fix sed script
  2010-10-27  6:37 [U-Boot] [PATCH] make-asm-offsets: fix sed script Wolfgang Denk
@ 2010-10-27  6:54 ` Heiko Schocher
  2010-10-27 14:45 ` Ben Gardiner
  2010-10-27 18:17 ` Wolfgang Denk
  2 siblings, 0 replies; 4+ messages in thread
From: Heiko Schocher @ 2010-10-27  6:54 UTC (permalink / raw)
  To: u-boot

Hello Wolfgang,

Wolfgang Denk wrote:
> 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>
> ---
>  tools/scripts/make-asm-offsets |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)

Tested on the omap3_beagle board, so:

Tested-by: Heiko Schocher <hs@denx.de>

bye,
Heiko
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH] make-asm-offsets: fix sed script
  2010-10-27  6:37 [U-Boot] [PATCH] make-asm-offsets: fix sed script Wolfgang Denk
  2010-10-27  6:54 ` Heiko Schocher
@ 2010-10-27 14:45 ` Ben Gardiner
  2010-10-27 18:17 ` Wolfgang Denk
  2 siblings, 0 replies; 4+ messages in thread
From: Ben Gardiner @ 2010-10-27 14:45 UTC (permalink / raw)
  To: u-boot

On Wed, Oct 27, 2010 at 2:37 AM, Wolfgang Denk <wd@denx.de> wrote:
> 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>

Applies cleanly to 79e63139368eb7233b738d3d5a0df018a1287e3b of
git://git.denx.de/u-boot.git and fixes da850evm build there since
25ddd1fb0a2281b182529afbc8fda5de2dc16d96.

Tested on da850evm with NAND, env.oob and tftp.

Tested-by: Ben Gardiner <bengardiner@nanometrics.ca>

Best Regards,
Ben Gardiner

---
Nanometrics Inc.
http://www.nanometrics.ca

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH] make-asm-offsets: fix sed script
  2010-10-27  6:37 [U-Boot] [PATCH] make-asm-offsets: fix sed script Wolfgang Denk
  2010-10-27  6:54 ` Heiko Schocher
  2010-10-27 14:45 ` Ben Gardiner
@ 2010-10-27 18:17 ` Wolfgang Denk
  2 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2010-10-27 18:17 UTC (permalink / raw)
  To: u-boot

In message <1288161467-2979-1-git-send-email-wd@denx.de> you wrote:
> 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>
> ---
>  tools/scripts/make-asm-offsets |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)

Applied.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"None of our men are "experts." We have most unfortunately  found  it
necessary  to get rid of a man as soon as he thinks himself an expert
-- because no one ever considers himself expert if  he  really  knows
his  job.  A man who knows a job sees so much more to be done than he
has done, that he is always pressing forward and never  gives  up  an
instant  of  thought  to  how  good and how efficient he is. Thinking
always ahead, thinking always of trying to do more, brings a state of
mind in which nothing is impossible. The moment  one  gets  into  the
"expert" state of mind a great number of things become impossible."
              - From Henry Ford Sr., "My Life and Work," p. 86 (1922)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-10-27 18:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-27  6:37 [U-Boot] [PATCH] make-asm-offsets: fix sed script Wolfgang Denk
2010-10-27  6:54 ` Heiko Schocher
2010-10-27 14:45 ` Ben Gardiner
2010-10-27 18:17 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox