Skip to content
Snippets Groups Projects
Commit f3b1a933 authored by danicampora's avatar danicampora
Browse files

cc3200: Actually allow to specify a custom build directory.

parent a0fb7a76
No related branches found
No related tags found
No related merge requests found
...@@ -239,7 +239,7 @@ $(BUILD)/application.bin: $(BUILD)/application.axf ...@@ -239,7 +239,7 @@ $(BUILD)/application.bin: $(BUILD)/application.axf
$(BUILD)/mcuimg.bin: $(BUILD)/application.bin $(BUILD)/mcuimg.bin: $(BUILD)/application.bin
$(ECHO) "Create $@" $(ECHO) "Create $@"
$(Q)$(SHELL) $(APP_SIGN) $(BOARD) $(BTYPE) $(Q)$(SHELL) $(APP_SIGN) $(BUILD)
MAKE_PINS = boards/make-pins.py MAKE_PINS = boards/make-pins.py
BOARD_PINS = boards/$(BOARD)/pins.csv BOARD_PINS = boards/$(BOARD)/pins.csv
......
#!/bin/bash #!/bin/bash
if [ "$#" -ne 2 ]; then if [ "$#" -ne 1 ]; then
echo "Usage: appsign.sh *board type* *build type*" echo "Usage: appsign.sh *build dir*"
exit 1 exit 1
fi fi
BOARD=$1
BTYPE=$2
# Build location # Build location
# Based on build type and board type BUILD=$1
BUILD=build/${BOARD}/${BTYPE}
# Generate the MD5 hash # Generate the MD5 hash
echo -n `md5sum --binary $BUILD/application.bin | awk '{ print $1 }'` > __md5hash.bin echo -n `md5sum --binary $BUILD/application.bin | awk '{ print $1 }'` > __md5hash.bin
......
#!/bin/bash #!/bin/bash
if [ "$#" -ne 2 ]; then if [ "$#" -ne 1 ]; then
echo "Usage: bootgen.sh *board type* *build type*" echo "Usage: bootgen.sh *build dir*"
exit 1 exit 1
fi fi
BOARD=$1 BUILD=$1
BTYPE=$2
# Re-locator Path # Re-locator Path
RELOCATOR=bootmgr/relocator RELOCATOR=bootmgr/relocator
# Boot Manager Path # Build location
# First parameter passed is the board type BOOTMGR=${BUILD}
BOOTMGR=bootmgr/build/${BOARD}/${BTYPE}
# Check for re-locator binary # Check for re-locator binary
if [ ! -f $RELOCATOR/relocator.bin ]; then if [ ! -f $RELOCATOR/relocator.bin ]; then
......
...@@ -124,7 +124,7 @@ $(BUILD)/bootmgr.bin: $(BUILD)/bootmgr.axf ...@@ -124,7 +124,7 @@ $(BUILD)/bootmgr.bin: $(BUILD)/bootmgr.axf
$(BUILD)/bootloader.bin: $(BUILD)/bootmgr.bin $(BUILD)/bootloader.bin: $(BUILD)/bootmgr.bin
$(ECHO) "Create $@" $(ECHO) "Create $@"
$(Q)$(SHELL) $(BOOT_GEN) $(BOARD) $(BTYPE) $(Q)$(SHELL) $(BOOT_GEN) $(BUILD)
# Create an empty "qstrdefs.generated.h" needed by py/mkrules.mk # Create an empty "qstrdefs.generated.h" needed by py/mkrules.mk
$(HEADER_BUILD)/qstrdefs.generated.h: | $(HEADER_BUILD) $(HEADER_BUILD)/qstrdefs.generated.h: | $(HEADER_BUILD)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment