File tree Expand file tree Collapse file tree 5 files changed +26
-10
lines changed
Expand file tree Collapse file tree 5 files changed +26
-10
lines changed Original file line number Diff line number Diff line change @@ -5,16 +5,16 @@ ifeq ($(wildcard boards/$(BOARD)/.),)
55$(error Invalid BOARD specified)
66endif
77
8+ BTYPE ?= release
9+
810# If the build directory is not given, make it reflect the board name.
9- BUILD ?= build/$(BOARD )
11+ BUILD ?= build/$(BOARD ) / $( BTYPE )
1012
1113include ../py/mkenv.mk
1214-include ../../localconfig.mk
1315
1416CROSS_COMPILE ?= arm-none-eabi-
1517
16- BTYPE ?= release
17-
1818CFLAGS_CORTEX_M4 = -mthumb -mtune=cortex-m4 -march=armv7e-m -mabi=aapcs -mcpu=cortex-m4 -msoft-float -mfloat-abi=soft -fsingle-precision-constant -Wdouble-promotion
1919CFLAGS = -Wall -Wpointer-arith -Werror -ansi -std=gnu99 -nostdlib $(CFLAGS_CORTEX_M4 )
2020CFLAGS += -g -ffunction-sections -fdata-sections -fno-common -fsigned-char -mno-unaligned-access
Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ $(BUILD)/application.bin: $(BUILD)/application.axf
216216
217217$(BUILD ) /MCUIMG.BIN : $(BUILD ) /application.bin
218218 $(ECHO ) " Create $@ "
219- $(Q )$(SHELL ) $(APP_SIGN ) $(BOARD )
219+ $(Q )$(SHELL ) $(APP_SIGN ) $(BOARD ) $( BTYPE )
220220
221221MAKE_PINS = boards/make-pins.py
222222BOARD_PINS = boards/$(BOARD ) /pins.csv
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ if [ " $# " -ne 2 ]; then
4+ echo " Usage: appsign.sh *board type* *build type*"
5+ exit 1
6+ fi
7+
8+ BOARD=$1
9+ BTYPE=$2
10+
311# Build location
4- # First parameter passed is the board type
5- BUILD=build/$1
12+ # Based on build type and board type
13+ BUILD=build/${BOARD} / ${BTYPE}
614
715# Generate the MD5 hash
816echo -n ` md5sum --binary $BUILD /application.bin | awk ' { print $1 }' ` > __md5hash.bin
@@ -17,4 +25,4 @@ rm -f __md5hash.bin
1725# Remove hte unsigned binary
1826rm -f $BUILD /application.bin
1927
20- exit $RET
28+ exit $RET
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ if [ " $# " -ne 2 ]; then
4+ echo " Usage: bootgen.sh *board type* *build type*"
5+ exit 1
6+ fi
7+
8+ BOARD=$1
9+ BTYPE=$2
10+
311# Re-locator Path
412RELOCATOR=bootmgr/relocator
513
614# Boot Manager Path
715# First parameter passed is the board type
8- BOOTMGR=bootmgr/build/$1
16+ BOOTMGR=bootmgr/build/${BOARD} / ${BTYPE}
917
1018# Check for re-locator binary
1119if [ ! -f $RELOCATOR /relocator.bin ]; then
Original file line number Diff line number Diff line change 1- BUILD = bootmgr/build/$(BOARD )
1+ BUILD = bootmgr/build/$(BOARD ) / $( BTYPE )
22
33BOOT_INC = -Ibootmgr
44BOOT_INC += -Ibootmgr/sl
@@ -122,7 +122,7 @@ $(BUILD)/bootmgr.bin: $(BUILD)/bootmgr.axf
122122
123123$(BUILD ) /bootloader.bin : $(BUILD ) /bootmgr.bin
124124 $(ECHO ) " Create $@ "
125- $(Q )$(SHELL ) $(BOOT_GEN ) $(BOARD )
125+ $(Q )$(SHELL ) $(BOOT_GEN ) $(BOARD ) $( BTYPE )
126126
127127# Create an empty "qstrdefs.generated.h" needed by py/mkrules.mk
128128$(HEADER_BUILD ) /qstrdefs.generated.h : | $(HEADER_BUILD )
You can’t perform that action at this time.
0 commit comments