2021-06-20 15:04:39 +07:00
|
|
|
DEPS_SUBMODULES += hw/mcu/renesas/rx
|
|
|
|
|
|
|
|
# Cross Compiler for RX
|
|
|
|
CROSS_COMPILE = rx-elf-
|
|
|
|
|
|
|
|
include $(TOP)/$(BOARD_PATH)/board.mk
|
|
|
|
|
|
|
|
CFLAGS += \
|
|
|
|
-nostartfiles \
|
|
|
|
-ffunction-sections \
|
|
|
|
-fdata-sections \
|
|
|
|
-fshort-enums \
|
|
|
|
-mlittle-endian-data \
|
2021-07-01 00:19:03 +09:00
|
|
|
-DSSIZE_MAX=__INT_MAX__
|
2021-06-28 12:49:30 +07:00
|
|
|
|
2022-06-24 19:45:49 +07:00
|
|
|
# suppress warning caused by vendor mcu driver
|
|
|
|
CFLAGS += -Wno-error=redundant-decls
|
|
|
|
|
2021-06-28 12:49:30 +07:00
|
|
|
SRC_C += \
|
2023-03-16 11:03:08 +07:00
|
|
|
src/portable/renesas/rusb2/dcd_rusb2.c \
|
|
|
|
src/portable/renesas/rusb2/hcd_rusb2.c \
|
2021-06-28 12:49:30 +07:00
|
|
|
$(MCU_DIR)/vects.c
|
|
|
|
|
|
|
|
INC += \
|
|
|
|
$(TOP)/$(BOARD_PATH) \
|
|
|
|
$(TOP)/$(MCU_DIR)
|
|
|
|
|
|
|
|
SRC_S += $(MCU_DIR)/start.S
|
|
|
|
|
2021-06-20 15:04:39 +07:00
|
|
|
$(BUILD)/$(PROJECT).mot: $(BUILD)/$(PROJECT).elf
|
|
|
|
@echo CREATE $@
|
|
|
|
$(OBJCOPY) -O srec -I elf32-rx-be-ns $^ $@
|
2021-06-28 12:53:53 +07:00
|
|
|
|
|
|
|
# flash using rfp-cli
|
|
|
|
flash-rfp: $(BUILD)/$(PROJECT).mot
|
|
|
|
rfp-cli -device rx65x -tool e2l -if fine -fo id FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF -auth id FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF -auto $^
|