From bc49c0d2c5d6b5b76a718472e8cf83c3824ceea7 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 5 Feb 2018 05:22:31 +1100 Subject: [PATCH] HAL_ChibiOS: make hwdef.h the same on python2 and python3 and output to /tmp by default to prevent accidental use of old hwdef.h in the build --- libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py index 1f3ea5427b..34f8e1e294 100755 --- a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py +++ b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py @@ -660,7 +660,7 @@ def write_GPIO_config(f): # and write #defines for use by config code f.write('}\n\n') f.write('// full pin define list\n') - for l in bylabel: + for l in sorted(bylabel.keys()): p = bylabel[l] label = p.label label = label.replace('-', '_') @@ -886,7 +886,7 @@ process_file(args.hwdef) outdir = args.outdir if outdir is None: - outdir = '.' + outdir = '/tmp' if not "MCU" in config: error("Missing MCU type in config")