From patchwork Wed Aug 19 10:19:55 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cong Wang X-Patchwork-Id: 42564 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n7JAOABW005107 for ; Wed, 19 Aug 2009 10:24:51 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751403AbZHSKYs (ORCPT ); Wed, 19 Aug 2009 06:24:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751371AbZHSKYs (ORCPT ); Wed, 19 Aug 2009 06:24:48 -0400 Received: from mail-px0-f182.google.com ([209.85.216.182]:53798 "EHLO mail-px0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751287AbZHSKYs (ORCPT ); Wed, 19 Aug 2009 06:24:48 -0400 X-Greylist: delayed 429 seconds by postgrey-1.27 at vger.kernel.org; Wed, 19 Aug 2009 06:24:48 EDT Received: by pxi12 with SMTP id 12so2389565pxi.22 for ; Wed, 19 Aug 2009 03:24:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=+A09jXyPFpnVr64ciFRhJyukXGb9Yh8hjI3gSeFYQa0=; b=jrY1eVyDVuCljcyRb319TtwwWPF63/84xTmMocT/6f/L8xtpweh4odRiU338mdnB1q MU07iQBRGJyAG6t0IQMfHNP7sKWbIPy9/oiknHJMjWwWLcfymlXgDgCTsJG1sdk2zc4c ixlcHbVv2Ocxnr5jLysLbiDU1CKbg7MDVBzT4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=LftR7tbN5jY54BDqFFHW1NDT41aP0CjCzeXJjxGdMlnS8on3l7p2epqYX27vLfe3s6 JA/Fbz9ZtW63crvkWHyGlwGeHrHXjaBCVDBCEyKOWwfNQ2C9OPcqDousUqMhk8JkVP4a vT1B2Q/CCjCYAbnO54XOn4cwiU8TS5oVlGA6M= Received: by 10.115.24.11 with SMTP id b11mr1579315waj.69.1250677058543; Wed, 19 Aug 2009 03:17:38 -0700 (PDT) Received: from cr0.nay.redhat.com ([60.247.97.97]) by mx.google.com with ESMTPS id m17sm14918238waf.3.2009.08.19.03.17.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 19 Aug 2009 03:17:37 -0700 (PDT) Date: Wed, 19 Aug 2009 18:19:55 +0800 From: Amerigo Wang To: Alek Du Cc: Kernel Mailing List , linux-kbuild@vger.kernel.org, Sam Ravnborg Subject: [PATCH] scripts: use non-builtin echo for '-e' Message-ID: <20090819101955.GC5057@cr0.nay.redhat.com> References: <20090819173854.2250758f@dxy.sh.intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20090819173854.2250758f@dxy.sh.intel.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org Alek reported that on Ubuntu, where dash is used, 'echo -e' can't work, so let's use non-builtin echo in this case. Reported-by: Alek Du Signed-off-by: WANG Cong --- -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index c29be8f..bace250 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include @@ -99,7 +99,7 @@ as-option = $(call try-run,\ # Usage: cflags-y += $(call as-instr,instr,option1,option2) as-instr = $(call try-run,\ - echo -e "$(1)" | $(CC) $(KBUILD_AFLAGS) -c -xassembler -o "$$TMP" -,$(2),$(3)) + /bin/echo -e "$(1)" | $(CC) $(KBUILD_AFLAGS) -c -xassembler -o "$$TMP" -,$(2),$(3)) # cc-option # Usage: cflags-y += $(call cc-option,-march=winchip-c6,-march=i586) diff --git a/scripts/checkkconfigsymbols.sh b/scripts/checkkconfigsymbols.sh index 39677c8..46be3c5 100755 --- a/scripts/checkkconfigsymbols.sh +++ b/scripts/checkkconfigsymbols.sh @@ -9,7 +9,7 @@ paths="$@" # Doing this once at the beginning saves a lot of time, on a cache-hot tree. Kconfigs="`find . -name 'Kconfig' -o -name 'Kconfig*[^~]'`" -echo -e "File list \tundefined symbol used" +/bin/echo -e "File list \tundefined symbol used" find $paths -name '*.[chS]' -o -name 'Makefile' -o -name 'Makefile*[^~]'| while read i do # Output the bare Kconfig variable and the filename; the _MODULE part at @@ -54,6 +54,6 @@ while read symb files; do # beyond the purpose of this script. symb_bare=`echo $symb | sed -e 's/_MODULE//'` if ! grep -q "\<$symb_bare\>" $Kconfigs; then - echo -e "$files: \t$symb" + /bin/echo -e "$files: \t$symb" fi done|sort