Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kbuild: hard-code KBUILD_ALLDIRS in scripts/Makefile.package

My future plan is to list subdirectories in ./Kbuild. When it occurs,
$(vmlinux-alldirs) will not contain all subdirectories.

Let's hard-code the directory list until I get around to implementing
a more sophisticated way for generating a source tarball.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>

+6 -7
+2 -6
Makefile
··· 1109 1109 $(core-y) $(core-m) $(drivers-y) $(drivers-m) \ 1110 1110 $(libs-y) $(libs-m))) 1111 1111 1112 - vmlinux-alldirs := $(sort $(vmlinux-dirs) Documentation \ 1112 + build-dirs := $(vmlinux-dirs) 1113 + clean-dirs := $(sort $(vmlinux-dirs) Documentation \ 1113 1114 $(patsubst %/,%,$(filter %/, $(core-) \ 1114 1115 $(drivers-) $(libs-)))) 1115 - 1116 - build-dirs := $(vmlinux-dirs) 1117 - clean-dirs := $(vmlinux-alldirs) 1118 1116 1119 1117 subdir-modorder := $(addsuffix /modules.order, $(build-dirs)) 1120 1118 ··· 1129 1131 1130 1132 export KBUILD_VMLINUX_OBJS KBUILD_VMLINUX_LIBS 1131 1133 export KBUILD_LDS := arch/$(SRCARCH)/kernel/vmlinux.lds 1132 - # used by scripts/Makefile.package 1133 - export KBUILD_ALLDIRS := $(sort $(filter-out arch/%,$(vmlinux-alldirs)) LICENSES arch include scripts tools) 1134 1134 1135 1135 vmlinux-deps := $(KBUILD_LDS) $(KBUILD_VMLINUX_OBJS) $(KBUILD_VMLINUX_LIBS) 1136 1136
+4 -1
scripts/Makefile.package
··· 29 29 KBUILD_PKG_ROOTCMD ?="fakeroot -u" 30 30 export KDEB_SOURCENAME 31 31 # Include only those top-level files that are needed by make, plus the GPL copy 32 - TAR_CONTENT := $(KBUILD_ALLDIRS) .config .scmversion Makefile \ 32 + TAR_CONTENT := Documentation LICENSES arch block certs crypto drivers fs \ 33 + include init io_uring ipc kernel lib mm net samples scripts \ 34 + security sound tools usr virt \ 35 + .config .scmversion Makefile \ 33 36 Kbuild Kconfig COPYING $(wildcard localversion*) 34 37 MKSPEC := $(srctree)/scripts/package/mkspec 35 38