From f7b5b43b9097ba93bd78b0370c95db2e3b6d88f8 Mon Sep 17 00:00:00 2001 From: Jingru Date: Mon, 13 Jul 2020 20:47:34 +0800 Subject: [PATCH] arch: arc fix build error * add and set TOS_CFG_CPU_BYTE_ORDER * exclude cmsis_os2.c from CMSIS_SRC Signed-off-by: Jingru --- arch/arc/arcem/port_config.h | 1 + board/ARC_NSIM_EM/hello_world/Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arc/arcem/port_config.h b/arch/arc/arcem/port_config.h index 8f247376..b8760b37 100644 --- a/arch/arc/arcem/port_config.h +++ b/arch/arc/arcem/port_config.h @@ -23,5 +23,6 @@ #define TOS_CFG_CPU_STK_GROWTH CPU_STK_GROWTH_DESCENDING #define TOS_CFG_CPU_HRTIMER_EN 0u #define TOS_CFG_CPU_LEAD_ZEROS_ASM_PRESENT 1u +#define TOS_CFG_CPU_BYTE_ORDER 0u #endif /* _PORT_CONFIG_H_ */ diff --git a/board/ARC_NSIM_EM/hello_world/Makefile b/board/ARC_NSIM_EM/hello_world/Makefile index 8ed30185..c660adde 100644 --- a/board/ARC_NSIM_EM/hello_world/Makefile +++ b/board/ARC_NSIM_EM/hello_world/Makefile @@ -95,7 +95,7 @@ ARCH_SRC = \ C_SOURCES += $(ARCH_SRC) CMSIS_SRC = \ - ${wildcard $(TOP_DIR)/osal/cmsis_os/*.c} + ${wildcard $(TOP_DIR)/osal/cmsis_os/cmsis_os.c} C_SOURCES += $(CMSIS_SRC) APPLICATION_SRC = \