]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: make: Fix out-of-source module builds
authorSiddharth Chandrasekaran <sidcha@amazon.de>
Wed, 24 Mar 2021 12:43:47 +0000 (13:43 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 30 Mar 2021 17:07:10 +0000 (13:07 -0400)
commit82003a570a50e054c67ca2d8e9a6844cf9bbaf8c
tree69aefef61501e7a3bfe0d1f040705ac0336666b4
parentf438dbbfe0885d15c86050c8bb2cb51fd2d9fde1
KVM: make: Fix out-of-source module builds

Building kvm module out-of-source with,

    make -C $SRC O=$BIN M=arch/x86/kvm

fails to find "irq.h" as the include dir passed to cflags-y does not
prefix the source dir. Fix this by prefixing $(srctree) to the include
dir path.

Signed-off-by: Siddharth Chandrasekaran <sidcha@amazon.de>
Message-Id: <20210324124347.18336-1-sidcha@amazon.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/Makefile