Makefile (715a1284d89a740b197b3bad5eb20d36a397382f) Makefile (0673cb38951215060d7993b43ad3c45cd413c2c3)
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 =

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

82compress-$(CONFIG_KERNEL_XZ) = xzkern
83compress-$(CONFIG_KERNEL_LZ4) = lz4
84
85libfdt_objs := fdt_rw.o fdt_ro.o fdt_wip.o fdt.o
86
87ifeq ($(CONFIG_ARM_ATAG_DTB_COMPAT),y)
88OBJS += $(libfdt_objs) atags_to_fdt.o
89endif
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 =

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

82compress-$(CONFIG_KERNEL_XZ) = xzkern
83compress-$(CONFIG_KERNEL_LZ4) = lz4
84
85libfdt_objs := fdt_rw.o fdt_ro.o fdt_wip.o fdt.o
86
87ifeq ($(CONFIG_ARM_ATAG_DTB_COMPAT),y)
88OBJS += $(libfdt_objs) atags_to_fdt.o
89endif
90ifeq ($(CONFIG_USE_OF),y)
91OBJS += $(libfdt_objs) fdt_check_mem_start.o
92endif
90
91# -fstack-protector-strong triggers protection checks in this code,
92# but it is being used too early to link to meaningful stack_chk logic.
93
94# -fstack-protector-strong triggers protection checks in this code,
95# but it is being used too early to link to meaningful stack_chk logic.
93$(foreach o, $(libfdt_objs) atags_to_fdt.o, \
96$(foreach o, $(libfdt_objs) atags_to_fdt.o fdt_check_mem_start.o, \
94 $(eval CFLAGS_$(o) := -I $(srctree)/scripts/dtc/libfdt -fno-stack-protector))
95
96# These were previously generated C files. When you are building the kernel
97# with O=, make sure to remove the stale files in the output tree. Otherwise,
98# the build system wrongly compiles the stale ones.
99ifdef building_out_of_srctree
100$(shell rm -f $(addprefix $(obj)/, fdt_rw.c fdt_ro.c fdt_wip.c fdt.c))
101endif

--- 98 unchanged lines hidden ---
97 $(eval CFLAGS_$(o) := -I $(srctree)/scripts/dtc/libfdt -fno-stack-protector))
98
99# These were previously generated C files. When you are building the kernel
100# with O=, make sure to remove the stale files in the output tree. Otherwise,
101# the build system wrongly compiles the stale ones.
102ifdef building_out_of_srctree
103$(shell rm -f $(addprefix $(obj)/, fdt_rw.c fdt_ro.c fdt_wip.c fdt.c))
104endif

--- 98 unchanged lines hidden ---