From patchwork Wed Nov 19 17:51:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Porcedda X-Patchwork-Id: 412475 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id AEC461400E2 for ; Thu, 20 Nov 2014 04:51:48 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id AD53E33E73; Wed, 19 Nov 2014 17:51:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NIsfwMM9wg-y; Wed, 19 Nov 2014 17:51:44 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 73BEE33F01; Wed, 19 Nov 2014 17:51:44 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id E66601BF863 for ; Wed, 19 Nov 2014 17:51:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id E36029633D for ; Wed, 19 Nov 2014 17:51:42 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id m7f92GGOPU0Q for ; Wed, 19 Nov 2014 17:51:42 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pd0-f171.google.com (mail-pd0-f171.google.com [209.85.192.171]) by hemlock.osuosl.org (Postfix) with ESMTPS id 48FA99633C for ; Wed, 19 Nov 2014 17:51:42 +0000 (UTC) Received: by mail-pd0-f171.google.com with SMTP id v10so1306632pde.2 for ; Wed, 19 Nov 2014 09:51:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=5TwTDAScopa3lkDV6yX6ERSWHkQMDQaSf/RzPYJ3hyA=; b=HOew8kjD2oLNdvgtfu+ROvFf/Q7EmktylRJ+MJ8mX81XI6z2CY6AugCMxtxZZB9tJt M6S26yQmB+vly28t1vj8Muzv9UzDniddB0ax/VfJqA6m1DHC2jX77vAOm3uL2RNlSFSm DXFfcdj1MQSmtBOuYAr3ehQP5Ee2rbRGyIKLYvOR67LHztBifhVQRJedoVEy1UlaQGws GD/DC4w3IzPkBtcp+cpQW5oC4+le/1lIMSUYnrdN9aPazOS0eNuwCp80bbr+MvRM9y/K /B786Zs/AYzNAfEMgv7q70t41CMlMtujuZ15th8ROzTSqTM2IqgJynR4qDpeRaBfekPJ HFeQ== X-Received: by 10.68.196.163 with SMTP id in3mr48064957pbc.100.1416419501647; Wed, 19 Nov 2014 09:51:41 -0800 (PST) Received: from ld2077.tmt.telital.com ([213.205.6.118]) by mx.google.com with ESMTPSA id h6sm2364132pdk.38.2014.11.19.09.51.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 19 Nov 2014 09:51:40 -0800 (PST) From: Fabio Porcedda To: buildroot@uclibc.org Date: Wed, 19 Nov 2014 18:51:34 +0100 Message-Id: <1416419494-14916-1-git-send-email-fabio.porcedda@gmail.com> X-Mailer: git-send-email 2.1.3 Subject: [Buildroot] [PATCH v4] Makefile: improve detection of make "-s" flag X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Because it's just checked the presence of the "s" character even a make --warn-undefined-variables is detected as a silent build so fix this by filtering out long options. Signed-off-by: Fabio Porcedda Cc: Arnout Vandecappelle --- Notes: v4: - split this patch from the patch set to send to muster as bugfix v2: - remove spurious space at the beginning of the QUIET variable (Arnout) Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 471edf9..6b97dc6 100644 --- a/Makefile +++ b/Makefile @@ -303,7 +303,7 @@ GNU_HOST_NAME := $(shell support/gnuconfig/config.guess) TARGETS := # silent mode requested? -QUIET := $(if $(findstring s,$(MAKEFLAGS)),-q) +QUIET := $(if $(findstring s, $(filter-out --%, $(MAKEFLAGS))),-q) # Strip off the annoying quoting ARCH := $(call qstrip,$(BR2_ARCH))