ifeq ($(CONFIG_KERNEL_V2),y) ccflags-y += -I$(srctree)/kernel/unified/include else ccflags-y += -I$(srctree)/kernel/nanokernel/include ccflags-y += -I$(srctree)/kernel/microkernel/include endif asflags-y := ${ccflags-y} obj-y = exc_exit.o irq_init.o \ swap.o \ fault.o \ irq_manage.o thread.o cpu_idle.o \ fault_s.o isr_wrapper.o \ fatal.o sys_fatal_error_handler.o ifeq ($(CONFIG_KERNEL_V2),y) obj-y += thread_abort.o else obj-y += fiber_abort.o obj-$(CONFIG_MICROKERNEL) += task_abort.o endif obj-$(CONFIG_GDB_INFO) += gdb_stub_irq_vector_table.o gdb_stub.o obj-$(CONFIG_CPLUSPLUS) += __aeabi_atexit.o obj-$(CONFIG_IRQ_OFFLOAD) += irq_offload.o obj-$(CONFIG_CPU_CORTEX_M) += cortex_m/