From eec9a1b4f7c9b96ba6ddd2004750b072d651a653 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 26 Mar 2015 16:28:09 +0100 Subject: Add check for existence of .config --- scripts/initialize.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/initialize.py b/scripts/initialize.py index 66236e5..f39f6a3 100644 --- a/scripts/initialize.py +++ b/scripts/initialize.py @@ -24,6 +24,11 @@ def kconfig_parser(): def gen_requred(): "Generates required depenpency from required file." + + if not os.path.isfile(conf.linux_sources + '/.config'): + raise MissingFile(conf.linux_sources + '/.config', + 'Generate initial configuration. Execute make defconfig in linux folder. Or use make menuconfig and change configuration.') + utils.build_symbol_map() # Ensure smap existence srmap = {value:key for key, value in utils.smap.items()} -- cgit v1.2.3