Commit 37d9fe4783ffcaddcc4afe67626691e62c5ab30e
Committed by
Paolo Bonzini
1 parent
f73f817312
Exists in
smarc_imx_lf-5.15.y
and in
27 other branches
virt: Add virt directory to the top Makefile
We need to build files in virt/lib/, which are now used by KVM and VFIO, so add virt directory to the top Makefile. Signed-off-by: Feng Wu <feng.wu@intel.com> Acked-by: Michal Marek <mmarek@suse.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Showing 2 changed files with 7 additions and 4 deletions Side-by-side Diff
Makefile
... | ... | @@ -550,6 +550,7 @@ |
550 | 550 | net-y := net/ |
551 | 551 | libs-y := lib/ |
552 | 552 | core-y := usr/ |
553 | +virt-y := virt/ | |
553 | 554 | endif # KBUILD_EXTMOD |
554 | 555 | |
555 | 556 | ifeq ($(dot-config),1) |
556 | 557 | |
... | ... | @@ -882,10 +883,10 @@ |
882 | 883 | |
883 | 884 | vmlinux-dirs := $(patsubst %/,%,$(filter %/, $(init-y) $(init-m) \ |
884 | 885 | $(core-y) $(core-m) $(drivers-y) $(drivers-m) \ |
885 | - $(net-y) $(net-m) $(libs-y) $(libs-m))) | |
886 | + $(net-y) $(net-m) $(libs-y) $(libs-m) $(virt-y))) | |
886 | 887 | |
887 | 888 | vmlinux-alldirs := $(sort $(vmlinux-dirs) $(patsubst %/,%,$(filter %/, \ |
888 | - $(init-) $(core-) $(drivers-) $(net-) $(libs-)))) | |
889 | + $(init-) $(core-) $(drivers-) $(net-) $(libs-) $(virt-)))) | |
889 | 890 | |
890 | 891 | init-y := $(patsubst %/, %/built-in.o, $(init-y)) |
891 | 892 | core-y := $(patsubst %/, %/built-in.o, $(core-y)) |
892 | 893 | |
893 | 894 | |
... | ... | @@ -894,14 +895,15 @@ |
894 | 895 | libs-y1 := $(patsubst %/, %/lib.a, $(libs-y)) |
895 | 896 | libs-y2 := $(patsubst %/, %/built-in.o, $(libs-y)) |
896 | 897 | libs-y := $(libs-y1) $(libs-y2) |
898 | +virt-y := $(patsubst %/, %/built-in.o, $(virt-y)) | |
897 | 899 | |
898 | 900 | # Externally visible symbols (used by link-vmlinux.sh) |
899 | 901 | export KBUILD_VMLINUX_INIT := $(head-y) $(init-y) |
900 | -export KBUILD_VMLINUX_MAIN := $(core-y) $(libs-y) $(drivers-y) $(net-y) | |
902 | +export KBUILD_VMLINUX_MAIN := $(core-y) $(libs-y) $(drivers-y) $(net-y) $(virt-y) | |
901 | 903 | export KBUILD_LDS := arch/$(SRCARCH)/kernel/vmlinux.lds |
902 | 904 | export LDFLAGS_vmlinux |
903 | 905 | # used by scripts/pacmage/Makefile |
904 | -export KBUILD_ALLDIRS := $(sort $(filter-out arch/%,$(vmlinux-alldirs)) arch Documentation include samples scripts tools virt) | |
906 | +export KBUILD_ALLDIRS := $(sort $(filter-out arch/%,$(vmlinux-alldirs)) arch Documentation include samples scripts tools) | |
905 | 907 | |
906 | 908 | vmlinux-deps := $(KBUILD_LDS) $(KBUILD_VMLINUX_INIT) $(KBUILD_VMLINUX_MAIN) |
907 | 909 |
virt/Makefile
1 | +obj-y += lib/ |