Rename directories to indicate that FT930 and FT900 devices are both covered by the same SDK and src/portable code. Board makefile includes __FT900__ macro for FT90x and __FT930__ macro for boards with FT93x.

This commit is contained in:
Gordon McNab
2021-10-06 16:50:55 +01:00
parent bcecbfdc29
commit 37c5eeb51d
6 changed files with 14 additions and 15 deletions
+7 -7
View File
@@ -1,10 +1,10 @@
CROSS_COMPILE = ft32-elf-
DEPS_SUBMODULES += hw/mcu/bridgetek/ft90x/hardware
DEPS_SUBMODULES += hw/mcu/bridgetek/ft9xx/hardware
SKIP_NANOLIB = 1
# This is installed at "C:/Program Files(x86)/Bridgetek/FT9xx Toolchain/Toolchain/hardware"
FT90X_SDK = $(TOP)/hw/mcu/bridgetek/ft90x/hardware
FT9XX_SDK = $(TOP)/hw/mcu/bridgetek/ft9xx/hardware
CFLAGS += \
-D__FT900__ \
@@ -19,17 +19,17 @@ CFLAGS += -Wno-error=shadow
CFLAGS:=$(filter-out -Wcast-function-type,$(CFLAGS))
# All source paths should be relative to the top level.
LDINC += $(FT90X_SDK)/lib/Release
LDINC += $(FT9XX_SDK)/lib/Release
LIBS += -lft900
LD_FILE = hw/mcu/bridgetek/ft90x/hardware/scripts/ldscript.ld
LD_FILE = hw/mcu/bridgetek/ft9xx/hardware/scripts/ldscript.ld
LDFLAGS += $(addprefix -L,$(LDINC)) \
-Xlinker --entry=_start \
-Wl,-lc
SRC_C += src/portable/bridgetek/ft90x/dcd_ft90x.c
SRC_C += src/portable/bridgetek/ft9xx/dcd_ft9xx.c
#SRC_S += hw/mcu/bridgetek/ft90x/hardware/scripts/crt0.S
#SRC_S += hw/mcu/bridgetek/ft9xx/hardware/scripts/crt0.S
INC += \
$(FT90X_SDK)/include \
$(FT9XX_SDK)/include \
$(TOP)/$(BOARD_PATH)