From: Herakliusz Lipiec Date: Fri, 19 Jul 2019 17:05:43 +0000 (+0100) Subject: mk: fix custom kernel directory name X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=commitdiff_plain;h=a3549d2716d66afaf345f1ae8ffd4eb838383189 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: 3967af352aeb ("mk: install kernel modules") Cc: stable@dpdk.org Signed-off-by: Herakliusz Lipiec Acked-by: Thomas Monjalon --- diff --git a/mk/rte.sdkinstall.mk b/mk/rte.sdkinstall.mk index 5c4215cd7a..32bed5d951 100644 --- a/mk/rte.sdkinstall.mk +++ b/mk/rte.sdkinstall.mk @@ -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