Skip to content

Commit e21efe8

Browse files
committed
arch: use always-$(KBUILD_BUILTIN) for vmlinux.lds
The extra-y syntax is deprecated. Instead, use always-$(KBUILD_BUILTIN), which behaves equivalently. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Acked-by: Johannes Berg <johannes@sipsolutions.net> Reviewed-by: Nicolas Schier <n.schier@avm.de>
1 parent 1bf807b commit e21efe8

File tree

21 files changed

+21
-21
lines changed

21 files changed

+21
-21
lines changed

arch/alpha/kernel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Makefile for the linux kernel.
44
#
55

6-
extra-y := vmlinux.lds
6+
always-$(KBUILD_BUILTIN) := vmlinux.lds
77
asflags-y := $(KBUILD_CFLAGS)
88
ccflags-y := -Wno-sign-compare
99

arch/arc/kernel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ ifdef CONFIG_ISA_ARCOMPACT
2626
CFLAGS_fpu.o += -mdpfp
2727
endif
2828

29-
extra-y := vmlinux.lds
29+
always-$(KBUILD_BUILTIN) := vmlinux.lds

arch/arm/kernel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,4 @@ obj-$(CONFIG_HAVE_ARM_SMCCC) += smccc-call.o
104104

105105
obj-$(CONFIG_GENERIC_CPU_VULNERABILITIES) += spectre.o
106106

107-
extra-y := vmlinux.lds
107+
always-$(KBUILD_BUILTIN) := vmlinux.lds

arch/arm64/kernel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ $(obj)/vdso32-wrap.o: $(obj)/vdso32/vdso.so
7878

7979
obj-y += probes/
8080
obj-y += head.o
81-
extra-y += vmlinux.lds
81+
always-$(KBUILD_BUILTIN) += vmlinux.lds
8282

8383
ifeq ($(CONFIG_DEBUG_EFI),y)
8484
AFLAGS_head.o += -DVMLINUX_PATH="\"$(realpath $(objtree)/vmlinux)\""

arch/csky/kernel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
extra-y := vmlinux.lds
2+
always-$(KBUILD_BUILTIN) := vmlinux.lds
33

44
obj-y += head.o entry.o atomic.o signal.o traps.o irq.o time.o vdso.o vdso/
55
obj-y += power.o syscall.o syscall_table.o setup.o

arch/hexagon/kernel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
extra-y := vmlinux.lds
2+
always-$(KBUILD_BUILTIN) := vmlinux.lds
33

44
obj-y += head.o
55
obj-$(CONFIG_SMP) += smp.o

arch/loongarch/kernel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
OBJECT_FILES_NON_STANDARD_head.o := y
77

8-
extra-y := vmlinux.lds
8+
always-$(KBUILD_BUILTIN) := vmlinux.lds
99

1010
obj-y += head.o cpu-probe.o cacheinfo.o env.o setup.o entry.o genex.o \
1111
traps.o irq.o idle.o process.o dma.o mem.o reset.o switch.o \

arch/m68k/kernel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Makefile for the linux kernel.
44
#
55

6-
extra-y += vmlinux.lds
6+
always-$(KBUILD_BUILTIN) += vmlinux.lds
77

88
obj-$(CONFIG_MMU_MOTOROLA) := head.o
99
obj-$(CONFIG_SUN3) := sun3-head.o

arch/microblaze/kernel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ CFLAGS_REMOVE_ftrace.o = -pg
1111
CFLAGS_REMOVE_process.o = -pg
1212
endif
1313

14-
extra-y := vmlinux.lds
14+
always-$(KBUILD_BUILTIN) := vmlinux.lds
1515

1616
obj-y += head.o dma.o exceptions.o \
1717
hw_exception_handler.o irq.o \

arch/mips/kernel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Makefile for the Linux/MIPS kernel.
44
#
55

6-
extra-y := vmlinux.lds
6+
always-$(KBUILD_BUILTIN) := vmlinux.lds
77

88
obj-y += head.o branch.o cmpxchg.o elf.o entry.o genex.o idle.o irq.o \
99
process.o prom.o ptrace.o reset.o setup.o signal.o \

arch/nios2/kernel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Makefile for the nios2 linux kernel.
44
#
55

6-
extra-y += vmlinux.lds
6+
always-$(KBUILD_BUILTIN) += vmlinux.lds
77

88
obj-y += head.o
99
obj-y += cpuinfo.o

