From owner-freebsd-current@FreeBSD.ORG Mon Apr 28 23:29:10 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9E45937B401; Mon, 28 Apr 2003 23:29:10 -0700 (PDT) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE45643FAF; Mon, 28 Apr 2003 23:29:01 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: from whale.sunbay.crimea.ua (ru@localhost [127.0.0.1]) h3T6Sg62078455 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 29 Apr 2003 09:28:43 +0300 (EEST) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.12.9/8.12.8/Submit) id h3T6SeXb078450; Tue, 29 Apr 2003 09:28:40 +0300 (EEST) (envelope-from ru) Date: Tue, 29 Apr 2003 09:28:40 +0300 From: Ruslan Ermilov To: "M. Warner Losh" Message-ID: <20030429062839.GA78174@sunbay.com> References: <20030426022551.GB29244@athlon.pn.xcllnt.net> <20030428.211802.15673029.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5I6of5zJg18YgZEa" Content-Disposition: inline In-Reply-To: <20030428.211802.15673029.imp@bsdimp.com> User-Agent: Mutt/1.5.4i X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: current@freebsd.org cc: marcel@xcllnt.net Subject: Re: New ACPI diffs ready for testing X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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, 29 Apr 2003 06:29:11 -0000 --5I6of5zJg18YgZEa Content-Type: multipart/mixed; boundary="DocE+STaALJfprDB" Content-Disposition: inline --DocE+STaALJfprDB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 28, 2003 at 09:18:02PM -0600, M. Warner Losh wrote: > In message: > John Baldwin writes: > :=20 > : On 26-Apr-2003 Marcel Moolenaar wrote: > : > The best way to cross-build is by starting a cross-world, which you > : > then abort after the headers are installed in the object tree. This > : > should leave a usable set of cross-tools you can use for buildkernel. > :=20 > : It would be nice if there was a 'buildtools' target that did just > : enough to allow one to do a buildkernel. Maybe 'buildkerneltools' > : and 'buildworldtools' targets where the latter let you cross-build > : individual libraries or binaries >=20 > make -f Makefile _obj _build-tools >=20 > is what I've been using. You don't need bootstrap-tools typically... > However, you want the _ version since it uses the right environment. > It does build a little more than is necessary, but not a lot more. >=20 Actually, you need everything up to and including the _cross-tools stage in the list generated by the following command: make -f Makefile.inc1 -V WMAKE_TGTS The right way to run them is by cd /usr/src; make -m `pwd`/share/mk -f Makefile.inc1 It's rather an old issue, and I even recall writing a simple script that does something like this. Yes, I've found it, attached. Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --DocE+STaALJfprDB Content-Type: message/rfc822 Content-Disposition: inline Date: Wed, 7 Aug 2002 11:22:01 +0300 From: Ruslan Ermilov To: Mark Peek Subject: Re: Improving cross platform testing Message-ID: <20020807082201.GA43529@sunbay.com> References: <20020725155042.GA26249@sunbay.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="da4uJneut+ArUgXk" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.99i --da4uJneut+ArUgXk Content-Type: multipart/mixed; boundary="l76fUT7nc3MelDdI" Content-Disposition: inline --l76fUT7nc3MelDdI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 25, 2002 at 07:46:50PM -0700, Mark Peek wrote: > At 6:50 PM +0300 7/25/02, Ruslan Ermilov wrote: > >How about this simple script (tinder.sh)? > > > >: #!/bin/sh > >: cd /usr/src > >: ARCHES=3D"i386 alpha sparc64" > >: if [ "x$1" =3D "x" ]; then > >: for arch in ${ARCHES}; do > >: make TARGET_ARCH=3D${arch} -j4 -m/usr/src/share/mk \ > >: -fMakefile.inc1 -DNOCLEAN crossenv > >: done > >: else > >: for arch in ${ARCHES}; do > >: for target in cleandir obj depend all; do > >: make TARGET_ARCH=3D${arch} ${target} SUBDIR_OVERRIDE=3D$1 > >: done > >: done > >: fi > > > >You could then run it twice: > > > >sh ./tinder.sh (rebuild cross environment: compiler, binutils, headers,= =20 > >libs) > > > >sh ./tinder.sh bin/tcsh (test if bin/tcsh builds ok) > > > > > >... with this small assorted patch for Makefile.inc1, just to avoid doing > >a whole buildworld; we need it for PicoBSD anyway: > > > >%%% > >Index: Makefile.inc1 > >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > >RCS file: /home/ncvs/src/Makefile.inc1,v > >retrieving revision 1.297 > >diff -u -p -u -r1.297 Makefile.inc1 > >--- Makefile.inc1 24 Jul 2002 23:08:57 -0000 1.297 > >+++ Makefile.inc1 25 Jul 2002 15:37:51 -0000 > >@@ -329,6 +329,8 @@ WMAKE_TGTS+=3D _includes _libraries _depen > > buildworld: ${WMAKE_TGTS} > > .ORDER: ${WMAKE_TGTS} > > > >+crossenv: ${WMAKE_TGTS:N_depend:Neverything} > >+ > > # > > # installcheck > > # > >%%% >=20 >=20 > Very cool! I like it in principle! :-) The crossenv build worked fine=20 > but the compilation of bin/tcsh only resulted in building 3 copies of=20 > the i386 tcsh. I think it needs the WMAKE environment exported so it=20 > has the path to the cross compiler and points to the appropriate=20 > OBJDIR. >=20 Here's the new script that should work. Sorry for a late reply. Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --l76fUT7nc3MelDdI-- --da4uJneut+ArUgXk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9UNipUkv4P6juNwoRAvxcAJ91LUlIHr8e1+vOr35ujYU8zudO4wCfUI3i hcfmizCHrViepGk/NvrEBxw= =Mcap -----END PGP SIGNATURE----- --da4uJneut+ArUgXk-- --DocE+STaALJfprDB-- --5I6of5zJg18YgZEa Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+rhuXUkv4P6juNwoRAgJnAJ9O3uq8dIlBcI7286R8Azqj33w8CQCdEri/ kyMUOzau5ERyWc/5dbyPvdQ= =6zJg -----END PGP SIGNATURE----- --5I6of5zJg18YgZEa--