From patchwork Mon Aug 15 05:07:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Lacombe X-Patchwork-Id: 1066602 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p7F58neJ020275 for ; Mon, 15 Aug 2011 05:08:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751555Ab1HOFIQ (ORCPT ); Mon, 15 Aug 2011 01:08:16 -0400 Received: from mail-yi0-f46.google.com ([209.85.218.46]:44899 "EHLO mail-yi0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752197Ab1HOFIM (ORCPT ); Mon, 15 Aug 2011 01:08:12 -0400 Received: by mail-yi0-f46.google.com with SMTP id 30so2986468yie.19 for ; Sun, 14 Aug 2011 22:08:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=tbS4b3dHwluKA0Oc+ic6PA1WsVEIybXUxOJlm6lXdak=; b=KG0MA5k0sgrWvlya4DsoKdKCDwlWkFokTfBFG3a0u/5PAbQrXAb5fZozheXDlHzAUQ DrIfrhsQ+ZCl71bv9/8lptPPwf+Mr4XH7Bp2nOQUGkSgGy4Q7GSOXJzG0KPXDbRUs39B btZln6rc8DFfzNWiGjU85retzYsaInN/x7N/4= Received: by 10.236.154.199 with SMTP id h47mr10941435yhk.162.1313384891952; Sun, 14 Aug 2011 22:08:11 -0700 (PDT) Received: from localhost.localdomain (69-165-142-232.dsl.teksavvy.com [69.165.142.232]) by mx.google.com with ESMTPS id e21sm668516yhn.21.2011.08.14.22.08.08 (version=SSLv3 cipher=OTHER); Sun, 14 Aug 2011 22:08:11 -0700 (PDT) From: Arnaud Lacombe To: linux-kernel@vger.kernel.org Cc: Arnaud Lacombe , Sam Ravnborg , linux-kbuild@vger.kernel.org Subject: [PATCH 10/11] scripts/Makefile.build: do not reference EXTRA_CFLAGS as CFLAGS replacement Date: Mon, 15 Aug 2011 01:07:13 -0400 Message-Id: <1313384834-24433-11-git-send-email-lacombar@gmail.com> X-Mailer: git-send-email 1.7.6.153.g78432 In-Reply-To: <1313384834-24433-1-git-send-email-lacombar@gmail.com> References: <1313384834-24433-1-git-send-email-lacombar@gmail.com> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 15 Aug 2011 05:09:00 +0000 (UTC) Usage of these flags has been deprecated for nearly 4 years by: commit f77bf01425b11947eeb3b5b54685212c302741b8 Author: Sam Ravnborg Date: Mon Oct 15 22:25:06 2007 +0200 kbuild: introduce ccflags-y, asflags-y and ldflags-y Moreover, these flags (at least EXTRA_CFLAGS) have been documented for command line use. By default, gmake(1) do not override command line setting, so this is likely to result in build failure or unexpected behavior. Do not advertise for its usage. Cc: Sam Ravnborg Cc: linux-kbuild@vger.kernel.org --- scripts/Makefile.build | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/scripts/Makefile.build b/scripts/Makefile.build index a0fd502..d2b366c 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -46,7 +46,7 @@ include $(kbuild-file) # If the save-* variables changed error out ifeq ($(KBUILD_NOPEDANTIC),) ifneq ("$(save-cflags)","$(CFLAGS)") - $(error CFLAGS was changed in "$(kbuild-file)". Fix it to use EXTRA_CFLAGS) + $(error CFLAGS was changed in "$(kbuild-file)". Fix it to use ccflags-y) endif endif