is 'sunlabel' required to cross-build 'make release' for
sparc64?
Ruslan Ermilov
ru at FreeBSD.org
Tue Feb 9 13:54:27 UTC 2010
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
More information about the freebsd-current
mailing list