Explicitly pass kerneldir= variable 76/5776/1
authorJan Blunck <jblunck@brocade.com>
Thu, 16 Mar 2017 15:51:47 +0000 (16:51 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 16 Mar 2017 15:57:15 +0000 (15:57 +0000)
This is a workaround for the assumption of install-kmod functionality
that the running kernel is identical with the kernel we build against.
This fixes commit 75964339a3 ("Make debian/rules file call install-kmod").

Change-Id: If5b9a99db36d4a9130ee9876ef93d581132369fc
Signed-off-by: Jan Blunck <jblunck@infradead.org>
Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
debian/rules

index 03d6e44..9e272aa 100755 (executable)
@@ -271,6 +271,7 @@ override_dh_auto_install-arch:
 ifneq (,$(KVERS))
        # Package: dpdk-modules-<kernel version>
        $(MAKE) V=$(DH_VERBOSE) O=$(DPDK_SHARED_DIR) \
+               kerneldir=/lib/modules/$(KVERS)/extra/dpdk \
                DESTDIR=debian/dpdk-modules-$(KVERS) install-kmod
 endif