From nobody Thu May 2 22:45:39 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1590776923; cv=none; d=zohomail.com; s=zohoarc; b=kcRQhs3pS/oS/T0qaw5DZ+8SyhZoHKW6Yu4pcLxNSDME+FoAOYLmj6GFkObRMu8+C39mhO88woPqICK+ObAgay3K3j/d7JcsCViQhohlubZXgNsZRJvuXIjySOrvrbE4kz6/S9BfXxgPHvxQK+9ZedxYftJOWOP7TlJGQy869AY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1590776923; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=4mGXRcEHwHz18Jh0Mp18/5YQT5R1fOC0HF9t6GMi8FA=; b=URROMgP/IiviNV2RGVanaeTyfFbpI6s1T4+r3CG1To/ZbnvcdgL3G+lynWHIj5CWzTcJGIJsWRYDKN3QNF+D06CthzU8GqVT57QGBxJAxY3h2WTXugaqKzxg9pnLWlJ8LIKGEq+Gy6hxogumUjca2K/ryx81X/Zaz7oshW7yJM0= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1590776923264493.3200956048862; Fri, 29 May 2020 11:28:43 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jejjj-0001im-7n; Fri, 29 May 2020 18:28:07 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jejji-0001ih-7d for xen-devel@lists.xenproject.org; Fri, 29 May 2020 18:28:06 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 22817dee-a1da-11ea-a900-12813bfff9fa; Fri, 29 May 2020 18:28:04 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 660B8AD94; Fri, 29 May 2020 18:28:03 +0000 (UTC) X-Inumbo-ID: 22817dee-a1da-11ea-a900-12813bfff9fa X-Virus-Scanned: by amavisd-new at test-mx.suse.de From: Juergen Gross To: xen-devel@lists.xenproject.org Subject: [PATCH] xen/build: fix xen/tools/binfile Date: Fri, 29 May 2020 20:28:00 +0200 Message-Id: <20200529182800.27555-1-jgross@suse.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Juergen Gross , Stefano Stabellini , Julien Grall , Wei Liu , Andrew Cooper , Ian Jackson , George Dunlap , Jan Beulich Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Content-Type: text/plain; charset="utf-8" xen/tools/binfile contains a bash specific command (let). This leads to build failures on systems not using bash as /bin/sh. Replace "let SHIFT=3D$OPTIND-1" by "SHIFT=3D$((OPTIND-1))". Signed-off-by: Juergen Gross --- xen/tools/binfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/tools/binfile b/xen/tools/binfile index df0301183f..23099c49bf 100755 --- a/xen/tools/binfile +++ b/xen/tools/binfile @@ -17,7 +17,7 @@ while getopts "ia:" opt; do ;; esac done -let "SHIFT=3D$OPTIND-1" +SHIFT=3D$((OPTIND-1)) shift $SHIFT =20 target=3D$1 --=20 2.26.2