From dc1d4a961622d209d4b99273707accd5250a02f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 14 May 2015 22:41:26 +0200 Subject: Ezecute initialize parse_kconfig only in case of missing files --- scripts/initialize.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/initialize.py b/scripts/initialize.py index c77803c..e38e2b8 100755 --- a/scripts/initialize.py +++ b/scripts/initialize.py @@ -43,6 +43,11 @@ def base(): def parse_kconfig(): "Execute parse_kconfig in linux_sources directory." + if os.path.isfile(sf(conf.symbol_map_file)) and \ + os.path.isfile(sf(conf.rules_file)) and \ + os.path.isfile(sf(conf.variable_count_file)): + print('Warning: parse_kconfig not executed. Files already exists.') + return print('Executing parse_kconfig...') env = dict(os.environ) wd = os.getcwd() -- cgit v1.2.3