[U-Boot] [PATCH 2/3] mkconfig: create CONFIG_ defines without relying on GNU extensions

Mike Frysinger vapier at gentoo.org
Wed Jul 20 01:03:02 CEST 2011


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


More information about the U-Boot mailing list