igb_uio: pass MODULE_CFLAGS in Kbuild
authorLuca Boccassi <bluca@debian.org>
Tue, 1 May 2018 13:50:33 +0000 (14:50 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 1 May 2018 14:46:22 +0000 (16:46 +0200)
With the legacy build system MODULE_CFLAGS can be set to pass compiler
flags specific for the kernel modules builds.
This is used currently by Ubuntu and Debian.
Set ccflags-y in the Kbuild to achieve the same result with Meson, and
to keep backward compatbility with older scripts.

Fixes regression in Ubuntu/Debian when the Kbuild is included in the
DKMS source package, as DKMS will pick it up silently by default if
present, causing the MODULE_CFLAGS to be ignored.

Fixes: a52f4574f798 ("igb_uio: build with meson")
Cc: stable@dpdk.org
Signed-off-by: Luca Boccassi <bluca@debian.org>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
kernel/linux/igb_uio/Kbuild

index 98c98fe..3ab85c4 100644 (file)
@@ -1 +1,2 @@
+ccflags-y := $(MODULE_CFLAGS)
 obj-m := igb_uio.o