Lines Matching +full:image +full:- +full:specific
2 # architecture-specific flags and dependencies.
9 LDFLAGS_vmlinux := -z norelro
11 LDFLAGS_vmlinux += -shared -Bsymbolic -z notext
12 KBUILD_CFLAGS += -fPIE
15 LDFLAGS_vmlinux += --no-relax
16 KBUILD_CPPFLAGS += -DCC_USING_PATCHABLE_FUNCTION_ENTRY
18 CC_FLAGS_FTRACE := -fpatchable-function-entry=8,4
20 CC_FLAGS_FTRACE := -fpatchable-function-entry=4,2
25 KBUILD_CFLAGS_MODULE += -mcmodel=medany
33 KBUILD_CFLAGS += -mabi=lp64
34 KBUILD_AFLAGS += -mabi=lp64
36 KBUILD_LDFLAGS += -melf64lriscv
38 KBUILD_RUSTFLAGS += -Ctarget-cpu=generic-rv64 --target=riscv64imac-unknown-none-elf \
39 -Cno-redzone
44 KBUILD_CFLAGS += -mabi=ilp32
45 KBUILD_AFLAGS += -mabi=ilp32
46 KBUILD_LDFLAGS += -melf32lriscv
49 # LLVM has an issue with target-features and LTO: https://github.com/llvm/llvm-project/issues/59350
51 # be incorrect: https://github.com/llvm/llvm-project/issues/65090
53 KBUILD_LDFLAGS += -mllvm -mattr=+c -mllvm -mattr=+relax
57 KBUILD_LDFLAGS += --no-relax-gp
61 riscv-march-$(CONFIG_ARCH_RV32I) := rv32ima
62 riscv-march-$(CONFIG_ARCH_RV64I) := rv64ima
63 riscv-march-$(CONFIG_FPU) := $(riscv-march-y)fd
64 riscv-march-$(CONFIG_RISCV_ISA_C) := $(riscv-march-y)c
65 riscv-march-$(CONFIG_RISCV_ISA_V) := $(riscv-march-y)v
68 KBUILD_RUSTFLAGS += -Ctarget-feature=-c
72 KBUILD_CFLAGS += -Wa,-misa-spec=2.2
73 KBUILD_AFLAGS += -Wa,-misa-spec=2.2
75 riscv-march-$(CONFIG_TOOLCHAIN_NEEDS_EXPLICIT_ZICSR_ZIFENCEI) := $(riscv-march-y)_zicsr_zifencei
79 riscv-march-$(CONFIG_TOOLCHAIN_HAS_ZACAS) := $(riscv-march-y)_zacas
82 riscv-march-$(CONFIG_TOOLCHAIN_HAS_ZABHA) := $(riscv-march-y)_zabha
85 # matching non-v and non-multi-letter extensions out with the filter ([^v_]*)
86 KBUILD_CFLAGS += -march=$(shell echo $(riscv-march-y) | sed -E 's/(rv32ima|rv64ima)fd([^v_]*)v?/\1\…
88 KBUILD_AFLAGS += -march=$(riscv-march-y)
90 # For C code built with floating-point support, exclude V but keep F and D.
91 CC_FLAGS_FPU := -march=$(shell echo $(riscv-march-y) | sed -E 's/(rv32ima|rv64ima)([^v_]*)v?/\1\2/…
93 KBUILD_CFLAGS += -mno-save-restore
96 KBUILD_CFLAGS += -mcmodel=medlow
99 KBUILD_CFLAGS += -mcmodel=medany
103 KBUILD_CFLAGS += -fno-asynchronous-unwind-tables -fno-unwind-tables
105 # The RISC-V attributes frequently cause compatibility issues and provide no
107 KBUILD_CFLAGS += $(call cc-option,-mno-riscv-attribute)
108 KBUILD_AFLAGS += $(call cc-option,-mno-riscv-attribute)
109 KBUILD_CFLAGS += $(call as-option,-Wa$(comma)-mno-arch-attr)
110 KBUILD_AFLAGS += $(call as-option,-Wa$(comma)-mno-arch-attr)
112 KBUILD_CFLAGS_MODULE += $(call cc-option,-mno-relax)
113 KBUILD_AFLAGS_MODULE += $(call as-option,-Wa$(comma)-mno-relax)
115 # GCC versions that support the "-mstrict-align" option default to allowing
117 # RISC-V ISA, they're emulated by machine mode traps on all extant
120 KBUILD_CFLAGS += $(call cc-option,-mstrict-align)
126 $(eval KBUILD_CFLAGS += -mstack-protector-guard=tls \
127 -mstack-protector-guard-reg=tp \
128 -mstack-protector-guard-offset=$(shell \
130 $(objtree)/include/generated/asm-offsets.h))
133 # arch specific predefines for sparse
134 CHECKFLAGS += -D__riscv -D__riscv_xlen=$(BITS)
138 boot-image-y := Image
139 boot-image-$(CONFIG_KERNEL_BZIP2) := Image.bz2
140 boot-image-$(CONFIG_KERNEL_GZIP) := Image.gz
141 boot-image-$(CONFIG_KERNEL_LZ4) := Image.lz4
142 boot-image-$(CONFIG_KERNEL_LZMA) := Image.lzma
143 boot-image-$(CONFIG_KERNEL_LZO) := Image.lzo
144 boot-image-$(CONFIG_KERNEL_ZSTD) := Image.zst
145 boot-image-$(CONFIG_KERNEL_XZ) := Image.xz
147 boot-image-$(CONFIG_SOC_CANAAN_K210) := loader.bin
149 boot-image-$(CONFIG_EFI_ZBOOT) := vmlinuz.efi
150 boot-image-$(CONFIG_XIP_KERNEL) := xipImage
151 KBUILD_IMAGE := $(boot)/$(boot-image-y)
153 libs-y += arch/riscv/lib/
154 libs-$(CONFIG_EFI_STUB) += $(objtree)/drivers/firmware/efi/libstub/lib.a
160 $(Q)$(MAKE) $(build)=arch/riscv/kernel/vdso include/generated/vdso-offsets.h
162 $(build)=arch/riscv/kernel/compat_vdso include/generated/compat_vdso-offsets.h)
167 vdso-install-y += arch/riscv/kernel/vdso/vdso.so.dbg
168 vdso-install-$(CONFIG_COMPAT) += arch/riscv/kernel/compat_vdso/compat_vdso.so.dbg
170 BOOT_TARGETS := Image Image.gz Image.bz2 Image.lz4 Image.lzma Image.lzo Image.zst Image.xz loader l…
175 Image.gz Image.bz2 Image.lz4 Image.lzma Image.lzo Image.zst Image.xz loader xipImage vmlinuz.efi: I…
188 $(Q)$(MAKE) KCONFIG_ALLCONFIG=$(srctree)/arch/riscv/configs/32-bit.config \
189 -f $(srctree)/Makefile randconfig
193 $(Q)$(MAKE) KCONFIG_ALLCONFIG=$(srctree)/arch/riscv/configs/64-bit.config \
194 -f $(srctree)/Makefile randconfig
198 $(Q)$(MAKE) -f $(srctree)/Makefile defconfig 32-bit.config
202 $(Q)$(MAKE) -f $(srctree)/Makefile nommu_virt_defconfig 32-bit.config
205 echo ' Image - Uncompressed kernel image (arch/riscv/boot/Image)'
206 echo ' Image.gz - Compressed kernel image (arch/riscv/boot/Image.gz)'
207 echo ' Image.bz2 - Compressed kernel image (arch/riscv/boot/Image.bz2)'
208 echo ' Image.lz4 - Compressed kernel image (arch/riscv/boot/Image.lz4)'
209 echo ' Image.lzma - Compressed kernel image (arch/riscv/boot/Image.lzma)'
210 echo ' Image.lzo - Compressed kernel image (arch/riscv/boot/Image.lzo)'
211 echo ' Image.zst - Compressed kernel image (arch/riscv/boot/Image.zst)'
212 echo ' Image.xz - Compressed kernel image (arch/riscv/boot/Image.xz)'
213 echo ' vmlinuz.efi - Compressed EFI kernel image (arch/riscv/boot/vmlinuz.efi)'
215 echo ' xipImage - Execute-in-place kernel image (arch/riscv/boot/xipImage)'
217 echo ' install - Install kernel using (your) ~/bin/$(INSTALLKERNEL) or'