From owner-freebsd-current@FreeBSD.ORG Tue Feb 9 13:54:27 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7FD01106566C for ; Tue, 9 Feb 2010 13:54:27 +0000 (UTC) (envelope-from ru@FreeBSD.org) Received: from mail.vega.ru (mail.vega.ru [90.156.167.5]) by mx1.freebsd.org (Postfix) with ESMTP id 3D4B48FC1C for ; Tue, 9 Feb 2010 13:54:27 +0000 (UTC) Received: from [10.100.124.99] (helo=edoofus.dev.vega.ru) by mail.vega.ru with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.71 (FreeBSD)) (envelope-from ) id 1NeqJa-000I1X-V3; Tue, 09 Feb 2010 16:39:42 +0300 Date: Tue, 9 Feb 2010 16:39:38 +0300 From: Ruslan Ermilov To: YAMAMOTO Shigeru Message-ID: <20100209133937.GA72929@edoofus.dev.vega.ru> References: <20100121.200714.902529320050655899.shigeru@iij.ad.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100121.200714.902529320050655899.shigeru@iij.ad.jp> Cc: freebsd-current@freebsd.org Subject: Re: is 'sunlabel' required to cross-build 'make release' for sparc64? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Feb 2010 13:54:27 -0000 On Thu, Jan 21, 2010 at 08:07:14PM +0900, YAMAMOTO Shigeru wrote: > > Hi all, > > I have a question about 'make release' for sparc64 architecture on > amd64/i386. > > release/sparc64/mkisoimages.sh is using 'sunlabel'. > But, on amd64/i386, sunlabel is not installed when doing > 'make release TARGET_ARCH=sparc64 TARGET=...'. > Is it a ploblem? or no ploblem? > > If it is a bloblem, how do we fix it? > 1) fix release/sparc64/mkisoimages.sh. > 2) fix 'make release' script/Makefiles to install > sunlabel which is cross-builded binary. > 3) others This is (usually) done in src/Makefile.inc1, around the cross-tools target; something along these lines should work: .if ${TARGET_ARCH} != ${MACHINE_ARCH} && ${TARGET_ARCH} == "sparc64" && defined(RELEASEDIR) _sunlabel= sbin/sunlabel .endif Then add ${_sunlabel} to the list of tools built during cross-tools. P.S. We have a similar case for i386/kgzip. Cheers, -- Ruslan Ermilov ru@FreeBSD.org FreeBSD committer