From owner-freebsd-arm@freebsd.org Mon Jul 20 04:37:26 2015 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C1E099A6300; Mon, 20 Jul 2015 04:37:26 +0000 (UTC) (envelope-from m.vale@live.com.au) Received: from COL004-OMC1S14.hotmail.com (col004-omc1s14.hotmail.com [65.55.34.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9B2711167; Mon, 20 Jul 2015 04:37:26 +0000 (UTC) (envelope-from m.vale@live.com.au) Received: from COL401-EAS423 ([65.55.34.9]) by COL004-OMC1S14.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Sun, 19 Jul 2015 21:36:21 -0700 X-TMN: [FwtzLB15WzG9nB11FB5OEi8ZesXZJo08] X-Originating-Email: [m.vale@live.com.au] Message-ID: From: Michael Vale To: , CC: , , , , Subject: Re: X_BUILD_FOR is back! X-Priority: 3 Importance: Normal Date: Mon, 20 Jul 2015 04:36:14 +0000 MIME-Version: 1.0 X-Mailer: Infraware POLARIS Mobile Mailer v2.5 X-OriginalArrivalTime: 20 Jul 2015 04:36:21.0202 (UTC) FILETIME=[A0822320:01D0C2A5] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jul 2015 04:37:27 -0000 It /is/ using DESTDIR. And sure=2C if your root/mips is elsewhere you c= an specify it there. In fact=2C iirc from Memory DESTDIR=3DSYSROOT... just = search for either in the Makefile to get your bearings. Sent from my LG G3 on the Telstra Mobile network ------ Original message------From: Adrian ChaddDate: Mon=2C 20 Jul 2015 14:= 31To: Erich Dollansky=3BCc: Michael Vale=3Bfreebsd-embedded@freebsd.org=3Bf= reebsd-mips@freebsd.org=3Bfreebsd-arm@freebsd.org=3Bbapt@freebsd.org=3Bport= mgr@freebsd.org=3BSubject:Re: X_BUILD_FOR is back! hiya=2C can you make it use DESTDIR or something? Ie=2C not assume it's SRCDIR../../root/mips/ ? -a On 19 July 2015 at 18:55=2C Erich Dollansky w= rote: > Hi=2C > > this sounds good. > > Erich > > > On Mon=2C 20 Jul 2015 09:19:07 +1030 > Michael Vale wrote: > >> Okay! >> >> Patch and go! >> >> bmake X_BUILD_FOR=3Dmips BUILD_AS_USER=3D SRC_BASE=3D/home/masked/src >> >> Will build and install ports into /home/masked/src/../root/mips/ >> >> By default at first it will want to build and install mips-gcc to >> cross compile. Next it will want to build and install pkg-1.5.5. >> Personally I had problems with pkg's configure script and >> external/libucl/xxhash.c that needed debugging. "cross_compiling" =3D >> "yes" after a search for "git head" in pkg's configure needs to be >> changed from "yes" to "maybe" and a search for swap32 in xxhash.c=2C >> finds you with an elif for __bswap32 that needs to be erased=2C then >> pkg should compile. Please let me know if you have different >> results. Currently ports "install" is broken. I'm not sure what is >> wrong with it=2C but rather than wait until it is fixed=2C I thought I >> would post this anyway as I have been using the stage target as >> install=2C pointing STAGEDIR to SYSROOT. Next I will go through it and >> remove SHARE files=2C DOCs=2C MAN pages=2C and other stuff that we don't >> need on embedded systems. I did do some changes to >> Scripts/do-depends.sh and Scripts/find-lib.sh=2C I'm unsure now if any >> of those changes were needed and I don't have a copy of the originals >> right now so rather than post patches=2C I've posted the entire files=2C >> sorry about that. Correction =3D Install /does/ work for some ports=2C i= t >> depends on a few factors=2C I will iron them out ASAP. Other than >> that=2C and the excess junk from the ports (DOC's MAN's SHARE=2C etc). >> This iteration is for the most-part complete. Practically /all/ of >> the pkg support is complete=2C it will register packages to a database >> on the embedded filesystems root and successfully delete packages=2C >> regardless of the fact that install is not working 100% right now. >> The majority of ports should build=2C "stage-install"=2C install and >> package up without a fuss. Dependency checking and building should >> all be sane. Please let me know what you think. Regards=2C Michael.