Skip to content

Commit b81978a

Browse files
committed
bricks/ev3: make make_bootable_image.py executable
This script is meant to be run as an executable. Not all systems will have python, so we should explicitly use python3.
1 parent a556fdb commit b81978a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

bricks/_common/arm_none_eabi.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ UBOOT_FILE = $(PBTOP)/bricks/ev3/u-boot.bin
632632
MAKE_BOOTABLE_IMAGE = $(PBTOP)/bricks/ev3/make_bootable_image.py
633633
# For EV3, merge firmware blob with u-boot to create a bootable image.
634634
$(BUILD)/firmware-base.bin: $(BUILD)/uImage
635-
python $(MAKE_BOOTABLE_IMAGE) $(UBOOT_FILE) $(BUILD)/uImage $(BUILD)/firmware-base.bin
635+
$(Q)$(MAKE_BOOTABLE_IMAGE) $(UBOOT_FILE) $(BUILD)/uImage $(BUILD)/firmware-base.bin
636636
else
637637
# For embeded systems, the firmware is just the base file.
638638
$(BUILD)/firmware-base.bin: $(BUILD)/firmware-obj.bin

bricks/ev3/make_bootable_image.py

100644100755
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#!/usr/bin/env python3
2+
# SPDX-License-Identifier: MIT
3+
14
import argparse
25

36
# Expected layout of the firmware image:

0 commit comments

Comments
 (0)