1 # SPDX-License-Identifier: GPL-2.0 2 # Makefile for the Hexagon arch 3 4 KBUILD_DEFCONFIG = comet_defconfig 5 6 # Do not use GP-relative jumps 7 KBUILD_CFLAGS += -G0 8 LDFLAGS_vmlinux += -G0 9 10 # Do not use single-byte enums; these will ove 11 KBUILD_CFLAGS += -fno-short-enums 12 13 # We must use long-calls: 14 KBUILD_CFLAGS += -mlong-calls 15 16 # Modules must use either long-calls, or use p 17 # Use long-calls for now, it's easier. And fa 18 # KBUILD_CFLAGS_MODULE += -fPIC 19 # KBUILD_LDFLAGS_MODULE += -shared 20 KBUILD_CFLAGS_MODULE += -mlong-calls 21 22 cflags-y += $(call cc-option,-mv${CONFIG_HEXAG 23 aflags-y += $(call cc-option,-mv${CONFIG_HEXAG 24 ldflags-y += $(call cc-option,-mv${CONFIG_HEXA 25 26 KBUILD_CFLAGS += $(cflags-y) 27 KBUILD_AFLAGS += $(aflags-y) 28 KBUILD_LDFLAGS += $(ldflags-y) 29 30 # Thread-info register will be r19. This valu 31 # it is hard-coded in several files. 32 TIR_NAME := r19 33 KBUILD_CFLAGS += -ffixed-$(TIR_NAME) -DTHREADI 34 KBUILD_AFLAGS += -DTHREADINFO_REG=$(TIR_NAME)
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.