Skip to content

Commit

Permalink
cc3200/Makefile: Build firmware.zip.
Browse files Browse the repository at this point in the history
This allows the cc3200 port to be build with the standard autobuild script
rather than the custom build-cc3200-latest.sh (which is now removed).

This also fixes the path inside the zip file (by using the `-j` flag to
zip).

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
  • Loading branch information
jimmo committed Aug 24, 2023
1 parent 326dfd2 commit bc1af5a
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 34 deletions.
2 changes: 2 additions & 0 deletions ports/cc3200/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ endif

# Make 'release' the default build type
BTYPE ?= release
# Make the 'application' by default ('bootloader' can be built explicitly)
BTARGET ?= application

# Port for flashing firmware
PORT ?= /dev/ttyUSB1
Expand Down
6 changes: 5 additions & 1 deletion ports/cc3200/application.mk
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ WIPY_IP ?= '192.168.1.1'
WIPY_USER ?= 'micro'
WIPY_PWD ?= 'python'

all: $(BUILD)/mcuimg.bin
all: $(BUILD)/firmware.zip

.PHONY: deploy-ota

Expand All @@ -219,6 +219,10 @@ $(BUILD)/mcuimg.bin: $(BUILD)/application.bin
$(ECHO) "Create $@"
$(Q)$(SHELL) $(APP_SIGN) $(BUILD)

$(BUILD)/firmware.zip: $(BUILD)/mcuimg.bin
$(ECHO) "Create $@"
$(Q)$(ZIP) -j $@ $<

MAKE_PINS = boards/make-pins.py
BOARD_PINS = boards/$(BOARD)/pins.csv
AF_FILE = boards/cc3200_af.csv
Expand Down
1 change: 1 addition & 0 deletions py/mkenv.mk
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ SED = sed
CAT = cat
TOUCH = touch
PYTHON = python3
ZIP = zip

AS = $(CROSS_COMPILE)as
CC = $(CROSS_COMPILE)gcc
Expand Down
2 changes: 1 addition & 1 deletion tools/autobuild/autobuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ FW_TAG="-$FW_DATE-unstable-$FW_GIT"

# build new firmware
cd ports/cc3200
${AUTODIR}/build-cc3200-latest.sh ${FW_TAG} ${LOCAL_FIRMWARE}
build_cc3200_boards ${FW_TAG} ${LOCAL_FIRMWARE}
cd ../esp8266
build_esp8266_boards ${FW_TAG} ${LOCAL_FIRMWARE}
cd ../esp32
Expand Down
4 changes: 4 additions & 0 deletions tools/autobuild/build-boards.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ function build_boards {
done
}

function build_cc3200_boards {
build_boards hal/cc3200_hal.c $1 $2 zip
}

function build_esp32_boards {
build_boards modesp32.c $1 $2 bin elf map uf2 app-bin
}
Expand Down
32 changes: 0 additions & 32 deletions tools/autobuild/build-cc3200-latest.sh

This file was deleted.

0 comments on commit bc1af5a

Please sign in to comment.