aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-05-13 18:00:57 +0200
committerKarel Kočí <cynerd@email.cz>2015-05-13 18:00:57 +0200
commit6b1e2e4c741321047af1cad95ac155f30f1e5550 (patch)
tree3874c25b2ed53ec8ec68319aa591055be717d15d /scripts
parent0f37f87b87ef9fb4cc8665be9bc9588a39914f6b (diff)
downloadlinux-conf-perf-6b1e2e4c741321047af1cad95ac155f30f1e5550.tar.gz
linux-conf-perf-6b1e2e4c741321047af1cad95ac155f30f1e5550.tar.bz2
linux-conf-perf-6b1e2e4c741321047af1cad95ac155f30f1e5550.zip
Fix ARCH env variable
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/confmk.py2
-rw-r--r--scripts/solution.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/scripts/confmk.py b/scripts/confmk.py
index 030e764..c688ed9 100755
--- a/scripts/confmk.py
+++ b/scripts/confmk.py
@@ -11,7 +11,7 @@ def gen_confmk():
with open(conf.dot_confmk, 'w') as f:
f.write("# This file is generated. Please don't edit this file.\n")
- f.write("SRCARCH := " + conf.SRCARCH + "\n")
+ f.write("ARCH := " + conf.SRCARCH + "\n")
f.write("\n")
f.write("BUILDROOT_INITRAM := " + conf.buildroot_initram + "\n")
f.write("BUILDROOT_INITTAB_DIRECTIVE := " + conf.buildroot_inittab_directive + "\n")
diff --git a/scripts/solution.py b/scripts/solution.py
index f9f605b..1ee1664 100644
--- a/scripts/solution.py
+++ b/scripts/solution.py
@@ -101,11 +101,13 @@ def apply():
solved = set()
solution = []
+ # Load set of solved solutions
if os.path.isfile(sf(config_solved_file)):
with open(sf(conf.config_solved_file)) as f:
for ln in f:
solved.add(ln.strip())
+ # Load one solution if it is not in solved
with open(sf(conf.config_map_file)) as f:
while True:
w = f.readline().split(sep=':')