From: Karel Kočí Date: Sun, 19 Apr 2015 09:26:10 +0000 (+0200) Subject: Fix error in initialize script and dedicate config for .config file X-Git-Tag: v201509~263 X-Git-Url: https://rtime.felk.cvut.cz/gitweb/linux-conf-perf.git/commitdiff_plain/7a4fc2b2d97d5c9bb9a9e22dc633def47f4c1385 Fix error in initialize script and dedicate config for .config file --- diff --git a/conf.py b/conf.py index 495b582..0343e6b 100644 --- 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' diff --git a/scripts/initialize.py b/scripts/initialize.py index 191d8d1..aca447d 100644 --- a/scripts/initialize.py +++ b/scripts/initialize.py @@ -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: