diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-01-19 18:51:03 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-20 17:07:13 +0000 |
commit | 43b4058508980d2c46bbcf591d35afdaf92adb7a (patch) | |
tree | 3bdcb1c624570a4bdd2fda1731c49510481c1847 /scripts/lib/wic/ksparser.py | |
parent | 386064042d8980d03a38d24c49493942cfb51efb (diff) | |
download | poky-43b4058508980d2c46bbcf591d35afdaf92adb7a.tar.gz |
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.
(From OE-Core rev: 7778b9851758f4f782cb5f5d5fb36e68aed3b275)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/ksparser.py')
-rw-r--r-- | scripts/lib/wic/ksparser.py | 3 |
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): | |||
115 | bootloader.add_argument('--timeout', type=int) | 115 | bootloader.add_argument('--timeout', type=int) |
116 | bootloader.add_argument('--source') | 116 | bootloader.add_argument('--source') |
117 | 117 | ||
118 | self._parse(parser, confpath) | ||
119 | |||
120 | def _parse(self, parser, confpath): | ||
118 | with open(confpath) as conf: | 121 | with open(confpath) as conf: |
119 | lineno = 0 | 122 | lineno = 0 |
120 | for line in conf: | 123 | for line in conf: |