Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp384801imm; Mon, 21 May 2018 07:35:13 -0700 (PDT) X-Google-Smtp-Source: AB8JxZovHnhL8ju2E0Ud5J+jfCA1ubMoPzZ3xkBWNlRshVmi2hxZIcHQ3foS41gomL0JHRwtsefd X-Received: by 2002:a17:902:6e4:: with SMTP id 91-v6mr20603162plh.63.1526913313652; Mon, 21 May 2018 07:35:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526913313; cv=none; d=google.com; s=arc-20160816; b=SqzTQi4Thac1W1KDkuTR2x1O4KrKC2hR5P6ajo/jBsdGmX1/7dqpLfwRLDbBEjJYL5 yFx4NoIub+DuQ3cVS33xImAiUfaiSFnWQipCrh0o99xMQgk0AfuFHXZ/LmajxsSarThW itdlpLi8zvcW02mY0yAIykptk/WpB0Hh+kIiUx9Hv1ruCWTWYthpoNMrZFXCpuzg9Mns AC2OJL34RlgQOq96HEc43db50JVMUaFaltnuJEow/xEVaDqYlg2u4MIWh1WjGtwk/xzD PtwRvOfjey74uBT3jtwGydIMuc3TpeW6Tt2AP25+pD2OUOU6TSJvKfVB3ZG4YDXSG6rI VzoQ== 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=dC5/S0bw5IdS84Plk0aJZpzK4kDI9WyR0js6/QgH7Ro=; b=ZeGLZ7sFNCZh/upBhEF5rMZlFW5YiRatrSy5ApH7cWk0iz/MNoHDjfRptZTpdOcmAj i9z1oBZuKemI8lWpBT5cZgQQPfSF/JtB0VhtS3DrsH8vbPV1akLpsxjD58UqHPNGKVvS LiJNWzwW7bkDVJJzDhx9/10pOFZ4VkNAuHkAvN1TGhoV00+d411G0yrZukYTr2wjrizF SJoYj9DS14fSozNmxz+1RhJXdyFOgW+FkCikOSzgGRTB/AulFf+g1+cD+eVtYHTnb38C VZq9Hy2M7fVY5Su3n7WMfS1DYjZ/xh6jPWGJtXxm/zA3sZMCLaOeW116HppZIL16M4Wp cRxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RPzWbZjd; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f5-v6si9471764pgn.453.2018.05.21.07.34.59; Mon, 21 May 2018 07:35:13 -0700 (PDT) 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=pass header.i=@gmail.com header.s=20161025 header.b=RPzWbZjd; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752923AbeEUOdL (ORCPT + 99 others); Mon, 21 May 2018 10:33:11 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:35273 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752678AbeEUOc7 (ORCPT ); Mon, 21 May 2018 10:32:59 -0400 Received: by mail-oi0-f66.google.com with SMTP id a6-v6so13160644oia.2; Mon, 21 May 2018 07:32:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=dC5/S0bw5IdS84Plk0aJZpzK4kDI9WyR0js6/QgH7Ro=; b=RPzWbZjdgNx7RX6ceaYSi2Ah6gsNFvHASth0RYpl9k0IY6EqkCe++Ac8zCUAqWxSgV WAHyxKloOoH5W3bARwRfk11+XDrXPBVpIYqbIc9+KvLfren/ykz/04DqMqj9BBgJfgFA +64afi9CYTMJjTYy/IpPcgRlzxQ2Qt8YZngs5yuIvAipyxorbkjc9a0eRHxjQv8WEIy8 cSUfddODmzgD91s8PSSfIp5ynPGudO7GfAR2x70iFldkXQ3Q+bp6fbx3UJQl8pPXJUw6 BstQY0q1ybbz0s6ua5EXwbx9H/t/AuJGo2rRDi19TYKyv/ykST4JmdKQh7OKSF20lzS1 284Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=dC5/S0bw5IdS84Plk0aJZpzK4kDI9WyR0js6/QgH7Ro=; b=Q6LCqR62miT7Uu51gZBJ4aaYLzAOs7/RnwrOXpAryLDrbQ4+xTV/UaSBpqqeacBUDc Z3r+QzzuJ+naKvuaTwfTSEDuZEX/EBnz37VrV9khEhHHC0FNB8LrszIMPr0vmkz+rwAK Ff9icxZIGpjleYRb/BUciBkMIT8qwH7VYQRa9hEekCx73F6C/UEWdhjR5NWhm/vktACj UC0BUU3RALNDtngBV48PTw4ucMeosggod7G41E9nLN/2e1SETSlWfb+/WWCfahziA88S pf+lwvzB+PuEqRmfQEg7yXh3y60D5PK0SCbx6EvKkEao5bc+nUizaL6yCxTyUkE81HWr 2rHQ== X-Gm-Message-State: ALKqPwcELwT4572DC80htLT5+CEjLr2XQebY4BFet8VEINUgvNj7ImmV E7/jJW/avX5DKzik7iYVxKjvHNxaDdfss0RQu6woIA== X-Received: by 2002:aca:5885:: with SMTP id m127-v6mr10854980oib.352.1526913178317; Mon, 21 May 2018 07:32:58 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:185:0:0:0:0:0 with HTTP; Mon, 21 May 2018 07:32:57 -0700 (PDT) In-Reply-To: References: <1526537830-22606-1-git-send-email-yamada.masahiro@socionext.com> <1526537830-22606-8-git-send-email-yamada.masahiro@socionext.com> <20180520145031.GB9826@ravnborg.org> From: Ulf Magnusson Date: Mon, 21 May 2018 16:32:57 +0200 Message-ID: Subject: Re: [PATCH v4 07/31] kconfig: add built-in function support To: Sam Ravnborg Cc: Masahiro Yamada , Linux Kbuild mailing list , Linus Torvalds , "Luis R . Rodriguez" , Linux Kernel Mailing List , Nicholas Piggin , Kees Cook , Emese Revfy , X86 ML 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 Mon, May 21, 2018 at 4:23 PM, Ulf Magnusson wrote: > On Sun, May 20, 2018 at 4:50 PM, Sam Ravnborg wrote: >> Will the following be equal: >> >> $(foo,abc,$(x),$(y)) >> $(foo, abc, $(x), $(y)) >> >> make is rather annoying as space is significant, but there seems no good reason >> for kconfig to inheritate this. >> So unless there are good arguments consider alloing the spaces. >> If the current implmentation already supports optional spaces then I just missed >> it whie reviewing. >> >> Sam > > +1 from me. > > I also find the rules for whitespace in Make confusing, and always > have to look them up when doing trickier stuff. Maybe they're the > result of people not considering whitespace initially, and stuff > getting tacked on later. GNU Make adds some alternate syntaxes with > quotes. > > I was going to mention shell, but it looks like you already did. :) > > If we go with Make-like syntax, maybe we could at least have a variant > with fewer whitespace gotchas. > > Cheers, > Ulf Maybe it'd be a pain to implement, but something like $(foo $(x) "two words" "interpolated $(stuff)") seems pretty nice, with three arguments there. For variables too: x = foo y = "two words" Or have mandatory quotes, but yeah, bit spammy there maybe. Cheers, Ulf