* [U-Boot] [PATCH 0/3] improve build for UNIX like non GNU platforms
@ 2011-07-19 20:41 Jeroen Hofstee
2011-07-19 20:41 ` [U-Boot] [PATCH 1/3] include/compiler.h: typedef ulong for FreeBSD Jeroen Hofstee
` (3 more replies)
0 siblings, 4 replies; 17+ messages in thread
From: Jeroen Hofstee @ 2011-07-19 20:41 UTC (permalink / raw)
To: u-boot
The sed changes can be tested with GNU sed by sed --posix.
Tested on FreeBSD / Ubuntu.
For completeness, building with the FreeBSD arm bootstrap compiler
needs some non u-boot related changes:
+ gcc doesn't support the -print-file-name=include, and the correct
path needs to added manually.
+ linking fails since it also needs libc.a. Just add -lc.
Jeroen Hofstee (3):
include/compiler.h: typedef ulong for FreeBSD
mkconfig: create CONFIG_ defines without relying on GNU extensions
rules.mk: replace GNU specific \w with POSIX equivalant
include/compiler.h | 2 +-
mkconfig | 2 +-
rules.mk | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
--
1.7.5.4
^ permalink raw reply [flat|nested] 17+ messages in thread* [U-Boot] [PATCH 1/3] include/compiler.h: typedef ulong for FreeBSD
2011-07-19 20:41 [U-Boot] [PATCH 0/3] improve build for UNIX like non GNU platforms Jeroen Hofstee
@ 2011-07-19 20:41 ` Jeroen Hofstee
2011-07-28 19:17 ` Wolfgang Denk
2011-07-19 20:41 ` [U-Boot] [PATCH 2/3] mkconfig: create CONFIG_ defines without relying on GNU extensions Jeroen Hofstee
` (2 subsequent siblings)
3 siblings, 1 reply; 17+ messages in thread
From: Jeroen Hofstee @ 2011-07-19 20:41 UTC (permalink / raw)
To: u-boot
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
---
include/compiler.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/compiler.h b/include/compiler.h
index 91dbe56..4e047c7 100644
--- a/include/compiler.h
+++ b/include/compiler.h
@@ -44,7 +44,7 @@
#ifdef __linux__
# include <endian.h>
# include <byteswap.h>
-#elif defined(__MACH__)
+#elif defined(__MACH__) || defined(__FreeBSD__)
# include <machine/endian.h>
typedef unsigned long ulong;
#endif
--
1.7.5.4
^ permalink raw reply related [flat|nested] 17+ messages in thread* [U-Boot] [PATCH 1/3] include/compiler.h: typedef ulong for FreeBSD
2011-07-19 20:41 ` [U-Boot] [PATCH 1/3] include/compiler.h: typedef ulong for FreeBSD Jeroen Hofstee
@ 2011-07-28 19:17 ` Wolfgang Denk
0 siblings, 0 replies; 17+ messages in thread
From: Wolfgang Denk @ 2011-07-28 19:17 UTC (permalink / raw)
To: u-boot
Dear Jeroen Hofstee,
In message <1311108110-37409-2-git-send-email-jeroen@myspectrum.nl> you wrote:
> Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
> ---
> include/compiler.h | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
Applied, thanks.
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
So we follow our wandering paths, and the very darkness acts as our
guide and our doubts serve to reassure us. - Jean-Pierre de Caussade,
eighteenth-century Jesuit priest
^ permalink raw reply [flat|nested] 17+ messages in thread
* [U-Boot] [PATCH 2/3] mkconfig: create CONFIG_ defines without relying on GNU extensions
2011-07-19 20:41 [U-Boot] [PATCH 0/3] improve build for UNIX like non GNU platforms Jeroen Hofstee
2011-07-19 20:41 ` [U-Boot] [PATCH 1/3] include/compiler.h: typedef ulong for FreeBSD Jeroen Hofstee
@ 2011-07-19 20:41 ` Jeroen Hofstee
2011-07-19 21:03 ` Mike Frysinger
2011-07-19 22:57 ` Marek Vasut
2011-07-19 20:41 ` [U-Boot] [PATCH 3/3] rules.mk: replace GNU specific \w with POSIX equivalant Jeroen Hofstee
2011-07-20 18:38 ` [U-Boot] [PATCH v2 0/3] improve build for UNIX like non GNU platforms Jeroen Hofstee
3 siblings, 2 replies; 17+ messages in thread
From: Jeroen Hofstee @ 2011-07-19 20:41 UTC (permalink / raw)
To: u-boot
Parsing of boards.cfg relies on sed GNU extensions and fails if sed
doesn't support these. On FreeBSD this leads to the error:
sed: 1: "/=/ {s/=/\t/;q } ; { s/ ...": extra characters at the end
of q command
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Cc: Marek Vasut <marek.vasut@gmail.com>
---
mkconfig | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/mkconfig b/mkconfig
index 6ff533f..b9cfc94 100755
--- a/mkconfig
+++ b/mkconfig
@@ -148,7 +148,7 @@ fi
echo "/* Automatically generated - do not edit */" >>config.h
for i in ${TARGETS} ; do
- i="`echo ${i} | sed '/=/ {s/=/\t/;q } ; { s/$/\t1/ }'`"
+ i="`echo ${i} | sed -e '/=/!s/$/=1/' -e 's/=/ /'`"
echo "#define CONFIG_${i}" >>config.h ;
done
--
1.7.5.4
^ permalink raw reply related [flat|nested] 17+ messages in thread* [U-Boot] [PATCH 2/3] mkconfig: create CONFIG_ defines without relying on GNU extensions
2011-07-19 20:41 ` [U-Boot] [PATCH 2/3] mkconfig: create CONFIG_ defines without relying on GNU extensions Jeroen Hofstee
@ 2011-07-19 21:03 ` Mike Frysinger
2011-07-19 21:28 ` Jeroen Hofstee
2011-07-19 22:57 ` Marek Vasut
1 sibling, 1 reply; 17+ messages in thread
From: Mike Frysinger @ 2011-07-19 21:03 UTC (permalink / raw)
To: u-boot
On Tue, Jul 19, 2011 at 16:41, Jeroen Hofstee wrote:
> Parsing of boards.cfg relies on sed GNU extensions and fails if sed
> doesn't support these. On FreeBSD this leads to the error:
>
> sed: 1: "/=/ {s/=/\t/;q } ; { s/ ...": extra characters at the end
> of q command
>
> - ? ? ? i="`echo ${i} | sed '/=/ {s/=/\t/;q } ; { s/$/\t1/ }'`"
> + ? ? ? i="`echo ${i} | sed -e '/=/!s/$/=1/' -e 's/=/ ? /'`"
maybe i havent read enough sed scripts, but i dont think ive seen "!"
used before. how about this more straightforward replacement:
sed -e '/=/{s/=/\t/;q}' -e 's/$/\t1/'
-mike
^ permalink raw reply [flat|nested] 17+ messages in thread* [U-Boot] [PATCH 2/3] mkconfig: create CONFIG_ defines without relying on GNU extensions
2011-07-19 21:03 ` Mike Frysinger
@ 2011-07-19 21:28 ` Jeroen Hofstee
2011-07-19 21:38 ` Mike Frysinger
0 siblings, 1 reply; 17+ messages in thread
From: Jeroen Hofstee @ 2011-07-19 21:28 UTC (permalink / raw)
To: u-boot
Hi Mike,
> maybe i havent read enough sed scripts, but i dont think ive seen "!"
I took this for irony, so I triple checked:
jeroen at green-ubuntu:~$ echo config | sed -e '/=/!s/$/=1/'
config=1
jeroen at green-ubuntu:~$ echo config=2 | sed -e '/=/!s/$/=1/'
config=2
> used before. how about this more straightforward replacement:
> sed -e '/=/{s/=/\t/;q}' -e 's/$/\t1/'
> -mike
Won't work on FreeBSD since it can't quite early [afaik] (perhaps with a
label, but gets rather ugly..)
[jeroen at blue ~]$ echo configflag | sed -e '/=/{s/=/\t/;q}' -e 's/$/\t1/'
sed: 1: "/=/{s/=/\t/;q}
": extra characters at the end of q command
Regards,
Jeroen
^ permalink raw reply [flat|nested] 17+ messages in thread* [U-Boot] [PATCH 2/3] mkconfig: create CONFIG_ defines without relying on GNU extensions
2011-07-19 21:28 ` Jeroen Hofstee
@ 2011-07-19 21:38 ` Mike Frysinger
2011-07-19 22:05 ` Jeroen Hofstee
0 siblings, 1 reply; 17+ messages in thread
From: Mike Frysinger @ 2011-07-19 21:38 UTC (permalink / raw)
To: u-boot
On Tue, Jul 19, 2011 at 17:28, Jeroen Hofstee wrote:
>> maybe i havent read enough sed scripts, but i dont think ive seen "!"
>
> I took this for irony, so I triple checked:
i didnt mean "it isnt in POSIX" (because it is), i meant it as "no one
uses it, so it wont be obvious to people reading this code later as to
what's going on"
>> used before. ?how about this more straightforward replacement:
>> sed -e '/=/{s/=/\t/;q}' -e 's/$/\t1/'
>
> Won't work on FreeBSD since it can't quite early [afaik] (perhaps with a
> label, but gets rather ugly..)
>
> [jeroen at blue ~]$ echo configflag | sed -e '/=/{s/=/\t/;q}' -e 's/$/\t1/'
> sed: 1: "/=/{s/=/\t/;q}
> ": extra characters at the end of q command
i'm not sure you've diagnosed the problem correctly. the fact that
the output says "end of q command" indicates that FreeBSD does support
the "q" command (as required by POSIX).
perhaps the problem is that the ";" extension to separating commands
(which is not in POSIX afaics) does not work the same in FreeBSD's sed
as GNU's sed. i imagine if you stick a ";" after the "q" command
it'll work ...
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/sed.html
-mike
^ permalink raw reply [flat|nested] 17+ messages in thread* [U-Boot] [PATCH 2/3] mkconfig: create CONFIG_ defines without relying on GNU extensions
2011-07-19 21:38 ` Mike Frysinger
@ 2011-07-19 22:05 ` Jeroen Hofstee
0 siblings, 0 replies; 17+ messages in thread
From: Jeroen Hofstee @ 2011-07-19 22:05 UTC (permalink / raw)
To: u-boot
Hi Mike,
>> Won't work on FreeBSD since it can't quite early [afaik] (perhaps with a
>> label, but gets rather ugly..)
>>
>> [jeroen at blue ~]$ echo configflag | sed -e '/=/{s/=/\t/;q}' -e 's/$/\t1/'
>> sed: 1: "/=/{s/=/\t/;q}
>> ": extra characters at the end of q command
> i'm not sure you've diagnosed the problem correctly. the fact that
> the output says "end of q command" indicates that FreeBSD does support
> the "q" command (as required by POSIX).
>
I didn't apparently..
> perhaps the problem is that the ";" extension to separating commands
> (which is not in POSIX afaics) does not work the same in FreeBSD's sed
> as GNU's sed. i imagine if you stick a ";" after the "q" command
> it'll work ...
>
> http://pubs.opengroup.org/onlinepubs/9699919799/utilities/sed.html
> -mike
Yes, the ; does work as expected, thanks!
[jeroen at blue ~]$ echo config | sed -e '/=/{s/=/ /;q;}' -e 's/$/ 1/'
config 1
[jeroen at blue ~]$ echo config=2 | sed -e '/=/{s/=/ /;q;}' -e 's/$/ 1/'
config 2
Shall change the patch accordingly tomorrow.
Regards,
Jeroen
^ permalink raw reply [flat|nested] 17+ messages in thread
* [U-Boot] [PATCH 2/3] mkconfig: create CONFIG_ defines without relying on GNU extensions
2011-07-19 20:41 ` [U-Boot] [PATCH 2/3] mkconfig: create CONFIG_ defines without relying on GNU extensions Jeroen Hofstee
2011-07-19 21:03 ` Mike Frysinger
@ 2011-07-19 22:57 ` Marek Vasut
2011-07-19 23:03 ` Mike Frysinger
2011-07-19 23:09 ` Jeroen Hofstee
1 sibling, 2 replies; 17+ messages in thread
From: Marek Vasut @ 2011-07-19 22:57 UTC (permalink / raw)
To: u-boot
On Tuesday, July 19, 2011 10:41:49 PM Jeroen Hofstee wrote:
> Parsing of boards.cfg relies on sed GNU extensions and fails if sed
> doesn't support these. On FreeBSD this leads to the error:
>
> sed: 1: "/=/ {s/=/\t/;q } ; { s/ ...": extra characters at the end
> of q command
Does it still work on linux as well? Did you test? If so, I'm all for it being
merged, but just from a brief look, I see it'll be missing the TAB. Am I right?
>
> Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
> Cc: Marek Vasut <marek.vasut@gmail.com>
> ---
> mkconfig | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/mkconfig b/mkconfig
> index 6ff533f..b9cfc94 100755
> --- a/mkconfig
> +++ b/mkconfig
> @@ -148,7 +148,7 @@ fi
> echo "/* Automatically generated - do not edit */" >>config.h
>
> for i in ${TARGETS} ; do
> - i="`echo ${i} | sed '/=/ {s/=/\t/;q } ; { s/$/\t1/ }'`"
> + i="`echo ${i} | sed -e '/=/!s/$/=1/' -e 's/=/ /'`"
> echo "#define CONFIG_${i}" >>config.h ;
> done
^ permalink raw reply [flat|nested] 17+ messages in thread* [U-Boot] [PATCH 2/3] mkconfig: create CONFIG_ defines without relying on GNU extensions
2011-07-19 22:57 ` Marek Vasut
@ 2011-07-19 23:03 ` Mike Frysinger
2011-07-19 23:09 ` Jeroen Hofstee
1 sibling, 0 replies; 17+ messages in thread
From: Mike Frysinger @ 2011-07-19 23:03 UTC (permalink / raw)
To: u-boot
On Tue, Jul 19, 2011 at 18:57, Marek Vasut wrote:
> On Tuesday, July 19, 2011 10:41:49 PM Jeroen Hofstee wrote:
>> Parsing of boards.cfg relies on sed GNU extensions and fails if sed
>> doesn't support these. On FreeBSD this leads to the error:
>>
>> sed: 1: "/=/ {s/=/\t/;q } ; { s/ ...": extra characters at the end
>> of q command
>
> Does it still work on linux as well? Did you test? If so, I'm all for it being
> merged, but just from a brief look, I see it'll be missing the TAB. Am I right?
he inlined the tab. it isnt actually a space there.
not that it matters as this is used to create "#define CONFIG_FOO 1"
and preprocessors dont care if it's a tab or space before that "1".
-mike
^ permalink raw reply [flat|nested] 17+ messages in thread* [U-Boot] [PATCH 2/3] mkconfig: create CONFIG_ defines without relying on GNU extensions
2011-07-19 22:57 ` Marek Vasut
2011-07-19 23:03 ` Mike Frysinger
@ 2011-07-19 23:09 ` Jeroen Hofstee
1 sibling, 0 replies; 17+ messages in thread
From: Jeroen Hofstee @ 2011-07-19 23:09 UTC (permalink / raw)
To: u-boot
Parsing of boards.cfg relies on sed GNU extensions and fails if sed
>> doesn't support these. On FreeBSD this leads to the error:
>>
>> sed: 1: "/=/ {s/=/\t/;q } ; { s/ ...": extra characters at the end
>> of q command
> Does it still work on linux as well? Did you test? If so, I'm all for it being
> merged, but just from a brief look, I see it'll be missing the TAB. Am I right?
>
yes I did build all arm boards on ubuntu (and i386?) on ubuntu. (it
didn't build more
nor less boards). As pointed out by Mike there might be a a patch more
closely to
the original, but I will need to test that (especially if GNU support
it), and will do that
tomorrow (today actually CEST). So preferably take that one.
The BSD version doesn't understand \t, so it is a literal tab character.
Can't help it.
Regards,
Jeroen
^ permalink raw reply [flat|nested] 17+ messages in thread
* [U-Boot] [PATCH 3/3] rules.mk: replace GNU specific \w with POSIX equivalant
2011-07-19 20:41 [U-Boot] [PATCH 0/3] improve build for UNIX like non GNU platforms Jeroen Hofstee
2011-07-19 20:41 ` [U-Boot] [PATCH 1/3] include/compiler.h: typedef ulong for FreeBSD Jeroen Hofstee
2011-07-19 20:41 ` [U-Boot] [PATCH 2/3] mkconfig: create CONFIG_ defines without relying on GNU extensions Jeroen Hofstee
@ 2011-07-19 20:41 ` Jeroen Hofstee
2011-07-28 19:18 ` Wolfgang Denk
2011-07-20 18:38 ` [U-Boot] [PATCH v2 0/3] improve build for UNIX like non GNU platforms Jeroen Hofstee
3 siblings, 1 reply; 17+ messages in thread
From: Jeroen Hofstee @ 2011-07-19 20:41 UTC (permalink / raw)
To: u-boot
If sed does not support the GNU \w regex extension, build attempts
lead to circular dependency warnings and finally build failure
(crc32.c not found). Build output before and after the patch on
FreeBSD is at:
http://lists.denx.de/pipermail/u-boot/2011-June/095235.html
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
---
rules.mk | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/rules.mk b/rules.mk
index 5fd12a0..a6bae62 100644
--- a/rules.mk
+++ b/rules.mk
@@ -29,11 +29,11 @@ $(obj).depend: $(src)Makefile $(TOPDIR)/config.mk $(SRCS) $(HOSTSRCS)
@rm -f $@
@touch $@
@for f in $(SRCS); do \
- g=`basename $$f | sed -e 's/\(.*\)\.\w/\1.o/'`; \
+ g=`basename $$f | sed -e 's/\(.*\)\.[[:alnum:]_]/\1.o/'`; \
$(CC) -M $(CPPFLAGS) -MQ $(obj)$$g $$f >> $@ ; \
done
@for f in $(HOSTSRCS); do \
- g=`basename $$f | sed -e 's/\(.*\)\.\w/\1.o/'`; \
+ g=`basename $$f | sed -e 's/\(.*\)\.[[:alnum:]_]/\1.o/'`; \
$(HOSTCC) -M $(HOSTCPPFLAGS) -MQ $(obj)$$g $$f >> $@ ; \
done
--
1.7.5.4
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [U-Boot] [PATCH 3/3] rules.mk: replace GNU specific \w with POSIX equivalant
2011-07-19 20:41 ` [U-Boot] [PATCH 3/3] rules.mk: replace GNU specific \w with POSIX equivalant Jeroen Hofstee
@ 2011-07-28 19:18 ` Wolfgang Denk
0 siblings, 0 replies; 17+ messages in thread
From: Wolfgang Denk @ 2011-07-28 19:18 UTC (permalink / raw)
To: u-boot
Dear Jeroen Hofstee,
In message <1311108110-37409-4-git-send-email-jeroen@myspectrum.nl> you wrote:
> If sed does not support the GNU \w regex extension, build attempts
> lead to circular dependency warnings and finally build failure
> (crc32.c not found). Build output before and after the patch on
> FreeBSD is at:
> http://lists.denx.de/pipermail/u-boot/2011-June/095235.html
>
> Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
> ---
> rules.mk | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
Applied, thanks.
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
Wisdom is one of the few things that looks bigger the further away it
is. - Terry Pratchett, _Witches Abroad_
^ permalink raw reply [flat|nested] 17+ messages in thread
* [U-Boot] [PATCH v2 0/3] improve build for UNIX like non GNU platforms
2011-07-19 20:41 [U-Boot] [PATCH 0/3] improve build for UNIX like non GNU platforms Jeroen Hofstee
` (2 preceding siblings ...)
2011-07-19 20:41 ` [U-Boot] [PATCH 3/3] rules.mk: replace GNU specific \w with POSIX equivalant Jeroen Hofstee
@ 2011-07-20 18:38 ` Jeroen Hofstee
2011-07-20 18:38 ` [U-Boot] [PATCH v2 3/3] mkconfig: also create CONFIG defines with BSD sed Jeroen Hofstee
3 siblings, 1 reply; 17+ messages in thread
From: Jeroen Hofstee @ 2011-07-20 18:38 UTC (permalink / raw)
To: u-boot
Changes for v2:
- updated mkconfig patch to make minimal changes and changed commit
message, since it now relies on GNU and BSD extensions.
Jeroen Hofstee (3):
include/compiler.h: typedef ulong for FreeBSD
rules.mk: replace GNU specific \w with POSIX equivalant
mkconfig: also create CONFIG defines with BSD sed
--
1.7.5.4
^ permalink raw reply [flat|nested] 17+ messages in thread* [U-Boot] [PATCH v2 3/3] mkconfig: also create CONFIG defines with BSD sed
2011-07-20 18:38 ` [U-Boot] [PATCH v2 0/3] improve build for UNIX like non GNU platforms Jeroen Hofstee
@ 2011-07-20 18:38 ` Jeroen Hofstee
2011-07-20 20:08 ` Mike Frysinger
2011-07-28 19:18 ` Wolfgang Denk
0 siblings, 2 replies; 17+ messages in thread
From: Jeroen Hofstee @ 2011-07-20 18:38 UTC (permalink / raw)
To: u-boot
Parsing of boards.cfg fails on FreeBSD with the error:
sed: 1: "/=/ {s/=/\t/;q } ; { s/ ...": extra characters at the end
of q command
BSD sed expects commands to be on seperate 'lines', hence it expects
an additional ; before the closing brackets.
BSD sed does not support \t, replaced by literal tab.
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Cc: Marek Vasut <marek.vasut@gmail.com>
---
mkconfig | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/mkconfig b/mkconfig
index 6ff533f..ecb6d4e 100755
--- a/mkconfig
+++ b/mkconfig
@@ -148,7 +148,7 @@ fi
echo "/* Automatically generated - do not edit */" >>config.h
for i in ${TARGETS} ; do
- i="`echo ${i} | sed '/=/ {s/=/\t/;q } ; { s/$/\t1/ }'`"
+ i="`echo ${i} | sed '/=/ {s/=/ /;q; } ; { s/$/ 1/; }'`"
echo "#define CONFIG_${i}" >>config.h ;
done
--
1.7.5.4
^ permalink raw reply related [flat|nested] 17+ messages in thread* [U-Boot] [PATCH v2 3/3] mkconfig: also create CONFIG defines with BSD sed
2011-07-20 18:38 ` [U-Boot] [PATCH v2 3/3] mkconfig: also create CONFIG defines with BSD sed Jeroen Hofstee
@ 2011-07-20 20:08 ` Mike Frysinger
2011-07-28 19:18 ` Wolfgang Denk
1 sibling, 0 replies; 17+ messages in thread
From: Mike Frysinger @ 2011-07-20 20:08 UTC (permalink / raw)
To: u-boot
On Wed, Jul 20, 2011 at 14:38, Jeroen Hofstee wrote:
> Parsing of boards.cfg fails on FreeBSD with the error:
>
> sed: 1: "/=/ {s/=/\t/;q } ; { s/ ...": extra characters at the end
> of q command
>
> BSD sed expects commands to be on seperate 'lines', hence it expects
> an additional ; before the closing brackets.
> BSD sed does not support \t, replaced by literal tab.
Acked-by: Mike Frysinger <vapier@gentoo.org>
-mike
^ permalink raw reply [flat|nested] 17+ messages in thread* [U-Boot] [PATCH v2 3/3] mkconfig: also create CONFIG defines with BSD sed
2011-07-20 18:38 ` [U-Boot] [PATCH v2 3/3] mkconfig: also create CONFIG defines with BSD sed Jeroen Hofstee
2011-07-20 20:08 ` Mike Frysinger
@ 2011-07-28 19:18 ` Wolfgang Denk
1 sibling, 0 replies; 17+ messages in thread
From: Wolfgang Denk @ 2011-07-28 19:18 UTC (permalink / raw)
To: u-boot
Dear Jeroen Hofstee,
In message <1311187101-6229-2-git-send-email-jeroen@myspectrum.nl> you wrote:
> Parsing of boards.cfg fails on FreeBSD with the error:
>
> sed: 1: "/=/ {s/=/\t/;q } ; { s/ ...": extra characters at the end
> of q command
>
> BSD sed expects commands to be on seperate 'lines', hence it expects
> an additional ; before the closing brackets.
> BSD sed does not support \t, replaced by literal tab.
>
> Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
> Cc: Marek Vasut <marek.vasut@gmail.com>
> ---
> mkconfig | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
Applied, thanks.
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
It is more rational to sacrifice one life than six.
-- Spock, "The Galileo Seven", stardate 2822.3
^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2011-07-28 19:18 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-19 20:41 [U-Boot] [PATCH 0/3] improve build for UNIX like non GNU platforms Jeroen Hofstee
2011-07-19 20:41 ` [U-Boot] [PATCH 1/3] include/compiler.h: typedef ulong for FreeBSD Jeroen Hofstee
2011-07-28 19:17 ` Wolfgang Denk
2011-07-19 20:41 ` [U-Boot] [PATCH 2/3] mkconfig: create CONFIG_ defines without relying on GNU extensions Jeroen Hofstee
2011-07-19 21:03 ` Mike Frysinger
2011-07-19 21:28 ` Jeroen Hofstee
2011-07-19 21:38 ` Mike Frysinger
2011-07-19 22:05 ` Jeroen Hofstee
2011-07-19 22:57 ` Marek Vasut
2011-07-19 23:03 ` Mike Frysinger
2011-07-19 23:09 ` Jeroen Hofstee
2011-07-19 20:41 ` [U-Boot] [PATCH 3/3] rules.mk: replace GNU specific \w with POSIX equivalant Jeroen Hofstee
2011-07-28 19:18 ` Wolfgang Denk
2011-07-20 18:38 ` [U-Boot] [PATCH v2 0/3] improve build for UNIX like non GNU platforms Jeroen Hofstee
2011-07-20 18:38 ` [U-Boot] [PATCH v2 3/3] mkconfig: also create CONFIG defines with BSD sed Jeroen Hofstee
2011-07-20 20:08 ` Mike Frysinger
2011-07-28 19:18 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox