Skip to content

Commit f3b1a93

Browse files
author
danicampora
committed
cc3200: Actually allow to specify a custom build directory.
1 parent a0fb7a7 commit f3b1a93

File tree

4 files changed

+10
-16
lines changed

4 files changed

+10
-16
lines changed

cc3200/application.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ $(BUILD)/application.bin: $(BUILD)/application.axf
239239

240240
$(BUILD)/mcuimg.bin: $(BUILD)/application.bin
241241
$(ECHO) "Create $@"
242-
$(Q)$(SHELL) $(APP_SIGN) $(BOARD) $(BTYPE)
242+
$(Q)$(SHELL) $(APP_SIGN) $(BUILD)
243243

244244
MAKE_PINS = boards/make-pins.py
245245
BOARD_PINS = boards/$(BOARD)/pins.csv

cc3200/appsign.sh

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
#!/bin/bash
22

3-
if [ "$#" -ne 2 ]; then
4-
echo "Usage: appsign.sh *board type* *build type*"
3+
if [ "$#" -ne 1 ]; then
4+
echo "Usage: appsign.sh *build dir*"
55
exit 1
66
fi
77

8-
BOARD=$1
9-
BTYPE=$2
10-
118
# Build location
12-
# Based on build type and board type
13-
BUILD=build/${BOARD}/${BTYPE}
9+
BUILD=$1
1410

1511
# Generate the MD5 hash
1612
echo -n `md5sum --binary $BUILD/application.bin | awk '{ print $1 }'` > __md5hash.bin

cc3200/bootmgr/bootgen.sh

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
#!/bin/bash
22

3-
if [ "$#" -ne 2 ]; then
4-
echo "Usage: bootgen.sh *board type* *build type*"
3+
if [ "$#" -ne 1 ]; then
4+
echo "Usage: bootgen.sh *build dir*"
55
exit 1
66
fi
77

8-
BOARD=$1
9-
BTYPE=$2
8+
BUILD=$1
109

1110
# Re-locator Path
1211
RELOCATOR=bootmgr/relocator
1312

14-
# Boot Manager Path
15-
# First parameter passed is the board type
16-
BOOTMGR=bootmgr/build/${BOARD}/${BTYPE}
13+
# Build location
14+
BOOTMGR=${BUILD}
1715

1816
# Check for re-locator binary
1917
if [ ! -f $RELOCATOR/relocator.bin ]; then

cc3200/bootmgr/bootloader.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ $(BUILD)/bootmgr.bin: $(BUILD)/bootmgr.axf
124124

125125
$(BUILD)/bootloader.bin: $(BUILD)/bootmgr.bin
126126
$(ECHO) "Create $@"
127-
$(Q)$(SHELL) $(BOOT_GEN) $(BOARD) $(BTYPE)
127+
$(Q)$(SHELL) $(BOOT_GEN) $(BUILD)
128128

129129
# Create an empty "qstrdefs.generated.h" needed by py/mkrules.mk
130130
$(HEADER_BUILD)/qstrdefs.generated.h: | $(HEADER_BUILD)

0 commit comments

Comments
 (0)