diff --git a/cc3200/application.mk b/cc3200/application.mk index 9d1db613425ed7055d1c607fd19b0943f232ba10..600d21d5d4aef6cae7a147d6d7d527ff5a2fa5a8 100644 --- a/cc3200/application.mk +++ b/cc3200/application.mk @@ -239,7 +239,7 @@ $(BUILD)/application.bin: $(BUILD)/application.axf $(BUILD)/mcuimg.bin: $(BUILD)/application.bin $(ECHO) "Create $@" - $(Q)$(SHELL) $(APP_SIGN) $(BOARD) $(BTYPE) + $(Q)$(SHELL) $(APP_SIGN) $(BUILD) MAKE_PINS = boards/make-pins.py BOARD_PINS = boards/$(BOARD)/pins.csv diff --git a/cc3200/appsign.sh b/cc3200/appsign.sh index 39db708b550be7eca2a79d82da829cee3a4030f7..3906433e8db3d0caa7f8f738e04b62338c9fbfcc 100644 --- a/cc3200/appsign.sh +++ b/cc3200/appsign.sh @@ -1,16 +1,12 @@ #!/bin/bash -if [ "$#" -ne 2 ]; then - echo "Usage: appsign.sh *board type* *build type*" +if [ "$#" -ne 1 ]; then + echo "Usage: appsign.sh *build dir*" exit 1 fi -BOARD=$1 -BTYPE=$2 - # Build location -# Based on build type and board type -BUILD=build/${BOARD}/${BTYPE} +BUILD=$1 # Generate the MD5 hash echo -n `md5sum --binary $BUILD/application.bin | awk '{ print $1 }'` > __md5hash.bin diff --git a/cc3200/bootmgr/bootgen.sh b/cc3200/bootmgr/bootgen.sh index cab5d20873f725783f8422b7f00b7715358d231f..f4bf32540c0663c26d92386859a85966c0a110f4 100644 --- a/cc3200/bootmgr/bootgen.sh +++ b/cc3200/bootmgr/bootgen.sh @@ -1,19 +1,17 @@ #!/bin/bash -if [ "$#" -ne 2 ]; then - echo "Usage: bootgen.sh *board type* *build type*" +if [ "$#" -ne 1 ]; then + echo "Usage: bootgen.sh *build dir*" exit 1 fi -BOARD=$1 -BTYPE=$2 +BUILD=$1 # Re-locator Path RELOCATOR=bootmgr/relocator -# Boot Manager Path -# First parameter passed is the board type -BOOTMGR=bootmgr/build/${BOARD}/${BTYPE} +# Build location +BOOTMGR=${BUILD} # Check for re-locator binary if [ ! -f $RELOCATOR/relocator.bin ]; then diff --git a/cc3200/bootmgr/bootloader.mk b/cc3200/bootmgr/bootloader.mk index 3105d6666ce3057874b3c45d5e2b89047c188ac6..a97f888ed9bbfc88816e0f9980aa80bc67e5e3fa 100644 --- a/cc3200/bootmgr/bootloader.mk +++ b/cc3200/bootmgr/bootloader.mk @@ -124,7 +124,7 @@ $(BUILD)/bootmgr.bin: $(BUILD)/bootmgr.axf $(BUILD)/bootloader.bin: $(BUILD)/bootmgr.bin $(ECHO) "Create $@" - $(Q)$(SHELL) $(BOOT_GEN) $(BOARD) $(BTYPE) + $(Q)$(SHELL) $(BOOT_GEN) $(BUILD) # Create an empty "qstrdefs.generated.h" needed by py/mkrules.mk $(HEADER_BUILD)/qstrdefs.generated.h: | $(HEADER_BUILD)