OSDN Git Service

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)
commit6fb3084ab5d9331cfadf07c59cf4a0bd4059bf4a
tree69aefef61501e7a3bfe0d1f040705ac0336666b4
parentf982fb62a304235397ec092936432199ca50ac4d
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