1# Copyright (c) 2021 Bestechnic (Shanghai) Co., Ltd. All rights reserved. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13ifeq ($(KERNEL),RTX) 14rtos_lib-y := rtx/TARGET_CORTEX_M/ 15else ifeq ($(KERNEL),RTX5) 16rtos_lib-y := rtx5/ 17else ifeq ($(KERNEL),FREERTOS) 18rtos_lib-y := freertos/ 19else ifeq ($(KERNEL),NUTTX) 20rtos_lib-y := nuttx/ 21else ifeq ($(KERNEL),RTT) 22rtos_lib-y := rt_thread/ 23KBUILD_CFLAGS += -Wno-error=date-time 24else ifeq ($(KERNEL),LITEOS_M) 25rtos_lib-y := liteos/liteos_m/ 26else ifeq ($(KERNEL),LITEOS_A) 27rtos_lib-y := liteos/liteos_a/ 28else ifeq ($(KERNEL),RHINO) 29ifeq ($(KERNEL_INTO_LIB),1) 30rtos_lib-y := rhino/ 31else 32rtos_lib-y := 33endif 34ifeq ($(KERNEL),RHINO) 35rtos_lib-y += rhino/cmsis/cmsis_os.o 36rtos_lib-y += rhino/cmsis/cmsis_init.o 37rtos_lib-y += rhino/cmsis/cmsis_os2.o 38rtos_lib-y += rhino/cmsis/k_membox.o 39endif 40endif 41 42ifeq ($(MBED),1) 43rtos_lib-y += rtos/ 44endif 45 46obj-y := rtos_lib.o 47ifeq ($(KERNEL), RHINO) 48ifneq ($(KERNEL_INTO_LIB),1) 49obj-y += rhino/ 50endif 51endif #rhino 52 53subdir-ccflags-y += -Iplatform/cmsis/inc -Iplatform/hal -Iutils/hwtimer_list 54 55