Skip to content

Commit 95fb631

Browse files
committed
kbuild: merge net-y and virt-y into drivers-y
This will slightly change the link order; drivers-y from arch Makefile will be linked after virt/built-in.a, but I guess this is not a big deal. Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 23febe3 commit 95fb631

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Makefile

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -646,9 +646,8 @@ ifeq ($(KBUILD_EXTMOD),)
646646
core-y := init/ usr/
647647
drivers-y := drivers/ sound/
648648
drivers-$(CONFIG_SAMPLES) += samples/
649-
net-y := net/
649+
drivers-y += net/ virt/
650650
libs-y := lib/
651-
virt-y := virt/
652651
endif # KBUILD_EXTMOD
653652

654653
# The all: target is the default when no target is given on the
@@ -1061,30 +1060,27 @@ core-y += kernel/ certs/ mm/ fs/ ipc/ security/ crypto/ block/
10611060

10621061
vmlinux-dirs := $(patsubst %/,%,$(filter %/, \
10631062
$(core-y) $(core-m) $(drivers-y) $(drivers-m) \
1064-
$(net-y) $(net-m) $(libs-y) $(libs-m) $(virt-y)))
1063+
$(libs-y) $(libs-m)))
10651064

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

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

10731072
core-y := $(patsubst %/, %/built-in.a, $(core-y))
10741073
drivers-y := $(patsubst %/, %/built-in.a, $(drivers-y))
1075-
net-y := $(patsubst %/, %/built-in.a, $(net-y))
10761074
libs-y2 := $(patsubst %/, %/built-in.a, $(filter %/, $(libs-y)))
10771075
ifdef CONFIG_MODULES
10781076
libs-y1 := $(filter-out %/, $(libs-y))
10791077
libs-y2 += $(patsubst %/, %/lib.a, $(filter %/, $(libs-y)))
10801078
else
10811079
libs-y1 := $(patsubst %/, %/lib.a, $(libs-y))
10821080
endif
1083-
virt-y := $(patsubst %/, %/built-in.a, $(virt-y))
10841081

10851082
# Externally visible symbols (used by link-vmlinux.sh)
1086-
export KBUILD_VMLINUX_OBJS := $(head-y) $(core-y) $(libs-y2) \
1087-
$(drivers-y) $(net-y) $(virt-y)
1083+
export KBUILD_VMLINUX_OBJS := $(head-y) $(core-y) $(libs-y2) $(drivers-y)
10881084
export KBUILD_VMLINUX_LIBS := $(libs-y1)
10891085
export KBUILD_LDS := arch/$(SRCARCH)/kernel/vmlinux.lds
10901086
export LDFLAGS_vmlinux

0 commit comments

Comments
 (0)