Makefile (820e9906cf64142169134f35b996108303cf22ca) Makefile (672513bf583157cc088a32e75bd850dd9f81564c)
1# SPDX-License-Identifier: GPL-2.0
2#
3# linux/arch/arm/boot/compressed/Makefile
4#
5# create a compressed vmlinuz image from the original vmlinux
6#
7
8OBJS =

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

88CFLAGS_REMOVE_atags_to_fdt.o += -Wframe-larger-than=${CONFIG_FRAME_WARN}
89CFLAGS_atags_to_fdt.o += -Wframe-larger-than=1280
90OBJS += $(libfdt_objs) atags_to_fdt.o
91endif
92ifeq ($(CONFIG_USE_OF),y)
93OBJS += $(libfdt_objs) fdt_check_mem_start.o
94endif
95
1# SPDX-License-Identifier: GPL-2.0
2#
3# linux/arch/arm/boot/compressed/Makefile
4#
5# create a compressed vmlinuz image from the original vmlinux
6#
7
8OBJS =

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

88CFLAGS_REMOVE_atags_to_fdt.o += -Wframe-larger-than=${CONFIG_FRAME_WARN}
89CFLAGS_atags_to_fdt.o += -Wframe-larger-than=1280
90OBJS += $(libfdt_objs) atags_to_fdt.o
91endif
92ifeq ($(CONFIG_USE_OF),y)
93OBJS += $(libfdt_objs) fdt_check_mem_start.o
94endif
95
96# -fstack-protector-strong triggers protection checks in this code,
97# but it is being used too early to link to meaningful stack_chk logic.
98$(foreach o, $(libfdt_objs) atags_to_fdt.o fdt_check_mem_start.o, \
99 $(eval CFLAGS_$(o) := -I $(srctree)/scripts/dtc/libfdt -fno-stack-protector))
100
101targets := vmlinux vmlinux.lds piggy_data piggy.o \
102 lib1funcs.o ashldi3.o bswapsdi2.o \
103 head.o $(OBJS)
104
105clean-files += lib1funcs.S ashldi3.S bswapsdi2.S hyp-stub.S
106
107KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING
108
109ccflags-y := -fpic $(call cc-option,-mno-single-pic-base,) -fno-builtin \
96targets := vmlinux vmlinux.lds piggy_data piggy.o \
97 lib1funcs.o ashldi3.o bswapsdi2.o \
98 head.o $(OBJS)
99
100clean-files += lib1funcs.S ashldi3.S bswapsdi2.S hyp-stub.S
101
102KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING
103
104ccflags-y := -fpic $(call cc-option,-mno-single-pic-base,) -fno-builtin \
105 -I$(srctree)/scripts/dtc/libfdt -fno-stack-protector \
110 -I$(obj) $(DISABLE_ARM_SSP_PER_TASK_PLUGIN)
111ccflags-remove-$(CONFIG_FUNCTION_TRACER) += -pg
112asflags-y := -DZIMAGE
113
114# Supply kernel BSS size to the decompressor via a linker symbol.
115KBSS_SZ = $(shell echo $$(($$($(NM) $(obj)/../../../../vmlinux | \
116 sed -n -e 's/^\([^ ]*\) [ABD] __bss_start$$/-0x\1/p' \
117 -e 's/^\([^ ]*\) [ABD] __bss_stop$$/+0x\1/p') )) )

--- 80 unchanged lines hidden ---
106 -I$(obj) $(DISABLE_ARM_SSP_PER_TASK_PLUGIN)
107ccflags-remove-$(CONFIG_FUNCTION_TRACER) += -pg
108asflags-y := -DZIMAGE
109
110# Supply kernel BSS size to the decompressor via a linker symbol.
111KBSS_SZ = $(shell echo $$(($$($(NM) $(obj)/../../../../vmlinux | \
112 sed -n -e 's/^\([^ ]*\) [ABD] __bss_start$$/-0x\1/p' \
113 -e 's/^\([^ ]*\) [ABD] __bss_stop$$/+0x\1/p') )) )

--- 80 unchanged lines hidden ---