Date: Tue, 9 Feb 2010 16:39:38 +0300 From: Ruslan Ermilov <ru@FreeBSD.org> To: YAMAMOTO Shigeru <shigeru@iij.ad.jp> Cc: freebsd-current@freebsd.org Subject: Re: is 'sunlabel' required to cross-build 'make release' for sparc64? Message-ID: <20100209133937.GA72929@edoofus.dev.vega.ru> In-Reply-To: <20100121.200714.902529320050655899.shigeru@iij.ad.jp> References: <20100121.200714.902529320050655899.shigeru@iij.ad.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100209133937.GA72929>