]> rtime.felk.cvut.cz Git - linux-conf-perf.git/commitdiff
Fix error in initialize script and dedicate config for .config file
authorKarel Kočí <cynerd@email.cz>
Sun, 19 Apr 2015 09:26:10 +0000 (11:26 +0200)
committerKarel Kočí <cynerd@email.cz>
Sun, 19 Apr 2015 09:26:10 +0000 (11:26 +0200)
conf.py
scripts/initialize.py

diff --git a/conf.py b/conf.py
index 495b582e050c372aad9ccd9f6df83c28b2b56f5d..0343e6b93e6bb31988dc201eebd60c1996523b05 100644 (file)
--- a/conf.py
+++ b/conf.py
@@ -20,6 +20,7 @@ linux_make_args = ['-j8']
 # Path settings
 linux_sources = pf('linux')
 linux_kconfig_head = 'Kconfig'
+linux_dot_config = linux_sources + '/.config'
 
 build_folder = pf('build/')
 phase_file = build_folder + '/phase'
index 191d8d1f8be56ae36497c94a5573d8184d273e7f..aca447d617c32c88f7e6a8b321917680b215a728 100644 (file)
@@ -34,11 +34,11 @@ def gen_requred():
 
        try:
                os.remove(conf.required_file)
-               os.remove(conf.dot_config_file)
+               os.remove(conf.dot_config_fragment_file)
        except OSError:
                pass
 
-       shutil.copy(conf.linux_sources + '/.config', conf.dot_config_back_file)
+       shutil.copy(conf.linux_dot_config, conf.dot_config_back_file)
 
        with open(conf.linux_sources + '/.config', 'r') as f:
                with open(conf.required_file, 'w') as freq: