mk: fix custom kernel directory name

When building dpdk with different kernel headers by specifying
RTE_KERNELDIR igb_uio is compiled to directory with a name of the
version of kernel thats running on the system instead of the one that
dpdk is actually compiled against. Fixed by replacing hardcoded value
with value from RTE_KERNELDIR.

Fixes: 3967af352a ("mk: install kernel modules")
Cc: stable@dpdk.org

Signed-off-by: Herakliusz Lipiec <herakliusz.lipiec@intel.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
This commit is contained in:
Herakliusz Lipiec 2019-07-19 18:05:43 +01:00 committed by Thomas Monjalon
parent c0ed103a02
commit a3549d2716

View file

@ -27,7 +27,7 @@ ifeq ($(RTE_EXEC_ENV),linuxapp)
RTE_EXEC_ENV=linux
endif
ifeq ($(RTE_EXEC_ENV),linux)
kerneldir ?= /lib/modules/$(shell uname -r)/extra/dpdk
kerneldir ?= $(RTE_KERNELDIR:/build=/extra/dpdk)
else
kerneldir ?= /boot/modules
endif