Skip to content

Commit e767a8b

Browse files
committed
bricks: drop main.py from firmware.zip
In the v2.x firmware zip file format, we dropped support for including a main.py file, so we no longer need to include this. This was actually causing make to fail on a clean build since we are no longer generating the main.py file (since 11d92d0).
1 parent ee03246 commit e767a8b

File tree

6 files changed

+0
-9
lines changed

6 files changed

+0
-9
lines changed

bricks/_common_stm32/make.mk

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -398,10 +398,6 @@ ZIP_FILES := \
398398
$(BUILD)/firmware.metadata.json \
399399
ReadMe_OSS.txt \
400400

401-
ifeq ($(PB_FW_ZIP_INCLUDE_MAIN_MPY),1)
402-
ZIP_FILES += main.py
403-
endif
404-
405401
$(BUILD)/firmware.zip: $(ZIP_FILES)
406402
$(ECHO) "ZIP creating firmware package"
407403
$(Q)$(ZIP) -j $@ $^

bricks/cityhub/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@ PB_CMSIS_MCU = STM32F030xC
77
PB_MCU_EXT_OSC_HZ = 0 # uses internal oscillator
88
PB_USE_HAL = 1
99
PB_LIB_BLE5STACK = 1
10-
PB_FW_ZIP_INCLUDE_MAIN_MPY = 1
1110

1211
include ../_common_stm32/make.mk

bricks/essentialhub/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,5 @@ PB_LIB_STM32_USB_DEVICE = 1
1313
TEXT0_ADDR = 0x8008000
1414
DFU_VID = 0x0694
1515
DFU_PID = 0x000C
16-
PB_FW_ZIP_INCLUDE_MAIN_MPY = 0
1716

1817
include ../_common_stm32/make.mk

bricks/movehub/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@ PB_CMSIS_MCU = STM32F070xB
77
PB_MCU_EXT_OSC_HZ = 0 # uses internal oscillator
88
PB_USE_HAL = 1
99
PB_LIB_BLUENRG = 1
10-
PB_FW_ZIP_INCLUDE_MAIN_MPY = 1
1110

1211
include ../_common_stm32/make.mk

bricks/primehub/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,5 @@ PB_LIB_STM32_USB_DEVICE = 1
1313
TEXT0_ADDR = 0x8008000
1414
DFU_VID = 0x0694
1515
DFU_PID = 0x0008
16-
PB_FW_ZIP_INCLUDE_MAIN_MPY = 0
1716

1817
include ../_common_stm32/make.mk

bricks/technichub/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@ PB_MCU_EXT_OSC_HZ = 8000000
88
PB_USE_HAL = 1
99
PB_LIB_BLE5STACK = 1
1010
PB_USE_LSM6DS3TR_C = 1
11-
PB_FW_ZIP_INCLUDE_MAIN_MPY = 1
1211

1312
include ../_common_stm32/make.mk

0 commit comments

Comments
 (0)