summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorFeng Wu <feng.wu@intel.com>2015-09-22 04:47:29 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2015-10-01 09:06:44 -0400
commit37d9fe4783ffcaddcc4afe67626691e62c5ab30e (patch)
treed7f612a319a2b2dc7d1b25801dee2ca302e72c48 /Makefile
parentf73f8173126ba68eb1c42bd9a234a51d78576ca6 (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--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 1d341eba143d..7c6c9769bd1c 100644
--- a/Makefile
+++ b/Makefile
@@ -550,6 +550,7 @@ drivers-y := drivers/ sound/ firmware/
550net-y := net/ 550net-y := net/
551libs-y := lib/ 551libs-y := lib/
552core-y := usr/ 552core-y := usr/
553virt-y := virt/
553endif # KBUILD_EXTMOD 554endif # KBUILD_EXTMOD
554 555
555ifeq ($(dot-config),1) 556ifeq ($(dot-config),1)
@@ -882,10 +883,10 @@ core-y += kernel/ certs/ mm/ fs/ ipc/ security/ crypto/ block/
882 883
883vmlinux-dirs := $(patsubst %/,%,$(filter %/, $(init-y) $(init-m) \ 884vmlinux-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
887vmlinux-alldirs := $(sort $(vmlinux-dirs) $(patsubst %/,%,$(filter %/, \ 888vmlinux-alldirs := $(sort $(vmlinux-dirs) $(patsubst %/,%,$(filter %/, \
888 $(init-) $(core-) $(drivers-) $(net-) $(libs-)))) 889 $(init-) $(core-) $(drivers-) $(net-) $(libs-) $(virt-))))
889 890
890init-y := $(patsubst %/, %/built-in.o, $(init-y)) 891init-y := $(patsubst %/, %/built-in.o, $(init-y))
891core-y := $(patsubst %/, %/built-in.o, $(core-y)) 892core-y := $(patsubst %/, %/built-in.o, $(core-y))
@@ -894,14 +895,15 @@ net-y := $(patsubst %/, %/built-in.o, $(net-y))
894libs-y1 := $(patsubst %/, %/lib.a, $(libs-y)) 895libs-y1 := $(patsubst %/, %/lib.a, $(libs-y))
895libs-y2 := $(patsubst %/, %/built-in.o, $(libs-y)) 896libs-y2 := $(patsubst %/, %/built-in.o, $(libs-y))
896libs-y := $(libs-y1) $(libs-y2) 897libs-y := $(libs-y1) $(libs-y2)
898virt-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)
899export KBUILD_VMLINUX_INIT := $(head-y) $(init-y) 901export KBUILD_VMLINUX_INIT := $(head-y) $(init-y)
900export KBUILD_VMLINUX_MAIN := $(core-y) $(libs-y) $(drivers-y) $(net-y) 902export KBUILD_VMLINUX_MAIN := $(core-y) $(libs-y) $(drivers-y) $(net-y) $(virt-y)
901export KBUILD_LDS := arch/$(SRCARCH)/kernel/vmlinux.lds 903export KBUILD_LDS := arch/$(SRCARCH)/kernel/vmlinux.lds
902export LDFLAGS_vmlinux 904export LDFLAGS_vmlinux
903# used by scripts/pacmage/Makefile 905# used by scripts/pacmage/Makefile
904export KBUILD_ALLDIRS := $(sort $(filter-out arch/%,$(vmlinux-alldirs)) arch Documentation include samples scripts tools virt) 906export KBUILD_ALLDIRS := $(sort $(filter-out arch/%,$(vmlinux-alldirs)) arch Documentation include samples scripts tools)
905 907
906vmlinux-deps := $(KBUILD_LDS) $(KBUILD_VMLINUX_INIT) $(KBUILD_VMLINUX_MAIN) 908vmlinux-deps := $(KBUILD_LDS) $(KBUILD_VMLINUX_INIT) $(KBUILD_VMLINUX_MAIN)
907 909