arch/openrisc/kernel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Makefile for the linux kernel.
44
#
55

6-
extra-y := vmlinux.lds
6+
always-$(KBUILD_BUILTIN) := vmlinux.lds
77

88
obj-y := head.o setup.o or32_ksyms.o process.o dma.o \
99
traps.o time.o irq.o entry.o ptrace.o signal.o \

arch/parisc/kernel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Makefile for arch/parisc/kernel
44
#
55

6-
extra-y := vmlinux.lds
6+
always-$(KBUILD_BUILTIN) := vmlinux.lds
77

88
obj-y := head.o cache.o pacache.o setup.o pdt.o traps.o time.o irq.o \
99
syscall.o entry.o sys_parisc.o firmware.o \

arch/powerpc/kernel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ obj-$(CONFIG_PPC_BOOK3S_32) += head_book3s_32.o
126126
obj-$(CONFIG_44x) += head_44x.o
127127
obj-$(CONFIG_PPC_8xx) += head_8xx.o
128128
obj-$(CONFIG_PPC_85xx) += head_85xx.o
129-
extra-y += vmlinux.lds
129+
always-$(KBUILD_BUILTIN) += vmlinux.lds
130130

131131
obj-$(CONFIG_RELOCATABLE) += reloc_$(BITS).o
132132

arch/riscv/kernel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ CFLAGS_sbi_ecall.o += -D__NO_FORTIFY
4343
endif
4444
endif
4545

46-
extra-y += vmlinux.lds
46+
always-$(KBUILD_BUILTIN) += vmlinux.lds
4747

4848
obj-y += head.o
4949
obj-y += soc.o

arch/s390/kernel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ obj-y += nospec-branch.o ipl_vmparm.o machine_kexec_reloc.o unwind_bc.o
4646
obj-y += smp.o text_amode31.o stacktrace.o abs_lowcore.o facility.o uv.o wti.o
4747
obj-y += diag/
4848

49-
extra-y += vmlinux.lds
49+
always-$(KBUILD_BUILTIN) += vmlinux.lds
5050

5151
obj-$(CONFIG_SYSFS) += nospec-sysfs.o
5252
CFLAGS_REMOVE_nospec-branch.o += $(CC_FLAGS_EXPOLINE)

arch/sh/kernel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Makefile for the Linux/SuperH kernel.
44
#
55

6-
extra-y := vmlinux.lds
6+
always-$(KBUILD_BUILTIN) := vmlinux.lds
77

88
ifdef CONFIG_FUNCTION_TRACER
99
# Do not profile debug and lowlevel utilities

arch/sparc/kernel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ asflags-y := -ansi
99
# Undefine sparc when processing vmlinux.lds - it is used
1010
# And teach CPP we are doing $(BITS) builds (for this case)
1111
CPPFLAGS_vmlinux.lds := -Usparc -m$(BITS)
12-
extra-y += vmlinux.lds
12+
always-$(KBUILD_BUILTIN) += vmlinux.lds
1313

1414
ifdef CONFIG_FUNCTION_TRACER
1515
# Do not profile debug and lowlevel utilities

arch/um/kernel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ CPPFLAGS_vmlinux.lds := -DSTART=$(LDS_START) \
1212
-DELF_ARCH=$(LDS_ELF_ARCH) \
1313
-DELF_FORMAT=$(LDS_ELF_FORMAT) \
1414
$(LDS_EXTRA)
15-
extra-y := vmlinux.lds
15+
always-$(KBUILD_BUILTIN) := vmlinux.lds
1616

1717
obj-y = config.o exec.o exitcode.o irq.o ksyms.o mem.o \
1818
physmem.o process.o ptrace.o reboot.o sigio.o \

arch/x86/kernel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Makefile for the linux kernel.
44
#
55

6-
extra-y += vmlinux.lds
6+
always-$(KBUILD_BUILTIN) += vmlinux.lds
77

88
CPPFLAGS_vmlinux.lds += -U$(UTS_MACHINE)
99

arch/xtensa/kernel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Makefile for the Linux/Xtensa kernel.
44
#
55

6-
extra-y := vmlinux.lds
6+
always-$(KBUILD_BUILTIN) := vmlinux.lds
77

88
obj-y := head.o align.o coprocessor.o entry.o irq.o platform.o process.o \
99
ptrace.o setup.o signal.o stacktrace.o syscall.o time.o traps.o \

0 commit comments

Comments
 (0)