Skip to content

Commit

Permalink
use python2 explicitly as python3 is default python now
Browse files Browse the repository at this point in the history
  • Loading branch information
bugobliterator committed Jan 14, 2020
1 parent 426e910 commit 28feb6b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/app_descriptor/module.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ APP_DESCRIPTOR_MODULE_DIR := $(patsubst %/,%,$(dir $(lastword $(MAKEFILE_LIST)))
.PHONY: INSERT_CRC
POST_MAKE_ALL_RULE_HOOK: $(BUILDDIR)/$(PROJECT)-crc.bin
$(BUILDDIR)/$(PROJECT)-crc.bin: $(BUILDDIR)/$(PROJECT).bin
python $(APP_DESCRIPTOR_MODULE_DIR)/crc_binary.py $< $@
python2 $(APP_DESCRIPTOR_MODULE_DIR)/crc_binary.py $< $@

ifneq (,$(wildcard $(BOARD_DIR)/bootloader.bin))
POST_MAKE_ALL_RULE_HOOK: $(BUILDDIR)/$(PROJECT)-combined.bin
Expand Down
2 changes: 1 addition & 1 deletion modules/gps/module.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ INCDIR += $(BUILDDIR)/ubx_msgs/include

$(BUILDDIR)/ubx_msgs.mk: $(GPS_MODULE_DIR)/ubx_parser
rm -rf $(BUILDDIR)/ubx_msgs
python $(GPS_MODULE_DIR)/ubx_parser/ubx_pdf_csv_parser.py $(addprefix --build=,$(UBX_MESSAGES_ENABLED)) $(BUILDDIR)/ubx_msgs
python2 $(GPS_MODULE_DIR)/ubx_parser/ubx_pdf_csv_parser.py $(addprefix --build=,$(UBX_MESSAGES_ENABLED)) $(BUILDDIR)/ubx_msgs
find $(BUILDDIR)/ubx_msgs/src -name "*.c" | xargs echo CSRC += > $(BUILDDIR)/ubx_msgs.mk

ifneq ($(MAKECMDGOALS),clean)
Expand Down
2 changes: 1 addition & 1 deletion modules/uavcan/module.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ INCDIR += $(BUILDDIR)/dsdlc/include

$(BUILDDIR)/dsdlc.mk: $(foreach dsdl_dir,$(wildcard $(DSDL_NAMESPACE_DIRS)),$(shell find $(dsdl_dir)))
rm -rf $(BUILDDIR)/dsdlc
python $(UAVCAN_MODULE_DIR)/canard_dsdlc/canard_dsdlc.py $(addprefix --build=,$(MESSAGES_ENABLED)) $(DSDL_NAMESPACE_DIRS) $(BUILDDIR)/dsdlc
python2 $(UAVCAN_MODULE_DIR)/canard_dsdlc/canard_dsdlc.py $(addprefix --build=,$(MESSAGES_ENABLED)) $(DSDL_NAMESPACE_DIRS) $(BUILDDIR)/dsdlc
find $(BUILDDIR)/dsdlc/src -name "*.c" | xargs echo CSRC += > $(BUILDDIR)/dsdlc.mk

ifneq ($(MAKECMDGOALS),clean)
Expand Down

0 comments on commit 28feb6b

Please sign in to comment.