@@ -643,12 +643,11 @@ endif
643
643
644
644
ifeq ($(KBUILD_EXTMOD ) ,)
645
645
# Objects we will link into vmlinux / subdirs we need to visit
646
- init -y := init/
646
+ core -y := init/ usr /
647
647
drivers-y := drivers/ sound/
648
648
drivers-$(CONFIG_SAMPLES) += samples/
649
649
net-y := net/
650
650
libs-y := lib/
651
- core-y := usr/
652
651
virt-y := virt/
653
652
endif # KBUILD_EXTMOD
654
653
@@ -1060,18 +1059,17 @@ export MODULES_NSDEPS := $(extmod-prefix)modules.nsdeps
1060
1059
ifeq ($(KBUILD_EXTMOD ) ,)
1061
1060
core-y += kernel/ certs/ mm/ fs/ ipc/ security/ crypto/ block/
1062
1061
1063
- vmlinux-dirs := $(patsubst % /,% ,$(filter % /, $( init-y ) $( init-m ) \
1062
+ vmlinux-dirs := $(patsubst % /,% ,$(filter % /, \
1064
1063
$(core-y ) $(core-m ) $(drivers-y ) $(drivers-m ) \
1065
1064
$(net-y ) $(net-m ) $(libs-y ) $(libs-m ) $(virt-y ) ) )
1066
1065
1067
1066
vmlinux-alldirs := $(sort $(vmlinux-dirs ) Documentation \
1068
- $(patsubst % /,% ,$(filter % /, $(init- ) $( core- ) \
1067
+ $(patsubst % /,% ,$(filter % /, $(core- ) \
1069
1068
$(drivers- ) $(net- ) $(libs- ) $(virt- ) ) ) )
1070
1069
1071
1070
build-dirs := $(vmlinux-dirs )
1072
1071
clean-dirs := $(vmlinux-alldirs )
1073
1072
1074
- init-y := $(patsubst % /, % /built-in.a, $(init-y ) )
1075
1073
core-y := $(patsubst % /, % /built-in.a, $(core-y ) )
1076
1074
drivers-y := $(patsubst % /, % /built-in.a, $(drivers-y ) )
1077
1075
net-y := $(patsubst % /, % /built-in.a, $(net-y ) )
@@ -1085,7 +1083,7 @@ endif
1085
1083
virt-y := $(patsubst % /, % /built-in.a, $(virt-y ) )
1086
1084
1087
1085
# 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 ) \
1089
1087
$(drivers-y ) $(net-y ) $(virt-y )
1090
1088
export KBUILD_VMLINUX_LIBS := $(libs-y1 )
1091
1089
export KBUILD_LDS := arch/$(SRCARCH ) /kernel/vmlinux.lds
0 commit comments