Received: by 10.223.185.116 with SMTP id b49csp1045528wrg; Wed, 21 Feb 2018 11:07:35 -0800 (PST) X-Google-Smtp-Source: AH8x226CA77cPrUr0ir6G+zRs8nL0qRbUgxuaRK0LvWRXfa6LFp+TG85Nb9Huw1LrfH1dz/NVg3M X-Received: by 10.98.87.212 with SMTP id i81mr4287422pfj.197.1519240055562; Wed, 21 Feb 2018 11:07:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519240055; cv=none; d=google.com; s=arc-20160816; b=RSGt2wDEUl9h9dTnXAoZEugzb16MiygfRfeL3fabfmNrwtGu4g/cILNPhEXYvLijKY WeWBswv8ruQR5mX6kS51oZ4Imtcr5bXJboCdkcTUpMMQididZf8kgpvEOZaNyrjTDOTK 8es44A96Gh3j5jejKR7mDx15eQXI8gPEqOiWuxn4EEKw9lizVB1e/5HJiKsv2Rmo9rl9 H66mHHsY7bgPBSD9KFVidwm3tC5pe26STdjKz3etafCJdC0Ckoy0xLOmyxFu895WV6PG XyBrLohj2fjDiUZyrZajyAlleSWdz83NY6ckfkynILi8RAV6I2U+veMDrWil2lyCn1iI ya4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=6UtHzamqATML83ql2TZ3IPHTAqspTErPN7Bf4A+JaPw=; b=Df+q0TmDjFTDdbWb0g63CohwlDu+pq4r4l91iel7s5KYzlguUKe8/B8j4H/ZYC1dp/ xm2pz8/ki0wWAtNPgdK+ZxBqHoyFKOoW25SNJQcQHHYxsTq17AVBHVeDF2aem+FJ9Wgz nJ4lmy/Y/FDUHOKNa575XdrZB/4HJsaMYCWn9vh18DHaxnQkeTE4dKAQnMUymXiGJzii uww7HGwhuVvZhVciCr5b9VtmOhTQ68sw/zyDwQjwlyHFtV+h9ms5uTjPePVCdPmK9/AY fR5gWtpAaE7hndtPhV5A5vycn5JKA66uu98l98lPSH9ycjo69fwlHajVuIbISV6hBWnn BqTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ouHfUbnQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 70-v6si154308ple.147.2018.02.21.11.07.21; Wed, 21 Feb 2018 11:07:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ouHfUbnQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965890AbeBURCE (ORCPT + 99 others); Wed, 21 Feb 2018 12:02:04 -0500 Received: from mail-it0-f68.google.com ([209.85.214.68]:50340 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932317AbeBURCB (ORCPT ); Wed, 21 Feb 2018 12:02:01 -0500 Received: by mail-it0-f68.google.com with SMTP id a75so2963387itd.0; Wed, 21 Feb 2018 09:02:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=6UtHzamqATML83ql2TZ3IPHTAqspTErPN7Bf4A+JaPw=; b=ouHfUbnQBYFx7joIwFfxEdlWiY32FoDeHLNHin0MHzByM7iViAFUqPlVF5XstvZHe7 FPGHXHoK45uW9hS5oNt9kuH6F98mBZ531U40NvVbXXTeXFCPnsvnC6I1sLa/Ki32KBge 9r63ZhU6K7kGc+fzmyxwgKUglj510M+UXjXjehfGLyz29M86TL+U9guHgZFBfPvL4yM1 BXpNqaXkoTgwOgACxGxkAracXJRpfVlnFxh+3/1k2gfgyvb9PPvH1NpO6YhA7dxYlZaT shG4PZyUMRKEXutM+j1DIoAIQc7qTAH9JnJkgePh2GmyvX1/WIH0RnIdtcXwNT0ZlG9I Deug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=6UtHzamqATML83ql2TZ3IPHTAqspTErPN7Bf4A+JaPw=; b=iCNWfn/t8le9rVA2Bc7t4pIdE8Q/QjNHdfDLHKArTxTSJu6ywcslvy//ym76fNPmGZ oDYuNuU+MGKZC/WwSHUG4WlnIvR177vh5jPIPt8PLr+yUgcewGNQn6IwVWzkiVusg4d8 QvBIzFGtlcpWaNZZPBLHX5KRqPPNXX2WOV595yiSPHCDnFESpmjqExhxbZQm1cFu07rs B8INwjRemw8imw5sko8U57dEJj2Mbj+b8eDQlSRD7YJiPfzCua+hsAjc89Ag3pX6Il0g CsqAVNBIRt+H3pOYauyb4gCKWTe6vEHXp/3+PzWUN6m8Cqk7k9MfGMjEGZheDAPYLlcu 41NA== X-Gm-Message-State: APf1xPAiJclv/GRjQ/H2+l3G6TnQrzWxr9n9h0EBVJ7hXG9VFBG//Cg1 ODosCzIfptdZSmIbY4mkh3Jdl5Th+GueNt64kzk= X-Received: by 10.36.89.13 with SMTP id p13mr4044716itb.16.1519232520059; Wed, 21 Feb 2018 09:02:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.135.221 with HTTP; Wed, 21 Feb 2018 09:01:59 -0800 (PST) In-Reply-To: References: <1518806331-7101-1-git-send-email-yamada.masahiro@socionext.com> <1518806331-7101-12-git-send-email-yamada.masahiro@socionext.com> <20180219044845.7cnqpgyiinn6hkyb@huvuddator> From: Linus Torvalds Date: Wed, 21 Feb 2018 09:01:59 -0800 X-Google-Sender-Auth: DdBXcQNUw2OeFUcLivPu6N-xsKQ Message-ID: Subject: Re: [PATCH 11/23] kconfig: add 'shell-stdout' function To: Masahiro Yamada Cc: Ulf Magnusson , Linux Kbuild mailing list , Greg Kroah-Hartman , Arnd Bergmann , Kees Cook , Randy Dunlap , Sam Ravnborg , Michal Marek , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 20, 2018 at 8:59 PM, Masahiro Yamada wrote: > > IMO, I prefer to use different names for different purpose. > So, 'stdout' and 'success' look good to me. > > BTW, I noticed just one built-in function is enough > because 'success' can be derived from 'stdout'. > > So, my plan is, implement $(shell ...) as a built-in function. > This returns the stdout from the command. > > Then, implement 'success' as a textual shorthand > by using macro, like this: > > macro success $(shell ($(1) && echo y) || echo n) I like it. This is nice and clean, and seems to be very generic. I see no issues with this approach. Linus