mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-22 01:21:20 +00:00
clean up ra makefile
This commit is contained in:
parent
f5d0510064
commit
3cb4d73899
@ -1,8 +1,15 @@
|
||||
CPU_CORE = cortex-m4
|
||||
MCU_VARIANT = ra4m1
|
||||
|
||||
FSP_MCU_DIR = hw/mcu/renesas/fsp/ra/fsp/src/bsp/mcu/ra4m1
|
||||
FSP_BOARD_DIR = hw/mcu/renesas/fsp/ra/board/ra4m1_ek
|
||||
|
||||
SRC_C += \
|
||||
$(FSP_BOARD_DIR)/board_init.c \
|
||||
$(FSP_BOARD_DIR)/board_leds.c \
|
||||
|
||||
INC += \
|
||||
$(TOP)/$(FSP_BOARD_DIR)
|
||||
|
||||
# All source paths should be relative to the top level.
|
||||
LD_FILE = $(BOARD_PATH)/ra4m1_ek.ld
|
||||
|
||||
|
@ -1,8 +1,15 @@
|
||||
CPU_CORE = cortex-m33
|
||||
MCU_VARIANT = ra4m3
|
||||
|
||||
FSP_MCU_DIR = hw/mcu/renesas/fsp/ra/fsp/src/bsp/mcu/ra4m3
|
||||
FSP_BOARD_DIR = hw/mcu/renesas/fsp/ra/board/ra4m3_ek
|
||||
|
||||
SRC_C += \
|
||||
$(FSP_BOARD_DIR)/board_init.c \
|
||||
$(FSP_BOARD_DIR)/board_leds.c \
|
||||
|
||||
INC += \
|
||||
$(TOP)/$(FSP_BOARD_DIR)
|
||||
|
||||
# All source paths should be relative to the top level.
|
||||
LD_FILE = $(BOARD_PATH)/ra4m3_ek.ld
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
DEPS_SUBMODULES += hw/mcu/renesas/fsp lib/CMSIS_5
|
||||
|
||||
FSP_RA = hw/mcu/renesas/fsp/ra/fsp
|
||||
include $(TOP)/$(BOARD_PATH)/board.mk
|
||||
|
||||
CFLAGS += \
|
||||
@ -10,44 +11,38 @@ CFLAGS += \
|
||||
-Wno-error=cast-qual \
|
||||
-Wno-error=unused-but-set-variable \
|
||||
-Wno-error=unused-variable \
|
||||
-mthumb \
|
||||
-nostdlib \
|
||||
-nostartfiles \
|
||||
-ffunction-sections \
|
||||
-fdata-sections \
|
||||
-ffreestanding
|
||||
|
||||
SRC_C += \
|
||||
src/portable/renesas/rusb2/dcd_rusb2.c \
|
||||
src/portable/renesas/rusb2/hcd_rusb2.c \
|
||||
hw/mcu/renesas/fsp/ra/fsp/src/bsp/cmsis/Device/RENESAS/Source/startup.c \
|
||||
hw/mcu/renesas/fsp/ra/fsp/src/bsp/cmsis/Device/RENESAS/Source/system.c \
|
||||
hw/mcu/renesas/fsp/ra/fsp/src/bsp/mcu/all/bsp_clocks.c \
|
||||
hw/mcu/renesas/fsp/ra/fsp/src/bsp/mcu/all/bsp_common.c \
|
||||
hw/mcu/renesas/fsp/ra/fsp/src/bsp/mcu/all/bsp_delay.c \
|
||||
hw/mcu/renesas/fsp/ra/fsp/src/bsp/mcu/all/bsp_group_irq.c \
|
||||
hw/mcu/renesas/fsp/ra/fsp/src/bsp/mcu/all/bsp_guard.c \
|
||||
hw/mcu/renesas/fsp/ra/fsp/src/bsp/mcu/all/bsp_io.c \
|
||||
hw/mcu/renesas/fsp/ra/fsp/src/bsp/mcu/all/bsp_irq.c \
|
||||
hw/mcu/renesas/fsp/ra/fsp/src/bsp/mcu/all/bsp_register_protection.c \
|
||||
hw/mcu/renesas/fsp/ra/fsp/src/bsp/mcu/all/bsp_rom_registers.c \
|
||||
hw/mcu/renesas/fsp/ra/fsp/src/bsp/mcu/all/bsp_sbrk.c \
|
||||
hw/mcu/renesas/fsp/ra/fsp/src/bsp/mcu/all/bsp_security.c \
|
||||
hw/mcu/renesas/fsp/ra/fsp/src/r_ioport/r_ioport.c \
|
||||
$(FSP_BOARD_DIR)/board_init.c \
|
||||
$(FSP_BOARD_DIR)/board_leds.c
|
||||
$(FSP_RA)/src/bsp/cmsis/Device/RENESAS/Source/startup.c \
|
||||
$(FSP_RA)/src/bsp/cmsis/Device/RENESAS/Source/system.c \
|
||||
$(FSP_RA)/src/bsp/mcu/all/bsp_clocks.c \
|
||||
$(FSP_RA)/src/bsp/mcu/all/bsp_common.c \
|
||||
$(FSP_RA)/src/bsp/mcu/all/bsp_delay.c \
|
||||
$(FSP_RA)/src/bsp/mcu/all/bsp_group_irq.c \
|
||||
$(FSP_RA)/src/bsp/mcu/all/bsp_guard.c \
|
||||
$(FSP_RA)/src/bsp/mcu/all/bsp_io.c \
|
||||
$(FSP_RA)/src/bsp/mcu/all/bsp_irq.c \
|
||||
$(FSP_RA)/src/bsp/mcu/all/bsp_register_protection.c \
|
||||
$(FSP_RA)/src/bsp/mcu/all/bsp_rom_registers.c \
|
||||
$(FSP_RA)/src/bsp/mcu/all/bsp_sbrk.c \
|
||||
$(FSP_RA)/src/bsp/mcu/all/bsp_security.c \
|
||||
$(FSP_RA)/src/r_ioport/r_ioport.c \
|
||||
|
||||
INC += \
|
||||
$(TOP)/lib/CMSIS_5/CMSIS/Core/Include \
|
||||
$(TOP)/hw/mcu/renesas/fsp/ra/fsp/src/bsp/cmsis/Device/RENESAS/Include \
|
||||
$(TOP)/$(FSP_RA)/src/bsp/cmsis/Device/RENESAS/Include \
|
||||
$(TOP)/$(BOARD_PATH) \
|
||||
$(TOP)/$(BOARD_PATH)/fsp_cfg \
|
||||
$(TOP)/hw/mcu/renesas/fsp/ra/fsp/inc \
|
||||
$(TOP)/hw/mcu/renesas/fsp/ra/fsp/inc/api \
|
||||
$(TOP)/hw/mcu/renesas/fsp/ra/fsp/inc/instances \
|
||||
$(TOP)/$(FSP_MCU_DIR) \
|
||||
$(TOP)/$(FSP_BOARD_DIR)
|
||||
$(TOP)/$(FSP_RA)/inc \
|
||||
$(TOP)/$(FSP_RA)/inc/api \
|
||||
$(TOP)/$(FSP_RA)/inc/instances \
|
||||
$(TOP)/$(FSP_RA)/src/bsp/mcu/$(MCU_VARIANT) \
|
||||
|
||||
# For freeRTOS port source
|
||||
# hack to use the port provided by renesas
|
||||
FREERTOS_PORTABLE_SRC = hw/mcu/renesas/fsp/ra/fsp/src/rm_freertos_port
|
||||
FREERTOS_PORTABLE_SRC = $(FSP_RA)/src/rm_freertos_port
|
||||
|
@ -11,4 +11,4 @@ else ifeq ($(TOOLCHAIN),iar)
|
||||
endif
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM0
|
||||
FREERTOS_PORTABLE_SRC ?= $(FREERTOS_PORTABLE_PATH)/ARM_CM0
|
||||
|
@ -11,4 +11,4 @@ else ifeq ($(TOOLCHAIN),iar)
|
||||
endif
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM0
|
||||
FREERTOS_PORTABLE_SRC ?= $(FREERTOS_PORTABLE_PATH)/ARM_CM0
|
||||
|
@ -14,4 +14,4 @@ else ifeq ($(TOOLCHAIN),iar)
|
||||
endif
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM3
|
||||
FREERTOS_PORTABLE_SRC ?= $(FREERTOS_PORTABLE_PATH)/ARM_CM3
|
||||
|
@ -16,4 +16,4 @@ else ifeq ($(TOOLCHAIN),iar)
|
||||
|
||||
endif
|
||||
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM33_NTZ/non_secure
|
||||
FREERTOS_PORTABLE_SRC ?= $(FREERTOS_PORTABLE_PATH)/ARM_CM33_NTZ/non_secure
|
||||
|
@ -10,4 +10,4 @@ else ifeq ($(TOOLCHAIN),iar)
|
||||
ASFLAGS += --cpu cortex-m4 --fpu VFPv4
|
||||
endif
|
||||
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM4F
|
||||
FREERTOS_PORTABLE_SRC ?= $(FREERTOS_PORTABLE_PATH)/ARM_CM4F
|
||||
|
@ -16,4 +16,4 @@ else ifeq ($(TOOLCHAIN),iar)
|
||||
|
||||
endif
|
||||
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM7/r0p1
|
||||
FREERTOS_PORTABLE_SRC ?= $(FREERTOS_PORTABLE_PATH)/ARM_CM7/r0p1
|
||||
|
Loading…
x
Reference in New Issue
Block a user