Makefile (734958ef0b5497b1b9cb827afb541e7825477bbd) Makefile (e223a449125571daa62debd8249fa4fc2da0a961)
1# SPDX-License-Identifier: GPL-2.0
2# Copyright 2022 Google LLC
3
4KBUILD_CFLAGS := $(subst $(CC_FLAGS_FTRACE),,$(KBUILD_CFLAGS)) -fpie \
5 -Os -DDISABLE_BRANCH_PROFILING $(DISABLE_STACKLEAK_PLUGIN) \
6 $(DISABLE_LATENT_ENTROPY_PLUGIN) \
7 $(call cc-option,-mbranch-protection=none) \
8 -I$(srctree)/scripts/dtc/libfdt -fno-stack-protector \

--- 24 unchanged lines hidden (view full) ---

33 $(call if_changed,piobjcopy)
34
35# ensure that all the lib- code ends up as __init code and data
36$(obj)/lib-%.pi.o: OBJCOPYFLAGS += --prefix-alloc-sections=.init
37
38$(obj)/lib-%.o: $(srctree)/lib/%.c FORCE
39 $(call if_changed_rule,cc_o_c)
40
1# SPDX-License-Identifier: GPL-2.0
2# Copyright 2022 Google LLC
3
4KBUILD_CFLAGS := $(subst $(CC_FLAGS_FTRACE),,$(KBUILD_CFLAGS)) -fpie \
5 -Os -DDISABLE_BRANCH_PROFILING $(DISABLE_STACKLEAK_PLUGIN) \
6 $(DISABLE_LATENT_ENTROPY_PLUGIN) \
7 $(call cc-option,-mbranch-protection=none) \
8 -I$(srctree)/scripts/dtc/libfdt -fno-stack-protector \

--- 24 unchanged lines hidden (view full) ---

33 $(call if_changed,piobjcopy)
34
35# ensure that all the lib- code ends up as __init code and data
36$(obj)/lib-%.pi.o: OBJCOPYFLAGS += --prefix-alloc-sections=.init
37
38$(obj)/lib-%.o: $(srctree)/lib/%.c FORCE
39 $(call if_changed_rule,cc_o_c)
40
41obj-y := relocate.pi.o
42obj-$(CONFIG_RANDOMIZE_BASE) += kaslr_early.pi.o lib-fdt.pi.o lib-fdt_ro.pi.o
41obj-y := idreg-override.pi.o lib-fdt.pi.o lib-fdt_ro.pi.o
42obj-$(CONFIG_RELOCATABLE) += relocate.pi.o
43obj-$(CONFIG_RANDOMIZE_BASE) += kaslr_early.pi.o
43extra-y := $(patsubst %.pi.o,%.o,$(obj-y))
44extra-y := $(patsubst %.pi.o,%.o,$(obj-y))