Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp878771pxf; Wed, 7 Apr 2021 13:59:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/Dp3jWLNZ+Abvpqh2kKQiKVgS2EGmEjNYyZlTfG32Yli97HyukkHoF9T+SJ5UZy2rawdb X-Received: by 2002:a17:906:3609:: with SMTP id q9mr6100767ejb.119.1617829180661; Wed, 07 Apr 2021 13:59:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617829180; cv=none; d=google.com; s=arc-20160816; b=LszcU3bC8lBQXxgZYANuN/9OcQq4y2CJLl4co8HcELEft8Aen/Xs64Vnv9S0AyG8jd SANvmWbIYrza2w680X3YnmEV7M3zXaUXxK1GYnF8HZwLHHM5cdmGYFMi3kQ6fKk8LU/O ij5MyTxAiQzY2I7KcnVrJPOnfYpSw5ECIkP3ZfoNk0oaKmxC8nlneqVU/+7Je13fSSxL TsKop4PzpV5T/Zc/8dbx1YPVxsajB4JEQ7pNJ0giQWgMMXdpr+zMCmBGoBHMDqQ+lATx jezTcOqUob3Ue4Q8QKLiaSh+QbPHW4XIjCFbo6obHCiIWmG7rF/2EkbUD+tdO/PuX/zo gGEA== 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:date:dkim-signature; bh=nKANf5whTemMlMjCXtqZIzl51HJbVVwgKQA86nNb97A=; b=E48cMspBKJPcv8RTVGI7BXOheKykO2wpP/RBjebHDMB8v62y5gusa9kLqurjDK0cvZ s3HdmJ51iGGoxUBhvOlnQY38Gp/RN+9zXF4jms2Eh6JDbUMlSAj/4IpWAPdan7a7O5sF RyzKNYLDOR/Kc40GW/jvUOoNV9akxMLp4/1hiD8IWJSe/SpZIzNzLpFVMMBbC5IRK0ie /V4ICsDJ4CouCqwm6kaLCr8z7WmcrdtCHVgV9JEc7oWjovE5LBxa5Ap+7HE5tR9HCJno S6ybGaGtdUNGtY6zpTudDxWvapybojtoW4YveTEhVTmuCfMjmFWI8+gnDHPJzkNQzUb0 nFtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="iavD/CG+"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x26si20071983edv.23.2021.04.07.13.59.17; Wed, 07 Apr 2021 13:59:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="iavD/CG+"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352588AbhDGNEN (ORCPT + 99 others); Wed, 7 Apr 2021 09:04:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:55360 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352571AbhDGNEL (ORCPT ); Wed, 7 Apr 2021 09:04:11 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5FDFF6124B; Wed, 7 Apr 2021 13:04:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617800642; bh=nThm+R6dMYSqhG181+GtVpThubpwnwPwK0c5mCLI0kc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iavD/CG+FWohxaAuelhrZ4/MZsgySf5Qa7RUOa/UoK6YRgYGI3FlNzbPB5+8578n4 MAi4pTTeHKCEKwHiwkV7b2hHdsGOwdvdHOD9cLtek81iuqsn3seZy4QvJedVoHm65H Q1OrBnM2X+XcgNIDxcB6fKKP5yQK4hltKwXLtf9s= Date: Wed, 7 Apr 2021 15:03:58 +0200 From: Greg Kroah-Hartman To: Masahiro Yamada Cc: Michal Marek , Linux Kbuild mailing list , linux-arch , Linux Kernel Mailing List Subject: Re: [PATCH 07/20] kbuild: scripts/install.sh: allow for the version number Message-ID: References: <20210407053419.449796-1-gregkh@linuxfoundation.org> <20210407053419.449796-8-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 07, 2021 at 08:05:23PM +0900, Masahiro Yamada wrote: > On Wed, Apr 7, 2021 at 2:35 PM Greg Kroah-Hartman > wrote: > > > > Some architectures put the version number by default at the end of the > > files that are copied, so add support for this to be set by arch type. > > > > Odds are one day we should change this for x86, but let's not break > > anyone's systems just yet. > > > > Signed-off-by: Greg Kroah-Hartman > > --- > > scripts/install.sh | 15 +++++++++++++-- > > 1 file changed, 13 insertions(+), 2 deletions(-) > > > > diff --git a/scripts/install.sh b/scripts/install.sh > > index 72dc4c81013e..934619f81119 100644 > > --- a/scripts/install.sh > > +++ b/scripts/install.sh > > @@ -60,8 +60,19 @@ else > > base=vmlinux > > fi > > > > -install "$2" "$4"/"$base" > > -install "$3" "$4"/System.map > > +# Some architectures name their files based on version number, and > > +# others do not. Call out the ones that do not to make it obvious. > > +case "${ARCH}" in > > + x86) > > + version="" > > + ;; > > + *) > > + version="-${1}" > > + ;; > > +esac > > + > > +install "$2" "$4"/"$base""$version" > > > Too many quotes are eye sore. > > > install "$2" "$4/$base$version" > > looks cleaner in my opinion. > > Shell correctly understands the end of each > variable because a slash or a dollar > cannot be a part of a variable name. Good idea, I usually just default to "quote everything!" when dealing with bash variables. I'll fix this up. Oh, any preference for "$2" vs. "${2}"? I don't care either way but I couldn't tell what is the normal kernel style these days. thanks for all of the review, much appreciated! greg k-h