[dpdk-kmods] igb_uio: include MODULE_CFLAGS in Kbuild
Checks
Commit Message
From: Luca Boccassi <luca.boccassi@microsoft.com>
Necessary to get build flags from DKMS.
See:
https://git.dpdk.org/dpdk/commit/?id=816d967717
Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
---
linux/igb_uio/Kbuild | 1 +
1 file changed, 1 insertion(+)
Comments
28/10/2020 19:15, luca.boccassi@gmail.com:
> From: Luca Boccassi <luca.boccassi@microsoft.com>
>
> Necessary to get build flags from DKMS.
>
> See:
>
> https://git.dpdk.org/dpdk/commit/?id=816d967717
[...]
> --- a/linux/igb_uio/Kbuild
> +++ b/linux/igb_uio/Kbuild
> @@ -1 +1,2 @@
> +ccflags-y := $(MODULE_CFLAGS)
> obj-m := igb_uio.o
Yes this patch was not migrated because I though it was referring
to a DPDK-specific variable.
So you mean MODULE_CFLAGS is from the kernel build system?
On Thu, 29 Oct 2020, 20:58 Thomas Monjalon, <thomas@monjalon.net> wrote:
> 28/10/2020 19:15, luca.boccassi@gmail.com:
> > From: Luca Boccassi <luca.boccassi@microsoft.com>
> >
> > Necessary to get build flags from DKMS.
> >
> > See:
> >
> > https://git.dpdk.org/dpdk/commit/?id=816d967717
> [...]
> > --- a/linux/igb_uio/Kbuild
> > +++ b/linux/igb_uio/Kbuild
> > @@ -1 +1,2 @@
> > +ccflags-y := $(MODULE_CFLAGS)
> > obj-m := igb_uio.o
>
> Yes this patch was not migrated because I though it was referring
> to a DPDK-specific variable.
> So you mean MODULE_CFLAGS is from the kernel build system?
>
Yeah dkms uses it
>
@@ -1 +1,2 @@
+ccflags-y := $(MODULE_CFLAGS)
obj-m := igb_uio.o