1ifneq ($(GEN_SDK_LIB),1) 2ifeq ($(KERNEL),RTX) 3rtos_lib-y := rtx/TARGET_CORTEX_M/ 4else ifeq ($(KERNEL),RTX5) 5rtos_lib-y := rtx5/ 6else ifeq ($(KERNEL),FREERTOS) 7rtos_lib-y := freertos/ 8else ifeq ($(KERNEL),RHINO) 9ifeq ($(KERNEL_INTO_LIB),1) 10rtos_lib-y := rhino/ 11else 12rtos_lib-y := 13endif 14ifeq ($(KERNEL),RHINO) 15rtos_lib-y += rhino/cmsis/cmsis_os.o 16rtos_lib-y += rhino/cmsis/cmsis_init.o 17rtos_lib-y += rhino/cmsis/k_membox.o 18endif 19endif 20 21ifeq ($(MBED),1) 22rtos_lib-y += rtos/ 23endif 24 25obj-y := rtos_lib.o 26ifeq ($(KERNEL), RHINO) 27ifneq ($(KERNEL_INTO_LIB),1) 28obj-y += rhino/ 29endif 30endif #rhino 31 32 33else 34 35cur_dir := $(dir $(lastword $(MAKEFILE_LIST))) 36 37LIB_NAME := librtos 38ifneq ($(SDK),1) 39 40ifeq ($(KERNEL),RTX) 41rtos_lib-y := rtx/TARGET_CORTEX_M/ 42else ifeq ($(KERNEL),RTX5) 43rtos_lib-y := rtx5/ 44else ifeq ($(KERNEL),FREERTOS) 45rtos_lib-y := freertos/ 46else ifeq ($(KERNEL),RHINO) 47ifeq ($(KERNEL_INTO_LIB),1) 48rtos_lib-y := rhino/ 49else 50rtos_lib-y := 51endif 52ifeq ($(KERNEL),RHINO) 53rtos_lib-y += rhino/cmsis/cmsis_os.o 54rtos_lib-y += rhino/cmsis/cmsis_init.o 55rtos_lib-y += rhino/cmsis/k_membox.o 56endif 57endif 58 59ifeq ($(MBED),1) 60rtos_lib-y += rtos/ 61endif 62 63 64$(LIB_NAME)-y := $(rtos_lib-y) 65endif 66 67obj-y := $(LIB_NAME).a 68ifeq ($(KERNEL), RHINO) 69ifneq ($(KERNEL_INTO_LIB),1) 70obj-y += rhino/ 71endif 72endif #rhino 73endif 74 75ccflags-y += -Irtos/rhino/include 76ccflags-y += -Irtos/rhino/cmsis 77subdir-ccflags-y += -Iplatform/cmsis/inc -Iplatform/hal -Iutils/hwtimer_list -DRHINO_CONFIG_CLI_AS_NMI=1 78subdir-asflags-y += -Iplatform/cmsis/inc -DRHINO_CONFIG_CLI_AS_NMI=1 79 80