3 Star 0 Fork 0

Dozingfiretruck / xr872_sdk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
chip.mk 2.45 KB
一键复制 编辑 原始数据 按行查看 历史
Dozingfiretruck 提交于 2023-07-05 17:51 . add:备份sdk
#
# chip definition
#
# ----------------------------------------------------------------------------
# chip type
# ----------------------------------------------------------------------------
-include $(ROOT_PATH)/.config
# ----------------------------------------------------------------------------
# chips of arch version 2
# ----------------------------------------------------------------------------
ifeq ($(__CONFIG_CHIP_TYPE), xr872)
__CONFIG_CHIP_ARCH_VER := 2
__CONFIG_CHIP_XR872 := y
CONFIG_SYMBOLS += -D__CONFIG_CHIP_XR872
endif
ifeq ($(__CONFIG_CHIP_TYPE), xr808)
__CONFIG_CHIP_ARCH_VER := 2
__CONFIG_CHIP_XR808 := y
CONFIG_SYMBOLS += -D__CONFIG_CHIP_XR808
endif
CONFIG_SYMBOLS += -D__CONFIG_CHIP_ARCH_VER=$(__CONFIG_CHIP_ARCH_VER)
# ----------------------------------------------------------------------------
# arch and core
# ----------------------------------------------------------------------------
__CONFIG_ARCH_DUAL_CORE := n
ifeq ($(__CONFIG_ARCH_DUAL_CORE), y)
CONFIG_SYMBOLS += -D__CONFIG_ARCH_DUAL_CORE
endif
__CONFIG_ARCH_APP_CORE := y
ifeq ($(__CONFIG_ARCH_APP_CORE), y)
CONFIG_SYMBOLS += -D__CONFIG_ARCH_APP_CORE
endif
__CONFIG_ARCH_NET_CORE := n
ifeq ($(__CONFIG_ARCH_NET_CORE), y)
CONFIG_SYMBOLS += -D__CONFIG_ARCH_NET_CORE
endif
# ----------------------------------------------------------------------------
# cpu
# ----------------------------------------------------------------------------
__CONFIG_CPU_CM4F ?= y
ifeq ($(__CONFIG_CPU_CM4F), y)
CONFIG_SYMBOLS += -D__CONFIG_CPU_CM4F
endif
# ----------------------------------------------------------------------------
# chip configuration check
# ----------------------------------------------------------------------------
ifneq ($(MAKECMDGOALS), config)
ifneq ($(MAKECMDGOALS), config_clean)
ifndef __CONFIG_CHIP_TYPE
__nullstring :=
$(info ERROR:)
$(info $(__nullstring) Chip is not defined!)
$(info $(__nullstring) Please run `make config` in your project.)
$(info $(__nullstring) Or run `./configure.sh` in the root directory.)
$(error )
endif
ifndef __CONFIG_HOSC_TYPE
__nullstring :=
$(info ERROR:)
$(info $(__nullstring) External high speed crystal oscillator is not defined!)
$(info $(__nullstring) Please run `make config` in your project.)
$(info $(__nullstring) Or run `./configure.sh` in the root directory.)
$(error )
endif
ifndef __CONFIG_CHIP_ARCH_VER
$(error Invalid chip configuration!)
endif
endif
endif
C
1
https://gitee.com/Dozingfiretruck/xr872_sdk.git
git@gitee.com:Dozingfiretruck/xr872_sdk.git
Dozingfiretruck
xr872_sdk
xr872_sdk
master

搜索帮助