2017-01-13 19:14:33 +08:00
|
|
|
ccflags-y += -I$(srctree)/kernel/unified/include
|
2017-02-16 06:20:53 +08:00
|
|
|
asflags-y += -I$(srctree)/kernel/unified/include -mlongcalls
|
2017-01-13 19:14:33 +08:00
|
|
|
|
|
|
|
ifdef CONFIG_ATOMIC_OPERATIONS_C
|
2017-04-09 23:57:54 +08:00
|
|
|
# Use C routines from kernel/atomic_c.c
|
2017-01-13 19:14:33 +08:00
|
|
|
obj-atomic=
|
|
|
|
else
|
|
|
|
# Use our own routines implmented in assembly
|
|
|
|
obj-atomic=atomic.o
|
|
|
|
endif
|
2017-06-14 01:48:38 +08:00
|
|
|
obj-y = ${obj-atomic} cpu_idle.o fatal.o \
|
2017-01-13 19:14:33 +08:00
|
|
|
swap.o thread.o xt_zephyr.o xtensa_context.o xtensa_intr_asm.o \
|
2017-01-23 00:22:19 +08:00
|
|
|
xtensa_intr.o xtensa_vectors.o irq_manage.o
|
2017-06-14 01:48:38 +08:00
|
|
|
obj-$(CONFIG_XTENSA_USE_CORE_CRT1) += crt1.o
|
2017-01-13 19:14:33 +08:00
|
|
|
obj-$(CONFIG_IRQ_OFFLOAD) += irq_offload.o
|
|
|
|
# Keep this last so that vague linking works
|
|
|
|
obj-y += sw_isr_table.o
|