2019-10-12 00:00:36 +08:00
|
|
|
CFLAGS += \
|
2019-11-20 16:06:40 +07:00
|
|
|
-flto \
|
2019-10-12 00:00:36 +08:00
|
|
|
-march=rv32i \
|
|
|
|
-mabi=ilp32 \
|
|
|
|
-nostdlib \
|
2019-11-12 21:11:46 -08:00
|
|
|
-DCFG_TUSB_MCU=OPT_MCU_VALENTYUSB_EPTRI
|
2019-10-12 00:00:36 +08:00
|
|
|
|
|
|
|
MCU_DIR = hw/mcu/fomu
|
|
|
|
BSP_DIR = hw/bsp/fomu
|
|
|
|
|
|
|
|
# All source paths should be relative to the top level.
|
|
|
|
LD_FILE = hw/bsp/fomu/fomu.ld
|
|
|
|
|
|
|
|
# TODO remove later
|
|
|
|
SRC_C += src/portable/$(VENDOR)/$(CHIP_FAMILY)/hal_$(CHIP_FAMILY).c
|
|
|
|
|
|
|
|
SRC_C +=
|
|
|
|
|
|
|
|
SRC_S += hw/bsp/fomu/crt0-vexriscv.S
|
|
|
|
|
|
|
|
INC += \
|
|
|
|
$(TOP)/$(BSP_DIR)/include
|
|
|
|
|
|
|
|
# For TinyUSB port source
|
2019-11-12 21:11:46 -08:00
|
|
|
VENDOR = valentyusb
|
|
|
|
CHIP_FAMILY = eptri
|
2019-10-12 00:00:36 +08:00
|
|
|
|
|
|
|
# flash using dfu-util
|
|
|
|
flash: $(BUILD)/$(BOARD)-firmware.dfu
|
|
|
|
dfu-util -D $^
|