Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp84441rwr; Thu, 4 May 2023 15:16:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5/mkIDdTNhXZZtTIXWfXpO84LXbvS4R/ywDZIw9I+qDhxYoAx+KCw6k76d/TWuKpbUVdcc X-Received: by 2002:a05:6a00:124d:b0:640:defd:a6de with SMTP id u13-20020a056a00124d00b00640defda6demr4307228pfi.5.1683238568469; Thu, 04 May 2023 15:16:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683238568; cv=none; d=google.com; s=arc-20160816; b=H70fucvWiqcqH14QgsLCKulQ8/MMZqt1Ne2luP6KG8CjZxLiWSRyivtnU3z6seXvxA kujQLcEEHMwzhNrXo63tEDYm7dPOWC+mNF2I1i6dxjmcR+5jVlJyuK1dX/z38k152Ylk UNTewiRaf3ToPtUTg3I3VlJSp28CLeXDmGuo6AuIUw+GiIaZYt9u7gFJT4xtkJL5RGKF puRVSwN7FBEtvUPaw6tV+v8FWSVaXflhkrwSdxJMRmQ8u7mHAX8ymDDEbrOH48jr01rX 94+g9gIBB1IqukZKFQUXZpNyvkvb0pZvXTieJ8Qd5WDqFqh9d92RH/01d0+K77TFchxN UlfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature :dkim-signature:date; bh=f3+C1REhPi4ePpc6dWVYIWzuQXA4e7IkkVuH6hIesBE=; b=hJHDyqAf5j5bJYnC+Ye+Te9mOgXqgYHzSkZVS4dGfmWA95Xwn0ll9rK/pgg6+JgpCD RiMLemsvhyyeioCeLHR0DZhS0JD1LmAeXyQG9LvaOZN5Vm/nM0iJ8f47bu1GarvhXpk3 jayjHmmedLakhZWERHfpb6JTzKcUHoZaIHVjRQCmczXx8VyVJ4q3lcT/bMLJKg/pOzmn LFVQ14DHQ3F2XCZXWtA+NEM0KxkJyWJ2EwZRzS4G29zdPPN5qiX6f3KcrXoUQKsTQPIH V5D4XWGiaCqeSCC87ichu67s62bG8arvOeGTDU0PrpTiQezyRyuk2IFVNjAHV6awHHmh +0YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=W9h14UwN; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 9-20020a621909000000b006434a04f2fcsi410971pfz.297.2023.05.04.15.15.54; Thu, 04 May 2023 15:16:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=W9h14UwN; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229761AbjEDWAx (ORCPT + 99 others); Thu, 4 May 2023 18:00:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229463AbjEDWAw (ORCPT ); Thu, 4 May 2023 18:00:52 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F146F12E84; Thu, 4 May 2023 15:00:50 -0700 (PDT) Date: Fri, 5 May 2023 00:00:47 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1683237649; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=f3+C1REhPi4ePpc6dWVYIWzuQXA4e7IkkVuH6hIesBE=; b=W9h14UwN8V+yCn5peley2dgaswydgOzH1O5sBA4vGVYfbxDD1zMc/oFOEgxFrSBOzJyn/U paJsL21EkSRSlPfGHknsCt0JIzdOzhWuNBWVwJHrWS+t5AiHfBHnCNakF7xxRpFUnW0ThI OPSPtXbhFQkbqa//aWgbTmxC42GDzcFRi/4PIaC2HagHK8Ik8rVC3gfWC9TefC6dzoSs5l 1J+h3gt06UpYZkAyXjoTIEInljZM3ygdkOsunMwSxfC7e0HO12E1Clf7d/2GBWtBWhR+V2 q+l8RWyYiBX8T8b8GuwbKRPMc3towlnTMRHhpW9e01hh2AD1gBqrZ5yeqrA74A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1683237649; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=f3+C1REhPi4ePpc6dWVYIWzuQXA4e7IkkVuH6hIesBE=; b=5d6Rokg8Ojozf9C3qB9UzYffajpr+raioQw9h58eecN/JNequN7TNwGVyyPZb/oUgQp/34 E3i7Jmd8pRVIYTAQ== From: "Ahmed S. Darwish" To: Nathan Chancellor Cc: Masahiro Yamada , Nick Desaulniers , Nicolas Schier , Thomas Gleixner , linux-kbuild@vger.kernel.org, LKML Subject: Re: [PATCH v1 1/1] scripts/tags.sh: Fix gtags generation for O= kernel builds Message-ID: References: <20230504201833.202494-1-darwi@linutronix.de> <20230504201833.202494-2-darwi@linutronix.de> <20230504213246.GB1666363@dev-arch.thelio-3990X> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230504213246.GB1666363@dev-arch.thelio-3990X> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Nathan, On Thu, 04 May 2023, Nathan Chancellor wrote: > > On Thu, May 04, 2023 at 10:18:33PM +0200, Ahmed S. Darwish wrote: ... > > + suffixparams= > > + if [ -v O ]; then > > I think > > if [ -n "$O" ]; then > > would match the style preferred by Kbuild (though that is usually for > portability sake, which probably does not matter here since bash is > explicitly requested). Perhaps not worth addressing if there is no other > reason for a v2. > Thanks, I'll do it. I've just discovered that a v2 is necessary anyway. If O= has a "~", for example as in: make O=~/build/ gtags the snippet below: > > + suffixparams="-C $tree $O" > > + fi > > + all_target_sources | gtags -i -f - $suffixparams ^ will fail since the "~" in the O= directory path won't get dereferenced before getting passed to the gtags call (an eval is needed). I'll submit a v2 shortly. Kind regards, -- Ahmed S. Darwish Linutronix GmbH