From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <luca.boccassi@gmail.com>
Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65])
 by dpdk.org (Postfix) with ESMTP id A5C2E2AA0;
 Tue,  1 May 2018 15:50:49 +0200 (CEST)
Received: by mail-wm0-f65.google.com with SMTP id x12so14986257wmc.0;
 Tue, 01 May 2018 06:50:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references;
 bh=8l7TAg0ACpkNnJmU3IaBRADlWIhBPuznsT/d9IqPZq0=;
 b=lThV2ci1cTDHD+Oz1dCN5WnWVcyS4Unx5wJgmN5mAcAvyULXInP+TPeNY1rAYCUrL/
 hKOG0y/5InQOG5/qo32sWdITQI8mgrNMia45jbw88Pdew6Nsya2rbZe/IDQEY/J65j1k
 RVRTJMXXQ6vrvVTEWW4SPSDbr0x4yOehHQaqoFovVugF70GOcHYsNz/GyPXEnhHE6XTD
 57Zkp+oD8q2kQAhr6T0druUrsfaYcx3cGhuLj8uMFZQZTGvEIIrlUKgIAcNHLbw0LWLw
 Z20vfM7LvXmDqZXP9Vdt4NqgtENVaWg1L7VAXRLaoqDbsuFZtureKBmeuO0n8RFZA4WC
 +o4g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references;
 bh=8l7TAg0ACpkNnJmU3IaBRADlWIhBPuznsT/d9IqPZq0=;
 b=JUXAi8dZHgKqqQ0smtV3VKVkeAUaWixzEEc37tKsLOj8aU/VMMfM2MXTCCnNrDM2Gf
 RDMoc64iTet1ROODdH8YrYL/crMnGufufmSZnKP4I4edNNV50QUIoBykog2sXjHleIwj
 ZNPccTI4VbNWiYvqpsLSuwYbOmI9pZfGcS8oyN4I103xWPKlX6SYnbMSodQ8fWKkVHNq
 igW6EN8PnaxAMmuR0Srvi3Zz5Xd+GQe3hMBXD95V+nEhuslGnM4jYLfJgN8E9Zqr+bvw
 NtuJlMZk+mGyLYIIQTW4Cl4aUHYtCDapiC8nHS5qstX/vg9upbUGq7HJg5RP85Ob/d4L
 xkfw==
X-Gm-Message-State: ALQs6tAEf4pDD4W3N8FNxejXIvx4TXx1VPLUD9JhozCcjJX3YxRY7pJS
 JrBeJfowP49+r27kO8g1xyAzs8cFQG4=
X-Google-Smtp-Source: AB8JxZqnWzOKyf2z2u8p6xsV3XMEe17IgAZIoexfjzShPszCF4E3tnaUZgQoOyXt7MZ72uL164aYIQ==
X-Received: by 10.28.64.3 with SMTP id n3mr10345468wma.33.1525182649106;
 Tue, 01 May 2018 06:50:49 -0700 (PDT)
Received: from localhost (slip139-92-244-193.lon.uk.prserv.net.
 [139.92.244.193])
 by smtp.gmail.com with ESMTPSA id b85sm5193222wme.46.2018.05.01.06.50.45
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Tue, 01 May 2018 06:50:48 -0700 (PDT)
From: luca.boccassi@gmail.com
To: dev@dpdk.org
Cc: stable@dpdk.org
Date: Tue,  1 May 2018 14:50:33 +0100
Message-Id: <20180501135033.16164-1-luca.boccassi@gmail.com>
X-Mailer: git-send-email 2.14.2
In-Reply-To: <20180501133907.15310-1-luca.boccassi@gmail.com>
References: <20180501133907.15310-1-luca.boccassi@gmail.com>
Subject: [dpdk-stable] [PATCH v2] igb_uio: pass MODULE_CFLAGS in new Kbuild
X-BeenThere: stable@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches for DPDK stable branches <stable.dpdk.org>
List-Unsubscribe: <https://dpdk.org/ml/options/stable>,
 <mailto:stable-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/stable/>
List-Post: <mailto:stable@dpdk.org>
List-Help: <mailto:stable-request@dpdk.org?subject=help>
List-Subscribe: <https://dpdk.org/ml/listinfo/stable>,
 <mailto:stable-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Tue, 01 May 2018 13:50:49 -0000

From: Luca Boccassi <bluca@debian.org>

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>
---
v2: forgot --signed-off, added

 kernel/linux/igb_uio/Kbuild | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/linux/igb_uio/Kbuild b/kernel/linux/igb_uio/Kbuild
index 98c98fe52..3ab85c411 100644
--- a/kernel/linux/igb_uio/Kbuild
+++ b/kernel/linux/igb_uio/Kbuild
@@ -1 +1,2 @@
+ccflags-y := $(MODULE_CFLAGS)
 obj-m := igb_uio.o
-- 
2.14.2