Re: is 'sunlabel' required to cross-build 'make release' for sparc64?

From: Ruslan Ermilov <ru_at_FreeBSD.org>
Date: Tue, 9 Feb 2010 16:39:38 +0300
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_at_FreeBSD.org
FreeBSD committer
Received on Tue Feb 09 2010 - 12:54:27 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:00 UTC