From 6b1e2e4c741321047af1cad95ac155f30f1e5550 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 13 May 2015 18:00:57 +0200 Subject: Fix ARCH env variable --- scripts/confmk.py | 2 +- scripts/solution.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts') 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=':') -- cgit v1.2.3