aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-03-26 16:28:09 +0100
committerKarel Kočí <cynerd@email.cz>2015-03-26 16:28:09 +0100
commiteec9a1b4f7c9b96ba6ddd2004750b072d651a653 (patch)
tree4410ae3f869a36d1a1b39e05413937185fd17572
parent146eba198c4405de81fef4eb083cbce9f519ef22 (diff)
downloadlinux-conf-perf-eec9a1b4f7c9b96ba6ddd2004750b072d651a653.tar.gz
linux-conf-perf-eec9a1b4f7c9b96ba6ddd2004750b072d651a653.tar.bz2
linux-conf-perf-eec9a1b4f7c9b96ba6ddd2004750b072d651a653.zip
Add check for existence of .config
-rw-r--r--scripts/initialize.py5
1 files changed, 5 insertions, 0 deletions
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()}