mirror of
https://github.com/stnolting/neorv32.git
synced 2025-04-23 21:57:33 -04:00
[sw/makefile] added new target ('upload') to directly upload an executable from the command line
This commit is contained in:
parent
c31cf18680
commit
56a6089980
10 changed files with 110 additions and 0 deletions
|
@ -59,6 +59,9 @@ MABI ?= -mabi=ilp32
|
|||
# User flags for additional configuration (will be added to compiler flags)
|
||||
USER_FLAGS ?=
|
||||
|
||||
# Serial port for executable upload via bootloer
|
||||
COM_PORT ?= /dev/ttyUSB0
|
||||
|
||||
# Relative or absolute path to the NEORV32 home folder
|
||||
NEORV32_HOME ?= ../..
|
||||
# *****************************************************************************
|
||||
|
@ -252,6 +255,13 @@ endif
|
|||
@echo "Toolchain check OK"
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Upload executable via serial port to bootloader
|
||||
# -----------------------------------------------------------------------------
|
||||
upload: $(APP_EXE)
|
||||
@sh $(NEORV32_EXG_PATH)/uart_upload.sh $(COM_PORT) $(APP_EXE)
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Show configuration
|
||||
# -----------------------------------------------------------------------------
|
||||
|
@ -315,6 +325,7 @@ help:
|
|||
@echo " clean - clean up project"
|
||||
@echo " clean_all - clean up project, core libraries and image generator"
|
||||
@echo " bootloader - compile, generate and install VHDL BOOTROM boot image (for bootloader only!)"
|
||||
@echo " upload - upload <neorv32_exe.bin> executable via serial port <COM_PORT> to bootloader"
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
|
|
@ -59,6 +59,9 @@ MABI ?= -mabi=ilp32
|
|||
# User flags for additional configuration (will be added to compiler flags)
|
||||
USER_FLAGS ?=
|
||||
|
||||
# Serial port for executable upload via bootloer
|
||||
COM_PORT ?= /dev/ttyUSB0
|
||||
|
||||
# Relative or absolute path to the NEORV32 home folder
|
||||
NEORV32_HOME ?= ../../..
|
||||
# *****************************************************************************
|
||||
|
@ -252,6 +255,13 @@ endif
|
|||
@echo "Toolchain check OK"
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Upload executable via serial port to bootloader
|
||||
# -----------------------------------------------------------------------------
|
||||
upload: $(APP_EXE)
|
||||
@sh $(NEORV32_EXG_PATH)/uart_upload.sh $(COM_PORT) $(APP_EXE)
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Show configuration
|
||||
# -----------------------------------------------------------------------------
|
||||
|
@ -315,6 +325,7 @@ help:
|
|||
@echo " clean - clean up project"
|
||||
@echo " clean_all - clean up project, core libraries and image generator"
|
||||
@echo " bootloader - compile, generate and install VHDL BOOTROM boot image (for bootloader only!)"
|
||||
@echo " upload - upload <neorv32_exe.bin> executable via serial port <COM_PORT> to bootloader"
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
|
|
@ -59,6 +59,9 @@ MABI ?= -mabi=ilp32
|
|||
# User flags for additional configuration (will be added to compiler flags)
|
||||
USER_FLAGS ?=
|
||||
|
||||
# Serial port for executable upload via bootloer
|
||||
COM_PORT ?= /dev/ttyUSB0
|
||||
|
||||
# Relative or absolute path to the NEORV32 home folder
|
||||
NEORV32_HOME ?= ../../..
|
||||
# *****************************************************************************
|
||||
|
@ -252,6 +255,13 @@ endif
|
|||
@echo "Toolchain check OK"
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Upload executable via serial port to bootloader
|
||||
# -----------------------------------------------------------------------------
|
||||
upload: $(APP_EXE)
|
||||
@sh $(NEORV32_EXG_PATH)/uart_upload.sh $(COM_PORT) $(APP_EXE)
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Show configuration
|
||||
# -----------------------------------------------------------------------------
|
||||
|
@ -315,6 +325,7 @@ help:
|
|||
@echo " clean - clean up project"
|
||||
@echo " clean_all - clean up project, core libraries and image generator"
|
||||
@echo " bootloader - compile, generate and install VHDL BOOTROM boot image (for bootloader only!)"
|
||||
@echo " upload - upload <neorv32_exe.bin> executable via serial port <COM_PORT> to bootloader"
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
|
|
@ -59,6 +59,9 @@ MABI ?= -mabi=ilp32
|
|||
# User flags for additional configuration (will be added to compiler flags)
|
||||
USER_FLAGS ?=
|
||||
|
||||
# Serial port for executable upload via bootloer
|
||||
COM_PORT ?= /dev/ttyUSB0
|
||||
|
||||
# Relative or absolute path to the NEORV32 home folder
|
||||
NEORV32_HOME ?= ../../..
|
||||
# *****************************************************************************
|
||||
|
@ -252,6 +255,13 @@ endif
|
|||
@echo "Toolchain check OK"
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Upload executable via serial port to bootloader
|
||||
# -----------------------------------------------------------------------------
|
||||
upload: $(APP_EXE)
|
||||
@sh $(NEORV32_EXG_PATH)/uart_upload.sh $(COM_PORT) $(APP_EXE)
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Show configuration
|
||||
# -----------------------------------------------------------------------------
|
||||
|
@ -315,6 +325,7 @@ help:
|
|||
@echo " clean - clean up project"
|
||||
@echo " clean_all - clean up project, core libraries and image generator"
|
||||
@echo " bootloader - compile, generate and install VHDL BOOTROM boot image (for bootloader only!)"
|
||||
@echo " upload - upload <neorv32_exe.bin> executable via serial port <COM_PORT> to bootloader"
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
|
|
@ -59,6 +59,9 @@ MABI ?= -mabi=ilp32
|
|||
# User flags for additional configuration (will be added to compiler flags)
|
||||
USER_FLAGS ?=
|
||||
|
||||
# Serial port for executable upload via bootloer
|
||||
COM_PORT ?= /dev/ttyUSB0
|
||||
|
||||
# Relative or absolute path to the NEORV32 home folder
|
||||
NEORV32_HOME ?= ../../..
|
||||
# *****************************************************************************
|
||||
|
@ -284,6 +287,13 @@ endif
|
|||
@echo "Toolchain check OK"
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Upload executable via serial port to bootloader
|
||||
# -----------------------------------------------------------------------------
|
||||
upload: $(APP_EXE)
|
||||
@sh $(NEORV32_EXG_PATH)/uart_upload.sh $(COM_PORT) $(APP_EXE)
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Show configuration
|
||||
# -----------------------------------------------------------------------------
|
||||
|
@ -347,6 +357,7 @@ help:
|
|||
@echo " clean - clean up project"
|
||||
@echo " clean_all - clean up project, core libraries and image generator"
|
||||
@echo " bootloader - compile, generate and install VHDL BOOTROM boot image (for bootloader only!)"
|
||||
@echo " upload - upload <neorv32_exe.bin> executable via serial port <COM_PORT> to bootloader"
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
|
|
@ -59,6 +59,9 @@ MABI ?= -mabi=ilp32
|
|||
# User flags for additional configuration (will be added to compiler flags)
|
||||
USER_FLAGS ?=
|
||||
|
||||
# Serial port for executable upload via bootloer
|
||||
COM_PORT ?= /dev/ttyUSB0
|
||||
|
||||
# Relative or absolute path to the NEORV32 home folder
|
||||
NEORV32_HOME ?= ../../..
|
||||
# *****************************************************************************
|
||||
|
@ -252,6 +255,13 @@ endif
|
|||
@echo "Toolchain check OK"
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Upload executable via serial port to bootloader
|
||||
# -----------------------------------------------------------------------------
|
||||
upload: $(APP_EXE)
|
||||
@sh $(NEORV32_EXG_PATH)/uart_upload.sh $(COM_PORT) $(APP_EXE)
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Show configuration
|
||||
# -----------------------------------------------------------------------------
|
||||
|
@ -315,6 +325,7 @@ help:
|
|||
@echo " clean - clean up project"
|
||||
@echo " clean_all - clean up project, core libraries and image generator"
|
||||
@echo " bootloader - compile, generate and install VHDL BOOTROM boot image (for bootloader only!)"
|
||||
@echo " upload - upload <neorv32_exe.bin> executable via serial port <COM_PORT> to bootloader"
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
|
|
@ -59,6 +59,9 @@ MABI ?= -mabi=ilp32
|
|||
# User flags for additional configuration (will be added to compiler flags)
|
||||
USER_FLAGS ?=
|
||||
|
||||
# Serial port for executable upload via bootloer
|
||||
COM_PORT ?= /dev/ttyUSB0
|
||||
|
||||
# Relative or absolute path to the NEORV32 home folder
|
||||
NEORV32_HOME ?= ../../..
|
||||
# *****************************************************************************
|
||||
|
@ -252,6 +255,13 @@ endif
|
|||
@echo "Toolchain check OK"
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Upload executable via serial port to bootloader
|
||||
# -----------------------------------------------------------------------------
|
||||
upload: $(APP_EXE)
|
||||
@sh $(NEORV32_EXG_PATH)/uart_upload.sh $(COM_PORT) $(APP_EXE)
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Show configuration
|
||||
# -----------------------------------------------------------------------------
|
||||
|
@ -315,6 +325,7 @@ help:
|
|||
@echo " clean - clean up project"
|
||||
@echo " clean_all - clean up project, core libraries and image generator"
|
||||
@echo " bootloader - compile, generate and install VHDL BOOTROM boot image (for bootloader only!)"
|
||||
@echo " upload - upload <neorv32_exe.bin> executable via serial port <COM_PORT> to bootloader"
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
|
|
@ -59,6 +59,9 @@ MABI ?= -mabi=ilp32
|
|||
# User flags for additional configuration (will be added to compiler flags)
|
||||
USER_FLAGS ?=
|
||||
|
||||
# Serial port for executable upload via bootloer
|
||||
COM_PORT ?= /dev/ttyUSB0
|
||||
|
||||
# Relative or absolute path to the NEORV32 home folder
|
||||
NEORV32_HOME ?= ../../..
|
||||
# *****************************************************************************
|
||||
|
@ -252,6 +255,13 @@ endif
|
|||
@echo "Toolchain check OK"
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Upload executable via serial port to bootloader
|
||||
# -----------------------------------------------------------------------------
|
||||
upload: $(APP_EXE)
|
||||
@sh $(NEORV32_EXG_PATH)/uart_upload.sh $(COM_PORT) $(APP_EXE)
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Show configuration
|
||||
# -----------------------------------------------------------------------------
|
||||
|
@ -315,6 +325,7 @@ help:
|
|||
@echo " clean - clean up project"
|
||||
@echo " clean_all - clean up project, core libraries and image generator"
|
||||
@echo " bootloader - compile, generate and install VHDL BOOTROM boot image (for bootloader only!)"
|
||||
@echo " upload - upload <neorv32_exe.bin> executable via serial port <COM_PORT> to bootloader"
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
|
|
@ -59,6 +59,9 @@ MABI ?= -mabi=ilp32
|
|||
# User flags for additional configuration (will be added to compiler flags)
|
||||
USER_FLAGS ?=
|
||||
|
||||
# Serial port for executable upload via bootloer
|
||||
COM_PORT ?= /dev/ttyUSB0
|
||||
|
||||
# Relative or absolute path to the NEORV32 home folder
|
||||
NEORV32_HOME ?= ../../..
|
||||
# *****************************************************************************
|
||||
|
@ -252,6 +255,13 @@ endif
|
|||
@echo "Toolchain check OK"
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Upload executable via serial port to bootloader
|
||||
# -----------------------------------------------------------------------------
|
||||
upload: $(APP_EXE)
|
||||
@sh $(NEORV32_EXG_PATH)/uart_upload.sh $(COM_PORT) $(APP_EXE)
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Show configuration
|
||||
# -----------------------------------------------------------------------------
|
||||
|
@ -315,6 +325,7 @@ help:
|
|||
@echo " clean - clean up project"
|
||||
@echo " clean_all - clean up project, core libraries and image generator"
|
||||
@echo " bootloader - compile, generate and install VHDL BOOTROM boot image (for bootloader only!)"
|
||||
@echo " upload - upload <neorv32_exe.bin> executable via serial port <COM_PORT> to bootloader"
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
|
|
@ -59,6 +59,9 @@ MABI ?= -mabi=ilp32
|
|||
# User flags for additional configuration (will be added to compiler flags)
|
||||
USER_FLAGS ?=
|
||||
|
||||
# Serial port for executable upload via bootloer
|
||||
COM_PORT ?= /dev/ttyUSB0
|
||||
|
||||
# Relative or absolute path to the NEORV32 home folder
|
||||
NEORV32_HOME ?= ../../..
|
||||
# *****************************************************************************
|
||||
|
@ -252,6 +255,13 @@ endif
|
|||
@echo "Toolchain check OK"
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Upload executable via serial port to bootloader
|
||||
# -----------------------------------------------------------------------------
|
||||
upload: $(APP_EXE)
|
||||
@sh $(NEORV32_EXG_PATH)/uart_upload.sh $(COM_PORT) $(APP_EXE)
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Show configuration
|
||||
# -----------------------------------------------------------------------------
|
||||
|
@ -315,6 +325,7 @@ help:
|
|||
@echo " clean - clean up project"
|
||||
@echo " clean_all - clean up project, core libraries and image generator"
|
||||
@echo " bootloader - compile, generate and install VHDL BOOTROM boot image (for bootloader only!)"
|
||||
@echo " upload - upload <neorv32_exe.bin> executable via serial port <COM_PORT> to bootloader"
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue