2016-09-03 04:20:19 +08:00
|
|
|
ifeq ($(CONFIG_KERNEL_V2),y)
|
|
|
|
ccflags-y += -I$(srctree)/kernel/unified/include
|
|
|
|
else
|
2015-06-04 10:17:57 +08:00
|
|
|
ccflags-y += -I$(srctree)/kernel/nanokernel/include
|
|
|
|
ccflags-y += -I$(srctree)/kernel/microkernel/include
|
2016-09-03 04:20:19 +08:00
|
|
|
endif
|
2015-03-10 07:05:07 +08:00
|
|
|
|
2015-06-04 10:17:57 +08:00
|
|
|
asflags-y := ${ccflags-y}
|
2015-03-10 07:05:07 +08:00
|
|
|
|
2016-07-16 04:15:00 +08:00
|
|
|
obj-y = exc_exit.o irq_init.o \
|
2016-09-03 04:20:19 +08:00
|
|
|
swap.o \
|
2016-06-14 23:28:11 +08:00
|
|
|
fault.o \
|
2015-08-21 04:51:36 +08:00
|
|
|
irq_manage.o thread.o cpu_idle.o \
|
2016-06-14 23:28:11 +08:00
|
|
|
fault_s.o isr_wrapper.o \
|
2015-07-06 22:44:42 +08:00
|
|
|
fatal.o sys_fatal_error_handler.o
|
2015-03-10 07:05:07 +08:00
|
|
|
|
2016-09-03 04:20:19 +08:00
|
|
|
ifeq ($(CONFIG_KERNEL_V2),y)
|
|
|
|
obj-y += thread_abort.o
|
|
|
|
else
|
|
|
|
obj-y += fiber_abort.o
|
|
|
|
obj-$(CONFIG_MICROKERNEL) += task_abort.o
|
|
|
|
endif
|
|
|
|
|
2016-06-14 23:28:11 +08:00
|
|
|
obj-$(CONFIG_GDB_INFO) += gdb_stub_irq_vector_table.o gdb_stub.o
|
2016-01-14 02:02:56 +08:00
|
|
|
obj-$(CONFIG_CPLUSPLUS) += __aeabi_atexit.o
|
2015-11-18 06:08:45 +08:00
|
|
|
obj-$(CONFIG_IRQ_OFFLOAD) += irq_offload.o
|
2015-07-25 02:07:03 +08:00
|
|
|
obj-$(CONFIG_CPU_CORTEX_M) += cortex_m/
|