summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorVasil Zlatanov <v@skozl.com>2017-05-06 19:47:07 +0100
committerVasil Zlatanov <v@skozl.com>2017-05-06 19:47:07 +0100
commit8bd33441df8ecb4108e69362665f22a2ccf470e8 (patch)
tree3141cfedc60feae9d327d0d1ad2a37eee80c1247 /Makefile
parent523f047b1b3c42b0aa40305291ca5d29a1b543f5 (diff)
downloade2-switch-8bd33441df8ecb4108e69362665f22a2ccf470e8.tar.gz
e2-switch-8bd33441df8ecb4108e69362665f22a2ccf470e8.tar.bz2
e2-switch-8bd33441df8ecb4108e69362665f22a2ccf470e8.zip
add upload directive
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 94542db..9de49eb 100644
--- a/Makefile
+++ b/Makefile
@@ -146,6 +146,10 @@ clean:
$(RM) $(TARGET).$(TARGET_EXT) $(TARGET).bin $(TARGET).map $(OBJ_FOLDER)*.* $(OBJ_FOLDER)
@echo ' '
+upload: clean all
+ @echo 'Uploading to board!'
+ mv ./build/mbed.bin /run/media/vsz/MBED/mbed.bin
+
print_info:
@echo 'Printing size'
arm-none-eabi-size --totals $(OBJ_FOLDER)$(TARGET).$(TARGET_EXT)