From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mail.openembedded.org (Postfix) with ESMTP id 22DE2731A3 for ; Tue, 19 Jan 2016 18:47:58 +0000 (UTC) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP; 19 Jan 2016 10:47:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,318,1449561600"; d="scan'208";a="896708411" Received: from linux.intel.com ([10.23.219.25]) by fmsmga002.fm.intel.com with ESMTP; 19 Jan 2016 10:48:00 -0800 Received: from vmed.fi.intel.com (vmed.fi.intel.com [10.237.72.51]) by linux.intel.com (Postfix) with ESMTP id EF4E32C8001 for ; Tue, 19 Jan 2016 11:35:54 -0800 (PST) From: Ed Bartosh To: openembedded-core@lists.openembedded.org Date: Tue, 19 Jan 2016 18:51:03 +0200 Message-Id: <829f9cfed96d41002dbae6823515be03c26ff089.1453222163.git.ed.bartosh@linux.intel.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: Subject: [wic][PATCH v2 1/9] wic: move wks parsing code to KickStart._parse X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jan 2016 18:47:59 -0000 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 --- scripts/lib/wic/ksparser.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/lib/wic/ksparser.py b/scripts/lib/wic/ksparser.py index 7dbe052..e366f61 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: -- 2.1.4