diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-02-11 15:59:06 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-02-11 16:00:34 +0100 |
commit | 6656c5ffe3278d6ee83b7555bb8deb8ba1cd755f (patch) | |
tree | b8144a333a79c1076f250c996ce7b67363fe0874 | |
parent | 0aae1dc98cf1b0c858e630448a1ec59d69bcec9d (diff) | |
download | barebox-6656c5ffe3278d6ee83b7555bb8deb8ba1cd755f.tar.gz barebox-6656c5ffe3278d6ee83b7555bb8deb8ba1cd755f.tar.xz |
blspec: ignore lines beginning with '#'
According to the bootloader spec these should be treated as comments.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | common/blspec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/blspec.c b/common/blspec.c index 0f806cac7a..18005569ff 100644 --- a/common/blspec.c +++ b/common/blspec.c @@ -86,6 +86,9 @@ static struct blspec_entry *blspec_entry_open(struct blspec *blspec, next++; } + if (*line == '#') + continue; + name = line; end = name; |