Lines Matching +full:arm64 +full:- +full:efi

2 # arch/arm64/Makefile
5 # architecture-specific flags and dependencies.
11 # Copyright (C) 1995-2001 by Russell King
13 LDFLAGS_vmlinux :=--no-undefined -X --pic-veneer
16 # Pass --no-apply-dynamic-relocs to restore pre-binutils-2.27 behaviour
19 LDFLAGS_vmlinux += -shared -Bsymbolic -z notext \
20 $(call ld-option, --no-apply-dynamic-relocs)
25 LDFLAGS_vmlinux += --fix-cortex-a53-843419
29 cc_has_k_constraint := $(call try-run,echo \
33 }' | $(CC) -S -x c -o "$$TMP" -,,-DCONFIG_CC_HAS_K_CONSTRAINT=1)
39 KBUILD_CFLAGS += -mgeneral-regs-only \
41 KBUILD_CFLAGS += $(call cc-disable-warning, psabi)
44 KBUILD_CFLAGS += $(call cc-option,-mabi=lp64)
45 KBUILD_AFLAGS += $(call cc-option,-mabi=lp64)
49 KBUILD_CFLAGS += -fno-asynchronous-unwind-tables -fno-unwind-tables
50 KBUILD_AFLAGS += -fno-asynchronous-unwind-tables -fno-unwind-tables
52 KBUILD_CFLAGS += -fasynchronous-unwind-tables
53 KBUILD_AFLAGS += -fasynchronous-unwind-tables
59 $(eval KBUILD_CFLAGS += -mstack-protector-guard=sysreg \
60 -mstack-protector-guard-reg=sp_el0 \
61 -mstack-protector-guard-offset=$(shell \
63 include/generated/asm-offsets.h))
67 KBUILD_CFLAGS += -mbranch-protection=pac-ret+bti
70 KBUILD_CFLAGS += -mbranch-protection=pac-ret
72 KBUILD_CFLAGS += -msign-return-address=non-leaf
75 KBUILD_CFLAGS += $(call cc-option,-mbranch-protection=none)
81 # For non-integrated assemblers we'll pass this on the command line, and for
90 asm-arch := armv8.5-a
92 asm-arch := armv8.4-a
94 asm-arch := armv8.3-a
96 asm-arch := armv8.2-a
99 ifdef asm-arch
100 KBUILD_CFLAGS += -Wa,-march=$(asm-arch) \
101 -DARM64_ASM_ARCH='"$(asm-arch)"'
105 KBUILD_CFLAGS += -ffixed-x18
109 KBUILD_CPPFLAGS += -mbig-endian
110 CHECKFLAGS += -D__AARCH64EB__
113 KBUILD_LDFLAGS += -EB $(call ld-option, -maarch64elfb, -maarch64linuxb -z norelro)
116 KBUILD_CPPFLAGS += -mlittle-endian
117 CHECKFLAGS += -D__AARCH64EL__
119 KBUILD_LDFLAGS += -EL $(call ld-option, -maarch64elf, -maarch64linux -z norelro)
124 KBUILD_LDFLAGS += -z norelro
127 CHECKFLAGS += -D__aarch64__
130 KBUILD_CPPFLAGS += -DCC_USING_PATCHABLE_FUNCTION_ENTRY
131 CC_FLAGS_FTRACE := -fpatchable-function-entry=4,2
133 KBUILD_CPPFLAGS += -DCC_USING_PATCHABLE_FUNCTION_ENTRY
134 CC_FLAGS_FTRACE := -fpatchable-function-entry=2
143 KBUILD_CFLAGS += -DKASAN_SHADOW_SCALE_SHIFT=$(KASAN_SHADOW_SCALE_SHIFT)
144 KBUILD_CPPFLAGS += -DKASAN_SHADOW_SCALE_SHIFT=$(KASAN_SHADOW_SCALE_SHIFT)
145 KBUILD_AFLAGS += -DKASAN_SHADOW_SCALE_SHIFT=$(KASAN_SHADOW_SCALE_SHIFT)
147 libs-y := arch/arm64/lib/ $(libs-y)
148 libs-$(CONFIG_EFI_STUB) += $(objtree)/drivers/firmware/efi/libstub/lib.a
151 boot := arch/arm64/boot
156 KBUILD_IMAGE := $(boot)/vmlinuz.efi
161 vmlinuz.efi: Image
162 Image vmlinuz.efi: vmlinux
173 $(Q)$(MAKE) $(build)=arch/arm64/tools kapi
176 …@echo "warning: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum"…
186 # We need to generate vdso-offsets.h before compiling certain files in kernel/.
188 # asm-offsets.h is included in some files used to generate vdso-offsets.h, and
189 # asm-offsets.h is built in prepare0, for which archprepare is a dependency.
194 $(Q)$(MAKE) $(build)=arch/arm64/kernel/vdso \
195 include/generated/vdso-offsets.h arch/arm64/kernel/vdso/vdso.so
197 $(Q)$(MAKE) $(build)=arch/arm64/kernel/vdso32 \
198 include/generated/vdso32-offsets.h arch/arm64/kernel/vdso32/vdso.so
202 vdso-install-y += arch/arm64/kernel/vdso/vdso.so.dbg
203 vdso-install-$(CONFIG_COMPAT_VDSO) += arch/arm64/kernel/vdso32/vdso.so.dbg:vdso32.so
212 echo '* Image.gz - Compressed kernel image (arch/$(ARCH)/boot/Image.gz)'
213 echo ' Image - Uncompressed kernel image (arch/$(ARCH)/boot/Image)'
214 echo ' install - Install uncompressed kernel'
215 echo ' zinstall - Install compressed kernel'