summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-01-19 18:51:03 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-19 21:30:37 +0000
commit7778b9851758f4f782cb5f5d5fb36e68aed3b275 (patch)
tree24ebbaf1e62f2711f0d644e96685e5eedb3a5233
parent1cf3f0685b42ce494d7b2b327d54c9652a6de42d (diff)
downloadopenembedded-core-contrib-7778b9851758f4f782cb5f5d5fb36e68aed3b275.tar.gz
openembedded-core-contrib-7778b9851758f4f782cb5f5d5fb36e68aed3b275.tar.bz2
openembedded-core-contrib-7778b9851758f4f782cb5f5d5fb36e68aed3b275.zip
wic: move wks parsing code to KickStart._parse
This is a preparation for implementation of include statement. Parser will be called recursively to parse included .wks files, so it should be available as a method. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--scripts/lib/wic/ksparser.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/lib/wic/ksparser.py b/scripts/lib/wic/ksparser.py
index 7dbe052714..e366f61e0f 100644
--- a/scripts/lib/wic/ksparser.py
+++ b/scripts/lib/wic/ksparser.py
@@ -115,6 +115,9 @@ class KickStart(object):
bootloader.add_argument('--timeout', type=int)
bootloader.add_argument('--source')
+ self._parse(parser, confpath)
+
+ def _parse(self, parser, confpath):
with open(confpath) as conf:
lineno = 0
for line in conf: