1 Star 0 Fork 49

Rastus/Phytium-Standalone-SDK

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
standalone.mk 5.42 KB
一键复制 编辑 原始数据 按行查看 历史
liushengming 提交于 2022-08-05 19:50 +08:00 . !49 v0.3.0 更新
CUR_DIR := $(STANDALONE_DIR)
SRC_DIR += $(CUR_DIR)/common \
$(CUR_DIR)/arch/common
INC_DIR += $(CUR_DIR)/common \
$(CUR_DIR)/arch/common
ifndef CONFIG_USE_CACHE
EXCL_SRC += $(CUR_DIR)/common/cache.c
endif
ifndef CONFIG_USE_MMU
EXCL_SRC += $(CUR_DIR)/common/mmu.c
endif
ifndef CONFIG_USE_TLSF
EXCL_SRC += $(CUR_DIR)/common/ft_memory_pool.c
endif
##########################arch####################################
ifdef CONFIG_TARGET_ARMV8_AARCH64
SRC_DIR += $(CUR_DIR)/arch/armv8/aarch64 \
$(CUR_DIR)/arch/armv8/aarch64/gcc
INC_DIR += $(CUR_DIR)/arch/armv8/aarch64/gcc \
$(CUR_DIR)/arch/armv8/aarch64
endif #CONFIG_TARGET_ARMV8_AARCH64
ifdef CONFIG_TARGET_ARMV8_AARCH32
SRC_DIR += $(CUR_DIR)/arch/armv8/aarch32 \
$(CUR_DIR)/arch/armv8/aarch32/gcc
INC_DIR += $(CUR_DIR)/arch/armv8/aarch32/gcc \
$(CUR_DIR)/arch/armv8/aarch32
endif #CONFIG_TARGET_ARMV8_AARCH32
ifdef CONFIG_TARGET_ARMV7
SRC_DIR += $(CUR_DIR)/arch/armv7/gcc
endif #CONFIG_TARGET_ARMV7
##########################board####################################
SRC_DIR += $(CUR_DIR)/board/common
INC_DIR += $(CUR_DIR)/board/common
ifdef CONFIG_TARGET_F2000_4
SRC_DIR += $(CUR_DIR)/board/ft2004
INC_DIR += $(CUR_DIR)/board/ft2004
endif
ifdef CONFIG_TARGET_E2000
SRC_DIR += $(CUR_DIR)/board/e2000
INC_DIR += $(CUR_DIR)/board/e2000
ifdef CONFIG_TARGET_E2000Q
SRC_DIR += $(CUR_DIR)/board/e2000/q
INC_DIR += $(CUR_DIR)/board/e2000/q
endif
ifdef CONFIG_TARGET_E2000D
SRC_DIR += $(CUR_DIR)/board/e2000/d
INC_DIR += $(CUR_DIR)/board/e2000/d
endif
ifdef CONFIG_TARGET_E2000S
SRC_DIR += $(CUR_DIR)/board/e2000/s
INC_DIR += $(CUR_DIR)/board/e2000/s
endif
endif
ifdef CONFIG_TARGET_D2000
SRC_DIR += $(CUR_DIR)/board/d2000
INC_DIR += $(CUR_DIR)/board/d2000
endif
##########################drivers####################################
# gic
ifdef CONFIG_ENABLE_GICV3
SRC_DIR += $(CUR_DIR)/drivers/gic/fgic
INC_DIR += $(CUR_DIR)/drivers/gic/fgic
endif
# timer
ifdef CONFIG_ENABLE_TIMER_TACHO
SRC_DIR += $(CUR_DIR)/drivers/timer/ftimer_tacho
INC_DIR += $(CUR_DIR)/drivers/timer/ftimer_tacho
endif
# mio
ifdef CONFIG_ENABLE_MIO
SRC_DIR += $(CUR_DIR)/drivers/mio/fmio
INC_DIR += $(CUR_DIR)/drivers/mio/fmio
endif
# qspi
ifdef CONFIG_USE_QSPI
SRC_DIR += $(CUR_DIR)/drivers/qspi/fqspi
INC_DIR += $(CUR_DIR)/drivers/qspi/fqspi
endif #CONFIG_USE_NOR_QSPI
# usart
ifdef CONFIG_ENABLE_Pl011_UART
SRC_DIR += $(CUR_DIR)/drivers/serial/fpl011
INC_DIR += $(CUR_DIR)/drivers/serial/fpl011
endif #CONFIG_ENABLE_Pl011_UART
# gpio
ifdef CONFIG_USE_GPIO
ifdef CONFIG_ENABLE_FGPIO
SRC_DIR += $(CUR_DIR)/drivers/pin/fgpio
INC_DIR += $(CUR_DIR)/drivers/pin/fgpio
endif
endif
# spi
ifdef CONFIG_USE_FSPIM
SRC_DIR += $(CUR_DIR)/drivers/spi/fspim
INC_DIR += $(CUR_DIR)/drivers/spi/fspim
endif
ifdef CONFIG_ENABLE_FGMAC
SRC_DIR += $(CUR_DIR)/drivers/eth/fgmac \
$(CUR_DIR)/drivers/eth/fgmac/phy
INC_DIR += $(CUR_DIR)/drivers/eth/fgmac \
$(CUR_DIR)/drivers/eth/fgmac/phy
ifdef CONFIG_FGMAC_PHY_AR803X
SRC_DIR += $(CUR_DIR)/drivers/eth/fgmac/phy/ar803x
INC_DIR += $(CUR_DIR)/drivers/eth/fgmac/phy/ar803x
endif #CONFIG_FGMAC_PHY_AR803X
endif #CONFIG_ENABLE_FGMAC
ifdef CONFIG_ENABLE_FXMAC
SRC_DIR += $(CUR_DIR)/drivers/eth/fxmac \
$(CUR_DIR)/drivers/eth/fxmac/phy
INC_DIR += $(CUR_DIR)/drivers/eth/fxmac \
$(CUR_DIR)/drivers/eth/fxmac/phy
ifdef CONFIG_FXMAC_PHY_YT
SRC_DIR += $(CUR_DIR)/drivers/eth/fxmac/phy/yt
INC_DIR += $(CUR_DIR)/drivers/eth/fxmac/phy/yt
endif
endif
# can
ifdef CONFIG_USE_FCAN
SRC_DIR += $(CUR_DIR)/drivers/can/fcan
INC_DIR += $(CUR_DIR)/drivers/can/fcan
endif
# pcie
ifdef CONFIG_ENABLE_F_PCIE
SRC_DIR += $(CUR_DIR)/drivers/pcie/fpcie
INC_DIR += $(CUR_DIR)/drivers/pcie/fpcie
endif
# i2c
ifdef CONFIG_USE_FI2C
SRC_DIR += $(CUR_DIR)/drivers/i2c/fi2c
INC_DIR += $(CUR_DIR)/drivers/i2c/fi2c
endif
# fsdio
ifdef CONFIG_ENABLE_FSDIO
SRC_DIR += $(CUR_DIR)/drivers/mmc/fsdio
INC_DIR += $(CUR_DIR)/drivers/mmc/fsdio
endif
# fsdmmc
ifdef CONFIG_ENABLE_FSDMMC
SRC_DIR += $(CUR_DIR)/drivers/mmc/fsdmmc
INC_DIR += $(CUR_DIR)/drivers/mmc/fsdmmc
endif
#wdt
ifdef CONFIG_ENABLE_FWDT
SRC_DIR += $(CUR_DIR)/drivers/watchdog/fwdt
INC_DIR += $(CUR_DIR)/drivers/watchdog/fwdt
endif
# dma
ifdef CONFIG_ENABLE_FGDMA
SRC_DIR += $(CUR_DIR)/drivers/dma/fgdma
INC_DIR += $(CUR_DIR)/drivers/dma/fgdma
endif
ifdef CONFIG_ENABLE_FDDMA
SRC_DIR += $(CUR_DIR)/drivers/dma/fddma
INC_DIR += $(CUR_DIR)/drivers/dma/fddma
endif
#nand
ifdef CONFIG_ENABLE_FNAND
SRC_DIR += $(CUR_DIR)/drivers/nand/fnand
SRC_DIR += $(CUR_DIR)/drivers/nand/fnand/manufacturer
INC_DIR += $(CUR_DIR)/drivers/nand/fnand
INC_DIR += $(CUR_DIR)/drivers/nand/fnand/manufacturer
endif
#rtc
ifdef CONFIG_ENABLE_FRTC
SRC_DIR += $(CUR_DIR)/drivers/rtc/frtc
INC_DIR += $(CUR_DIR)/drivers/rtc/frtc
endif
#sata
ifdef CONFIG_ENABLE_FSATA
SRC_DIR += $(CUR_DIR)/drivers/sata/fsata
INC_DIR += $(CUR_DIR)/drivers/sata/fsata
endif
#usb
ifdef CONFIG_USE_USB
SRC_DIR += $(CUR_DIR)/drivers/usb
INC_DIR += $(CUR_DIR)/drivers/usb
ifdef CONFIG_ENABLE_USB_FXHCI
SRC_DIR += $(CUR_DIR)/drivers/usb/fxhci
INC_DIR += $(CUR_DIR)/drivers/usb/fxhci
endif
endif
#adc
ifdef CONFIG_USE_FADC
SRC_DIR += $(CUR_DIR)/drivers/adc/fadc
INC_DIR += $(CUR_DIR)/drivers/adc/fadc
endif
#pwm
ifdef CONFIG_USE_FPWM
SRC_DIR += $(CUR_DIR)/drivers/pwm/fpwm
INC_DIR += $(CUR_DIR)/drivers/pwm/fpwm
endif
#semaphore
ifdef CONFIG_ENABLE_FSEMAPHORE
SRC_DIR += $(CUR_DIR)/drivers/ipc/fsemaphore
INC_DIR += $(CUR_DIR)/drivers/ipc/fsemaphore
endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/rastus/phytium-standalone-sdk.git
git@gitee.com:rastus/phytium-standalone-sdk.git
rastus
phytium-standalone-sdk
Phytium-Standalone-SDK
release

搜索帮助