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-19 21:30:37 +0000 |
commit | 7778b9851758f4f782cb5f5d5fb36e68aed3b275 (patch) | |
tree | 24ebbaf1e62f2711f0d644e96685e5eedb3a5233 /scripts/lib/wic | |
parent | 1cf3f0685b42ce494d7b2b327d54c9652a6de42d (diff) | |
download | openembedded-core-7778b9851758f4f782cb5f5d5fb36e68aed3b275.tar.gz openembedded-core-7778b9851758f4f782cb5f5d5fb36e68aed3b275.tar.bz2 openembedded-core-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>
Diffstat (limited to 'scripts/lib/wic')
-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): 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: |