NAME := rhino

$(NAME)_TYPE := kernel
$(NAME)_COMPONENTS += rhino

GLOBAL_INCLUDES += core/include

$(NAME)_CFLAGS += -Wall -Werror
ifeq ($(HOST_ARCH),ARM968E-S)
$(NAME)_CFLAGS += -marm -mthumb-interwork
endif

CONFIG_SYSINFO_KERNEL_VERSION = AOS-R-1.1.0
GLOBAL_CFLAGS += -DSYSINFO_KERNEL_VERSION=\"$(CONFIG_SYSINFO_KERNEL_VERSION)\"
$(info kernel_version:${CONFIG_SYSINFO_KERNEL_VERSION})

$(NAME)_SOURCES := core/k_err.c          \
                   core/k_mm.c           \
                   core/k_mm_debug.c     \
                   core/k_obj_set.c      \
                   core/k_ringbuf.c      \
                   core/k_stats.c        \
                   core/k_task_sem.c     \
                   core/k_timer.c        \
                   core/k_buf_queue.c    \
                   core/k_event.c        \
                   core/k_mm_blk.c       \
                   core/k_mutex.c        \
                   core/k_pend.c         \
                   core/k_sched.c        \
                   core/k_sys.c          \
                   core/k_tick.c         \
                   core/k_workqueue.c    \
                   core/k_dyn_mem_proc.c \
                   core/k_idle.c         \
                   core/k_obj.c          \
                   core/k_queue.c        \
                   core/k_sem.c          \
                   core/k_task.c         \
                   core/k_time.c         \
                   core/k_fifo.c         \
                   core/k_trace.c

