From patchwork Wed Jun 11 16:20:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Lutomirski X-Patchwork-Id: 4337181 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 47A6DBEEAA for ; Wed, 11 Jun 2014 16:20:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 54D0E202BE for ; Wed, 11 Jun 2014 16:20:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 804FD202B4 for ; Wed, 11 Jun 2014 16:20:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933172AbaFKQUZ (ORCPT ); Wed, 11 Jun 2014 12:20:25 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:54246 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933146AbaFKQUV (ORCPT ); Wed, 11 Jun 2014 12:20:21 -0400 Received: by mail-pa0-f44.google.com with SMTP id bj1so2071156pad.31 for ; Wed, 11 Jun 2014 09:20:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=CQ9F+PXV6SvMruBV8gwiVUY2iUpI65+jqkUh4N/yL04=; b=TTU3wWpS4T8dSEGY6vHBcqKM7Ex/3swLGooleZvPHMnaUOv5Uv1lfrsysjOlB/OY3F IPiJudkI/1yNOIwC925u8HxKECQtX6GmSoiBj0qssxg7toiBtcIAEQ1AOJcQJFSp6n54 RUpGXCE+7RevU7eaBQBcUx3iSXElg0Oy1qOcNrZc+JVfIfB7vwKGEWtNlMv8TtCcCn8T qQgDVP5/WQujNiyQSjrKLcC3AUyYZbj4dsRTUwqfZEL3+2YI7/MsqNmV199mMY39Sk/N YJIJ+l8EZuIucU8JCRZBM/wDiBr8YN9QxoA/lRUkJsp7VB0DHZZiG03Xqw1+8Ae62gKr fnrw== X-Gm-Message-State: ALoCoQmrN+t5nfGQlJj0a4pePjQzajDWp4fuBfYwKvLrj1a1cPEbBVtFxs0kWFVvz8VipOrYXBgb X-Received: by 10.66.172.229 with SMTP id bf5mr14570106pac.57.1402503620494; Wed, 11 Jun 2014 09:20:20 -0700 (PDT) Received: from localhost (50-76-60-73-ip-static.hfc.comcastbusiness.net. [50.76.60.73]) by mx.google.com with ESMTPSA id fk4sm31444487pab.23.2014.06.11.09.20.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Jun 2014 09:20:19 -0700 (PDT) From: Andy Lutomirski To: "H. Peter Anvin" , Josh Boyer Cc: Michal Marek , linux-kbuild@vger.kernel.org, "Linux-Kernel@Vger. Kernel. Org" , Andy Lutomirski Subject: [PATCH 1/2] kbuild: Add recipe-cmd, an @-less cmd variant Date: Wed, 11 Jun 2014 09:20:06 -0700 Message-Id: X-Mailer: git-send-email 1.9.3 In-Reply-To: References: <5398749B.4090209@zytor.com> In-Reply-To: References: Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP It's awkward to put $(call cmd,xyz) in a loop in a recipe because the pesky at sign gets in the way. Signed-off-by: Andy Lutomirski --- scripts/Kbuild.include | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 122f95c..3e60923 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include @@ -194,6 +194,7 @@ echo-cmd = $(if $($(quiet)cmd_$(1)),\ # printing commands cmd = @$(echo-cmd) $(cmd_$(1)) +recipe-cmd = $(echo-cmd) $(cmd_$(1)) # Add $(obj)/ for paths that are not absolute objectify = $(foreach o,$(1),$(if $(filter /%,$(o)),$(o),$(obj)/$(o)))