Skip to content

Commit 23febe3

Browse files
committed
kbuild: merge init-y into core-y
No arch Makefile specifies init-y. Merge init-y into core-y. This does not change the link order. Signed-off-by: Masahiro Yamada <[email protected]>
1 parent f3908ab commit 23febe3

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Makefile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -643,12 +643,11 @@ endif
643643

644644
ifeq ($(KBUILD_EXTMOD),)
645645
# Objects we will link into vmlinux / subdirs we need to visit
646-
init-y := init/
646+
core-y := init/ usr/
647647
drivers-y := drivers/ sound/
648648
drivers-$(CONFIG_SAMPLES) += samples/
649649
net-y := net/
650650
libs-y := lib/
651-
core-y := usr/
652651
virt-y := virt/
653652
endif # KBUILD_EXTMOD
654653

@@ -1060,18 +1059,17 @@ export MODULES_NSDEPS := $(extmod-prefix)modules.nsdeps
10601059
ifeq ($(KBUILD_EXTMOD),)
10611060
core-y += kernel/ certs/ mm/ fs/ ipc/ security/ crypto/ block/
10621061

1063-
vmlinux-dirs := $(patsubst %/,%,$(filter %/, $(init-y) $(init-m) \
1062+
vmlinux-dirs := $(patsubst %/,%,$(filter %/, \
10641063
$(core-y) $(core-m) $(drivers-y) $(drivers-m) \
10651064
$(net-y) $(net-m) $(libs-y) $(libs-m) $(virt-y)))
10661065

10671066
vmlinux-alldirs := $(sort $(vmlinux-dirs) Documentation \
1068-
$(patsubst %/,%,$(filter %/, $(init-) $(core-) \
1067+
$(patsubst %/,%,$(filter %/, $(core-) \
10691068
$(drivers-) $(net-) $(libs-) $(virt-))))
10701069

10711070
build-dirs := $(vmlinux-dirs)
10721071
clean-dirs := $(vmlinux-alldirs)
10731072

1074-
init-y := $(patsubst %/, %/built-in.a, $(init-y))
10751073
core-y := $(patsubst %/, %/built-in.a, $(core-y))
10761074
drivers-y := $(patsubst %/, %/built-in.a, $(drivers-y))
10771075
net-y := $(patsubst %/, %/built-in.a, $(net-y))
@@ -1085,7 +1083,7 @@ endif
10851083
virt-y := $(patsubst %/, %/built-in.a, $(virt-y))
10861084

10871085
# Externally visible symbols (used by link-vmlinux.sh)
1088-
export KBUILD_VMLINUX_OBJS := $(head-y) $(init-y) $(core-y) $(libs-y2) \
1086+
export KBUILD_VMLINUX_OBJS := $(head-y) $(core-y) $(libs-y2) \
10891087
$(drivers-y) $(net-y) $(virt-y)
10901088
export KBUILD_VMLINUX_LIBS := $(libs-y1)
10911089
export KBUILD_LDS := arch/$(SRCARCH)/kernel/vmlinux.lds

0 commit comments

Comments
 (0)