[PATCH 2/2] blspec: ignore lines beginning with '#'

Sascha Hauer s.hauer at pengutronix.de
Thu Feb 11 07:00:40 PST 2016


According to the bootloader spec these should be treated as comments.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 common/blspec.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/common/blspec.c b/common/blspec.c
index 0f806ca..1800556 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;
 
-- 
2.7.0.rc3




More information about the barebox mailing list