代码拉取完成,页面将自动刷新
#
# 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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。