From 57bdc48e6d7da09fb5501d8c091c00d52b603bc8 Mon Sep 17 00:00:00 2001 From: bsongis Date: Fri, 27 Jan 2012 08:02:14 +0000 Subject: [PATCH] Small bug in compile.py script, templates were always YES --- util/compile.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/util/compile.py b/util/compile.py index 72e338f2f..d24112f49 100644 --- a/util/compile.py +++ b/util/compile.py @@ -3,16 +3,16 @@ import os, sys, shutil from subprocess import call -options_stock = [("frsky", "EXT=FRSKY"), - ("heli", "HELI=YES"), - ("templates", "TEMPLATES=YES"), - ("speaker", "BEEPER=SPEAKER"), -# ("DSM2", "DSM2=PPM"), -# ("PXX", "PXX=YES"), +options_stock = [("frsky", "EXT=STD", "EXT=FRSKY"), + ("heli", "HELI=NO", "HELI=YES"), + ("templates", "TEMPLATES=NO", "TEMPLATES=YES"), + ("speaker", "BEEPER=BUZZER", "BEEPER=SPEAKER"), +# ("DSM2", "DSM2="NO", "DSM2=PPM"), +# ("PXX", "PXX=NO", "PXX=YES"), ] -options_v4 = [("heli", "HELI=YES"), - ("templates", "TEMPLATES=YES"), +options_v4 = [("heli", "HELI=NO", "HELI=YES"), + ("templates", "TEMPLATES=NO", "TEMPLATES=YES"), ] languages = ["en", "fr"] @@ -30,6 +30,8 @@ def generate(hex, arg, options): for i, option in enumerate(options): if states[len(options) - 1 - i]: hex_file += "-" + option[0] + make_args.append(option[2]) + else: make_args.append(option[1]) hex_file += "-" + language make_args.append("TRANSLATIONS=" + language.upper())