From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1kKU9h-0001hD-Q3 for mharc-grub-devel@gnu.org; Mon, 21 Sep 2020 18:19:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60776) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kKU9f-0001bC-KC for grub-devel@gnu.org; Mon, 21 Sep 2020 18:19:27 -0400 Received: from mx2.suse.de ([195.135.220.15]:34610) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kKU9d-0002LN-Iz for grub-devel@gnu.org; Mon, 21 Sep 2020 18:19:27 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 1DF44AD1B; Mon, 21 Sep 2020 22:19:58 +0000 (UTC) Date: Tue, 22 Sep 2020 00:19:20 +0200 From: Petr Vorel To: Daniel Kiper Cc: grub-devel@gnu.org Subject: Re: [PATCH 2/4] travis: Fix sparc64 build Message-ID: <20200921221920.GA36945@x230> Reply-To: Petr Vorel References: <20200909200221.410705-1-pvorel@suse.cz> <20200909200221.410705-3-pvorel@suse.cz> <20200917134823.hzgs7i257r3u5if7@tomti.i.net-space.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200917134823.hzgs7i257r3u5if7@tomti.i.net-space.pl> Received-SPF: pass client-ip=195.135.220.15; envelope-from=pvorel@suse.cz; helo=mx2.suse.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/21 01:21:24 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x (no timestamps) [generic] X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Sep 2020 22:19:28 -0000 Hi Daniel, thanks for merging first commit. > On Wed, Sep 09, 2020 at 10:02:19PM +0200, Petr Vorel wrote: > > Instead non-existing sparc64-ieee1275 format use all 3 sparc64 formats: > > sparc64-ieee1275-{aout,cdcore,raw}. > > Signed-off-by: Petr Vorel > > --- > > .travis.yml | 6 +++--- > > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/.travis.yml b/.travis.yml > > index 4bd05a30a..d019a0172 100644 > > --- a/.travis.yml > > +++ b/.travis.yml > > @@ -40,8 +40,8 @@ script: > > # Build all selected GRUB targets. > > - for target in $GRUB_TARGETS; do > > - plat=${target#*-}; > > - arch=${target%-*}; > > + arch=$(echo $target | cut -d- -f1); > > + plat=$(echo $target | cut -d- -f2); > I think it should be: plat=$(echo $target | cut -d- -f2-); > Note dash after "2"... No, this way it breaks sparc64 [1] (and does not help to fix mips [2] nor risc32 either). It looks like it's this error: configure: error: platform "ieee1275-raw" is not supported for target CPU "sparc64" but I need to debug it more to see what's wrong. Kind regards, Petr > Though I would prefer this: > arch=$(echo "$target" | cut -d - -f 1); > plat=$(echo "$target" | cut -d - -f 2-); > Daniel Kind regards, Petr [1] https://travis-ci.org/github/pevik/grub/jobs/728077121 [2] https://travis-ci.org/github/pevik/grub/jobs/728077123 [3] https://travis-ci.org/github/pevik/grub/jobs/728077126