2021-10-05 13:54:47 +01:00
|
|
|
|
|
|
|
CROSS_COMPILE = ft32-elf-
|
2021-10-06 16:50:55 +01:00
|
|
|
DEPS_SUBMODULES += hw/mcu/bridgetek/ft9xx/hardware
|
2021-10-05 13:54:47 +01:00
|
|
|
SKIP_NANOLIB = 1
|
|
|
|
|
|
|
|
# This is installed at "C:/Program Files(x86)/Bridgetek/FT9xx Toolchain/Toolchain/hardware"
|
2021-10-06 16:50:55 +01:00
|
|
|
FT9XX_SDK = $(TOP)/hw/mcu/bridgetek/ft9xx/hardware
|
2021-10-05 13:54:47 +01:00
|
|
|
|
|
|
|
CFLAGS += \
|
|
|
|
-D__FT900__ \
|
|
|
|
-fvar-tracking \
|
|
|
|
-fvar-tracking-assignments \
|
|
|
|
-fmessage-length=0 \
|
|
|
|
-ffunction-sections \
|
|
|
|
-DCFG_TUSB_MCU=OPT_MCU_FT90X
|
|
|
|
|
|
|
|
# lwip/src/core/raw.c:334:43: error: declaration of 'recv' shadows a global declaration
|
|
|
|
CFLAGS += -Wno-error=shadow
|
|
|
|
CFLAGS:=$(filter-out -Wcast-function-type,$(CFLAGS))
|
|
|
|
|
|
|
|
# All source paths should be relative to the top level.
|
2021-10-06 16:50:55 +01:00
|
|
|
LDINC += $(FT9XX_SDK)/lib/Release
|
2021-10-05 13:54:47 +01:00
|
|
|
LIBS += -lft900
|
2021-10-06 16:50:55 +01:00
|
|
|
LD_FILE = hw/mcu/bridgetek/ft9xx/hardware/scripts/ldscript.ld
|
2021-10-05 13:54:47 +01:00
|
|
|
LDFLAGS += $(addprefix -L,$(LDINC)) \
|
|
|
|
-Xlinker --entry=_start \
|
|
|
|
-Wl,-lc
|
|
|
|
|
2021-10-06 16:50:55 +01:00
|
|
|
SRC_C += src/portable/bridgetek/ft9xx/dcd_ft9xx.c
|
2021-10-05 13:54:47 +01:00
|
|
|
|
2021-10-06 16:50:55 +01:00
|
|
|
#SRC_S += hw/mcu/bridgetek/ft9xx/hardware/scripts/crt0.S
|
2021-10-05 13:54:47 +01:00
|
|
|
|
|
|
|
INC += \
|
2021-10-06 16:50:55 +01:00
|
|
|
$(FT9XX_SDK)/include \
|
2021-10-05 13:54:47 +01:00
|
|
|
$(TOP)/$(BOARD_PATH)
|