message: Added python version check to makefile
diff: @@ -9,6 +9,12 @@ PROGRAMMER_CMD=$(if $(value PROGRAMMER),-c 'hla_serial $(PROGRAMMER)',)
  include tup.config # source build configuration to get CONFIG_BOARD_VERSION
  +ifeq ($(shell python -c "import sys; print(sys.version_info.major)"), 3)
  + PY_CMD := python -B
  +else
  + PY_CMD := python3 -B
  +endif
  +
  ifneq (,$(findstring v3.,$(CONFIG_BOARD_VERSION)))
  OPENOCD := openocd -f interface/stlink.cfg $(PROGRAMMER_CMD) -f target/stm32f4x.cfg -c init
  GDB := arm-none-eabi-gdb --ex 'target extended-remote | openocd -f "interface/stlink-v2.cfg" -f "target/stm32f4x.cfg" -c "gdb_port pipe; log_output openocd.log"' --ex 'monitor reset halt'
  @@ -23,7 +29,7 @@ $(info board version: $(CONFIG_BOARD_VERSION))
  all:
  @tup --quiet --no-environ-check
  - @python interface_generator_stub.py --definitions odrive-interface.yaml --template ../tools/enums_template.j2 --output ../tools/odrive/enums.py
  + @$(PY_CMD) interface_generator_stub.py --definitions odrive-interface.yaml --template ../tools/enums_template.j2 --output ../tools/odrive/enums.py
  clean:
  -rm -fR .dep $(BUILD_DIR)
  