From 6c80a2da180749af41586ffd78cae22592bb93ca Mon Sep 17 00:00:00 2001 From: Liu_Weichao Date: Tue, 6 Sep 2022 14:37:00 +0800 Subject: [PATCH] add board/xiwangtong-arm32 Makefile and path_kernel.mk configure --- Ubiquitous/XiZi/Makefile | 2 +- Ubiquitous/XiZi/path_kernel.mk | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/Ubiquitous/XiZi/Makefile b/Ubiquitous/XiZi/Makefile index 6e4011cfb..ce235b4f4 100755 --- a/Ubiquitous/XiZi/Makefile +++ b/Ubiquitous/XiZi/Makefile @@ -6,7 +6,7 @@ MAKEFLAGS += --no-print-directory riscv_support := kd233 maix-go hifive1-rev-B gapuino gd32vf103-rvstar rv32m1-vega aiit-riscv64-board xidatong-riscv64 -arm_support += stm32f407-st-discovery stm32f407zgt6 stm32f103-nano nuvoton-m2354 ok1052-c imxrt1176-sbc aiit-arm32-board xidatong-arm32 +arm_support += stm32f407-st-discovery stm32f407zgt6 stm32f103-nano nuvoton-m2354 ok1052-c imxrt1176-sbc aiit-arm32-board xidatong-arm32 xiwangtong-arm32 emulator_support += hifive1-emulator k210-emulator cortex-m0-emulator cortex-m3-emulator cortex-m4-emulator support := $(riscv_support) $(arm_support) $(emulator_support) SRC_DIR := diff --git a/Ubiquitous/XiZi/path_kernel.mk b/Ubiquitous/XiZi/path_kernel.mk index 7ffd27a20..21dfcd8a3 100755 --- a/Ubiquitous/XiZi/path_kernel.mk +++ b/Ubiquitous/XiZi/path_kernel.mk @@ -55,6 +55,39 @@ KERNELPATHS += \ endif endif +ifeq ($(BSP_ROOT),$(KERNEL_ROOT)/board/xiwangtong-arm32) +KERNELPATHS += \ + -I$(KERNEL_ROOT)/arch/arm/cortex-m7 \ + -I$(BSP_ROOT)/third_party_driver \ + -I$(BSP_ROOT)/third_party_driver/include \ + -I$(BSP_ROOT)/third_party_driver/sdio/sdmmc/inc \ + -I$(BSP_ROOT)/third_party_driver/sdio/sdmmc/port \ + -I$(BSP_ROOT)/third_party_driver/usb/nxp_usb_driver/host \ + -I$(BSP_ROOT)/third_party_driver/usb/nxp_usb_driver/host/class \ + -I$(BSP_ROOT)/third_party_driver/usb/nxp_usb_driver/include \ + -I$(BSP_ROOT)/third_party_driver/usb/nxp_usb_driver/osa \ + -I$(BSP_ROOT)/third_party_driver/usb/nxp_usb_driver/phy \ + -I$(BSP_ROOT)/third_party_driver/ethernet \ + -I$(BSP_ROOT)/third_party_driver/ethernet/lan8720 \ + -I$(BSP_ROOT)/third_party_driver/CMSIS/Include \ + -I$(BSP_ROOT)/include \ + -I$(BSP_ROOT)/xip \ + -I$(KERNEL_ROOT)/include \ + -I$(KERNEL_ROOT)/resources/include + +ifeq ($(CONFIG_RESOURCES_LWIP),y) +KERNELPATHS += \ + -I$(KERNEL_ROOT)/resources/ethernet/LwIP/include \ + -I$(KERNEL_ROOT)/resources/ethernet/LwIP \ + -I$(KERNEL_ROOT)/resources/ethernet/LwIP/include/compat \ + -I$(KERNEL_ROOT)/resources/ethernet/LwIP/include/lwip \ + -I$(KERNEL_ROOT)/resources/ethernet/LwIP/include/netif \ + -I$(KERNEL_ROOT)/resources/ethernet/LwIP/include/lwip/apps \ + -I$(KERNEL_ROOT)/resources/ethernet/LwIP/include/lwip/priv \ + -I$(KERNEL_ROOT)/resources/ethernet/LwIP/include/lwip/prot \ + -I$(KERNEL_ROOT)/resources/ethernet/LwIP/arch +endif +endif ifeq ($(BSP_ROOT),$(KERNEL_ROOT)/board/xidatong-riscv64) KERNELPATHS += \