Makefile (c95baf12f5077419db01313ab61c2aac007d40cd) Makefile (89604523a76eb3e13014b2bdab7f8870becee284)
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 =

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

96targets := vmlinux vmlinux.lds piggy_data piggy.o \
97 lib1funcs.o ashldi3.o bswapsdi2.o \
98 head.o $(OBJS)
99
100clean-files += piggy_data lib1funcs.S ashldi3.S bswapsdi2.S \
101 $(libfdt) $(libfdt_hdrs) hyp-stub.S
102
103KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING
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 =

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

96targets := vmlinux vmlinux.lds piggy_data piggy.o \
97 lib1funcs.o ashldi3.o bswapsdi2.o \
98 head.o $(OBJS)
99
100clean-files += piggy_data lib1funcs.S ashldi3.S bswapsdi2.S \
101 $(libfdt) $(libfdt_hdrs) hyp-stub.S
102
103KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING
104KBUILD_CFLAGS += $(DISABLE_ARM_SSP_PER_TASK_PLUGIN)
105
106ifeq ($(CONFIG_FUNCTION_TRACER),y)
107ORIG_CFLAGS := $(KBUILD_CFLAGS)
108KBUILD_CFLAGS = $(subst -pg, , $(ORIG_CFLAGS))
109endif
110
111# -fstack-protector-strong triggers protection checks in this code,
112# but it is being used too early to link to meaningful stack_chk logic.
104
105ifeq ($(CONFIG_FUNCTION_TRACER),y)
106ORIG_CFLAGS := $(KBUILD_CFLAGS)
107KBUILD_CFLAGS = $(subst -pg, , $(ORIG_CFLAGS))
108endif
109
110# -fstack-protector-strong triggers protection checks in this code,
111# but it is being used too early to link to meaningful stack_chk logic.
113nossp_flags := $(call cc-option, -fno-stack-protector)
114CFLAGS_atags_to_fdt.o := $(nossp_flags)
115CFLAGS_fdt.o := $(nossp_flags)
116CFLAGS_fdt_ro.o := $(nossp_flags)
117CFLAGS_fdt_rw.o := $(nossp_flags)
118CFLAGS_fdt_wip.o := $(nossp_flags)
112nossp-flags-$(CONFIG_CC_HAS_STACKPROTECTOR_NONE) := -fno-stack-protector
113CFLAGS_atags_to_fdt.o := $(nossp-flags-y)
114CFLAGS_fdt.o := $(nossp-flags-y)
115CFLAGS_fdt_ro.o := $(nossp-flags-y)
116CFLAGS_fdt_rw.o := $(nossp-flags-y)
117CFLAGS_fdt_wip.o := $(nossp-flags-y)
119
118
120ccflags-y := -fpic $(call cc-option,-mno-single-pic-base,) -fno-builtin -I$(obj)
119ccflags-y := -fpic $(call cc-option,-mno-single-pic-base,) -fno-builtin \
120 -I$(obj) $(DISABLE_ARM_SSP_PER_TASK_PLUGIN)
121asflags-y := -DZIMAGE
122
123# Supply kernel BSS size to the decompressor via a linker symbol.
124KBSS_SZ = $(shell echo $$(($$($(NM) $(obj)/../../../../vmlinux | \
125 sed -n -e 's/^\([^ ]*\) [AB] __bss_start$$/-0x\1/p' \
126 -e 's/^\([^ ]*\) [AB] __bss_stop$$/+0x\1/p') )) )
127LDFLAGS_vmlinux = --defsym _kernel_bss_size=$(KBSS_SZ)
128# Supply ZRELADDR to the decompressor via a linker symbol.

--- 74 unchanged lines hidden ---
121asflags-y := -DZIMAGE
122
123# Supply kernel BSS size to the decompressor via a linker symbol.
124KBSS_SZ = $(shell echo $$(($$($(NM) $(obj)/../../../../vmlinux | \
125 sed -n -e 's/^\([^ ]*\) [AB] __bss_start$$/-0x\1/p' \
126 -e 's/^\([^ ]*\) [AB] __bss_stop$$/+0x\1/p') )) )
127LDFLAGS_vmlinux = --defsym _kernel_bss_size=$(KBSS_SZ)
128# Supply ZRELADDR to the decompressor via a linker symbol.

--- 74 unchanged lines hidden ---