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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
---
 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


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux