aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-07-17 14:03:08 +0200
committerKarel Kočí <cynerd@email.cz>2015-07-17 14:03:08 +0200
commita50d00aa9b316fcc773849ca78943ccb1c95485e (patch)
treeafe4a88eb7893aa0ecdab5ec7b090bdac31c2ff8
parent2640d58ee088d4bcfedfd9069292dc1af9cad7a2 (diff)
downloadlinux-conf-perf-a50d00aa9b316fcc773849ca78943ccb1c95485e.tar.gz
linux-conf-perf-a50d00aa9b316fcc773849ca78943ccb1c95485e.tar.bz2
linux-conf-perf-a50d00aa9b316fcc773849ca78943ccb1c95485e.zip
Fix gen_required config source check
-rwxr-xr-xscripts/initialize.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/initialize.py b/scripts/initialize.py
index 2c2ca59..5171320 100755
--- a/scripts/initialize.py
+++ b/scripts/initialize.py
@@ -59,15 +59,15 @@ def parse_kconfig():
def gen_requred():
- "Generates required depenpency from .config file in linux source tree."
+ "Generates required depenpency from dot_config file."
print('Generating required configuration...')
- if not os.path.isfile(sf(conf.linux_dot_config)):
- raise exceptions.MissingFile(sf(conf.linux_dot_config),
- 'Generate initial configuration. Execute make defconfig in linux folder. Or use make menuconfig and change configuration.')
+ if not os.path.isfile(sf(conf.dot_config)):
+ raise exceptions.MissingFile(sf(conf.dot_config),
+ 'Generate fixed configuration.')
utils.build_symbol_map() # Ensure smap existence
- srmap = {value:key for key, value in utils.smap.items()}
+ srmap = {value:key for key, value in utils.smap.items()} # swap dictionary
shutil.copy(sf(conf.dot_config), sf(conf.dot_config_back_file))
@@ -78,8 +78,8 @@ def gen_requred():
continue
indx = line.index('=')
if (line[indx + 1] == 'y'):
- if line[7:indx] == "MODULES": # skip if modules set
- raise exceptions.ConfigurationError("Initial kernel configuration must have MODULES disabled.")
+ if line[7:indx] == "MODULES": # exception if modules set
+ raise exceptions.ConfigurationError("Fixed kernel configuration must have MODULES disabled.")
freq.write(str(srmap[line[7:indx]]) + "\n")
elif (line[indx + 1] == 'n' or line[indx + 1] == 'm'):
freq.write("-" + str(srmap[line[7:indx]]) + "\n")