spi-topcliff-pch: add recovery processing in case wait-event timeout
[zen-stable.git] / arch / hexagon / Makefile
blob0c4de8790fd54fce3477cf5c0f0227dba3351839
1 # Makefile for the Hexagon arch
3 KBUILD_DEFCONFIG = comet_defconfig
5 # Do not use GP-relative jumps
6 KBUILD_CFLAGS += -G0
7 LDFLAGS_vmlinux += -G0
9 # Do not use single-byte enums; these will overflow.
10 KBUILD_CFLAGS += -fno-short-enums
12 # Modules must use either long-calls, or use pic/plt.
13 # Use long-calls for now, it's easier. And faster.
14 # CFLAGS_MODULE += -fPIC
15 # LDFLAGS_MODULE += -shared
16 CFLAGS_MODULE += -mlong-calls
18 cflags-$(CONFIG_HEXAGON_ARCH_V1) += $(call cc-option,-mv1)
19 cflags-$(CONFIG_HEXAGON_ARCH_V2) += $(call cc-option,-mv2)
20 cflags-$(CONFIG_HEXAGON_ARCH_V3) += $(call cc-option,-mv3)
21 cflags-$(CONFIG_HEXAGON_ARCH_V4) += $(call cc-option,-mv4)
23 aflags-$(CONFIG_HEXAGON_ARCH_V1) += $(call cc-option,-mv1)
24 aflags-$(CONFIG_HEXAGON_ARCH_V2) += $(call cc-option,-mv2)
25 aflags-$(CONFIG_HEXAGON_ARCH_V3) += $(call cc-option,-mv3)
26 aflags-$(CONFIG_HEXAGON_ARCH_V4) += $(call cc-option,-mv4)
28 ldflags-$(CONFIG_HEXAGON_ARCH_V1) += $(call cc-option,-mv1)
29 ldflags-$(CONFIG_HEXAGON_ARCH_V2) += $(call cc-option,-mv2)
30 ldflags-$(CONFIG_HEXAGON_ARCH_V3) += $(call cc-option,-mv3)
31 ldflags-$(CONFIG_HEXAGON_ARCH_V4) += $(call cc-option,-mv4)
33 KBUILD_CFLAGS += $(cflags-y)
34 KBUILD_AFLAGS += $(aflags-y)
36 # no KBUILD_LDFLAGS?
37 LDFLAGS += $(ldflags-y)
39 # Thread-info register will be r19. This value is not configureable;
40 # it is hard-coded in several files.
41 TIR_NAME := r19
42 KBUILD_CFLAGS += -ffixed-$(TIR_NAME) -DTHREADINFO_REG=$(TIR_NAME) -D__linux__
43 KBUILD_AFLAGS += -DTHREADINFO_REG=$(TIR_NAME)
45 LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
46 libs-y += $(LIBGCC)
48 head-y := arch/hexagon/kernel/head.o \
49 arch/hexagon/kernel/init_task.o
51 core-y += arch/hexagon/kernel/ \
52 arch/hexagon/mm/ \
53 arch/hexagon/lib/
55 # arch/hexagon/platform/common/
57 #core-$(CONFIG_HEXAGON_COMET) += arch/hexagon/platform/comet/
58 #machine-$(CONFIG_HEXAGON_COMET) := comet