1 # SPDX-License-Identifier: GPL-2.0 2 # Copyright 2022 Google LLC 3 4 KBUILD_CFLAGS := $(subst $(CC_FLAGS_FTRACE), 5 -Os -DDISABLE_BRANCH_PROFIL 6 $(DISABLE_LATENT_ENTROPY_PL 7 $(call cc-option,-mbranch-p 8 -I$(srctree)/scripts/dtc/li 9 -include $(srctree)/include 10 -D__DISABLE_EXPORTS -ffrees 11 -fno-asynchronous-unwind-ta 12 $(call cc-option,-fno-addrs 13 14 # this code may run with the MMU off so disabl 15 CFLAGS_map_range.o += -mstrict-align 16 17 # remove SCS flags from all objects in this di 18 KBUILD_CFLAGS := $(filter-out $(CC_FLAGS_SCS 19 # disable LTO 20 KBUILD_CFLAGS := $(filter-out $(CC_FLAGS_LTO 21 22 hostprogs := relacheck 23 24 quiet_cmd_piobjcopy = $(quiet_cmd_objcopy) 25 cmd_piobjcopy = $(cmd_objcopy) && $(obj) 26 27 $(obj)/%.pi.o: OBJCOPYFLAGS := --prefix-symbol 28 --remove-sectio 29 $(obj)/%.pi.o: $(obj)/%.o $(obj)/relacheck FOR 30 $(call if_changed,piobjcopy) 31 32 # ensure that all the lib- code ends up as __i 33 $(obj)/lib-%.pi.o: OBJCOPYFLAGS += --prefix-al 34 35 $(obj)/lib-%.o: $(srctree)/lib/%.c FORCE 36 $(call if_changed_rule,cc_o_c) 37 38 obj-y := idr 39 map 40 lib 41 obj-$(CONFIG_RELOCATABLE) += rel 42 obj-$(CONFIG_RANDOMIZE_BASE) += kas 43 obj-$(CONFIG_UNWIND_PATCH_PAC_INTO_SCS) += pat 44 extra-y := $(p
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.