diff options
author | Feng Wu <feng.wu@intel.com> | 2015-09-22 04:47:29 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-10-01 09:06:44 -0400 |
commit | 37d9fe4783ffcaddcc4afe67626691e62c5ab30e (patch) | |
tree | d7f612a319a2b2dc7d1b25801dee2ca302e72c48 /Makefile | |
parent | f73f8173126ba68eb1c42bd9a234a51d78576ca6 (diff) |
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>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -550,6 +550,7 @@ drivers-y := drivers/ sound/ firmware/ | |||
550 | net-y := net/ | 550 | net-y := net/ |
551 | libs-y := lib/ | 551 | libs-y := lib/ |
552 | core-y := usr/ | 552 | core-y := usr/ |
553 | virt-y := virt/ | ||
553 | endif # KBUILD_EXTMOD | 554 | endif # KBUILD_EXTMOD |
554 | 555 | ||
555 | ifeq ($(dot-config),1) | 556 | ifeq ($(dot-config),1) |
@@ -882,10 +883,10 @@ core-y += kernel/ certs/ mm/ fs/ ipc/ security/ crypto/ block/ | |||
882 | 883 | ||
883 | vmlinux-dirs := $(patsubst %/,%,$(filter %/, $(init-y) $(init-m) \ | 884 | vmlinux-dirs := $(patsubst %/,%,$(filter %/, $(init-y) $(init-m) \ |
884 | $(core-y) $(core-m) $(drivers-y) $(drivers-m) \ | 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 | vmlinux-alldirs := $(sort $(vmlinux-dirs) $(patsubst %/,%,$(filter %/, \ | 888 | vmlinux-alldirs := $(sort $(vmlinux-dirs) $(patsubst %/,%,$(filter %/, \ |
888 | $(init-) $(core-) $(drivers-) $(net-) $(libs-)))) | 889 | $(init-) $(core-) $(drivers-) $(net-) $(libs-) $(virt-)))) |
889 | 890 | ||
890 | init-y := $(patsubst %/, %/built-in.o, $(init-y)) | 891 | init-y := $(patsubst %/, %/built-in.o, $(init-y)) |
891 | core-y := $(patsubst %/, %/built-in.o, $(core-y)) | 892 | core-y := $(patsubst %/, %/built-in.o, $(core-y)) |
@@ -894,14 +895,15 @@ net-y := $(patsubst %/, %/built-in.o, $(net-y)) | |||
894 | libs-y1 := $(patsubst %/, %/lib.a, $(libs-y)) | 895 | libs-y1 := $(patsubst %/, %/lib.a, $(libs-y)) |
895 | libs-y2 := $(patsubst %/, %/built-in.o, $(libs-y)) | 896 | libs-y2 := $(patsubst %/, %/built-in.o, $(libs-y)) |
896 | libs-y := $(libs-y1) $(libs-y2) | 897 | libs-y := $(libs-y1) $(libs-y2) |
898 | virt-y := $(patsubst %/, %/built-in.o, $(virt-y)) | ||
897 | 899 | ||
898 | # Externally visible symbols (used by link-vmlinux.sh) | 900 | # Externally visible symbols (used by link-vmlinux.sh) |
899 | export KBUILD_VMLINUX_INIT := $(head-y) $(init-y) | 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 | export KBUILD_LDS := arch/$(SRCARCH)/kernel/vmlinux.lds | 903 | export KBUILD_LDS := arch/$(SRCARCH)/kernel/vmlinux.lds |
902 | export LDFLAGS_vmlinux | 904 | export LDFLAGS_vmlinux |
903 | # used by scripts/pacmage/Makefile | 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 | vmlinux-deps := $(KBUILD_LDS) $(KBUILD_VMLINUX_INIT) $(KBUILD_VMLINUX_MAIN) | 908 | vmlinux-deps := $(KBUILD_LDS) $(KBUILD_VMLINUX_INIT) $(KBUILD_VMLINUX_MAIN) |
907 | 909 | ||