vhost: build eventfd_link module against specified kernel

The vHost eventlink driver is a kernel module that requires a kernel
source/build directory to build the ko. Convert the fixed kernel build
directory specifier to one which may be user specified on the command-line.

Signed-off-by: Aaron Conole <aconole@redhat.com>
This commit is contained in:
Aaron Conole 2015-09-23 16:03:36 -04:00 committed by Thomas Monjalon
parent d533647a87
commit a17cc4f172

View File

@ -29,11 +29,13 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
RTE_KERNELDIR ?= /lib/modules/$(shell uname -r)/build
obj-m += eventfd_link.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
make -C $(RTE_KERNELDIR) M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
make -C $(RTE_KERNELDIR) M=$(PWD) clean