From owner-freebsd-arm@freebsd.org Sun Jul 19 15:08:06 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 3BD049A52DB; Sun, 19 Jul 2015 15:08:06 +0000 (UTC) (envelope-from m.vale@live.com.au) Received: from COL004-OMC1S8.hotmail.com (col004-omc1s8.hotmail.com [65.55.34.18]) (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 1579A1B7C; Sun, 19 Jul 2015 15:08:05 +0000 (UTC) (envelope-from m.vale@live.com.au) Received: from COL401-EAS467 ([65.55.34.8]) by COL004-OMC1S8.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Sun, 19 Jul 2015 08:06:59 -0700 X-TMN: [irltMREWZgnVHbEaAvK8aXi17hKx6hxA] X-Originating-Email: [m.vale@live.com.au] Message-ID: Content-Type: multipart/related; boundary="_aab9fb25-4c08-42e6-904b-43306b3eb34c_" From: =?utf-8?B?bS52YWxlQGxpdmUuY29tLmF1?= To: , , , , Subject: Re: bsd.port.mk - cross compiling and target binary set X-Priority: 3 Importance: Normal Date: Sun, 19 Jul 2015 15:06:52 +0000 MIME-Version: 1.0 X-Mailer: Infraware POLARIS Mobile Mailer v2.5 X-OriginalArrivalTime: 19 Jul 2015 15:06:59.0811 (UTC) FILETIME=[8FA9EB30:01D0C234] 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: Sun, 19 Jul 2015 15:08:06 -0000 --_aab9fb25-4c08-42e6-904b-43306b3eb34c_ Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Well. Upon further examination that patch was rather no good. I've fix= ed all the bugs now I just have to test it out properly. I will probably post something substantial in the next 24 hours. Sent from my LG G3 on the Telstra Mobile network ------ Original message------From: Michael ValeDate: Sun=2C 19 Jul 2015 21:= 01To: freebsd-embedded@freebsd.org=3Bfreebsd-arm@freebsd.org=3Bfreebsd-mips= @freebsd.org=3Bbapt@freebsd.org=3Bportmgr@freebsd.org=3BSubject:bsd.port.mk= - cross compiling and target binary set Okay=2C I've done a lot more work on this patch. It builds and installs bu= ild=2C lib and run depends=2C builds and installs the target port recursive= ly. The only problem is if a build/install process wishes to run an execut= able that has been built for the target. The patch assumes you have a src tree in ${HOME}/src=2C a WRKDIR=3D${HOME}/= work=2C TARGETDIR=3D${HOME}/root and OBJDIR=3D${HOME}/obj. It also assumes= you have built a target filesystem with freebsd-wifi-build or similar. It will build and install as a user like so: bmake TARGET_ARCH=3Dmips BUILD_AS_USER=3D INSTALL_AS_USER=3D SRC_BASE=3D/ho= me/masked/src install --------------------------------------- Can anyone tell me or confirm if I don't set a target triple=2C and just a = host triple=2C if the executables are compiled in a cross arch manner like = the name cross-compiler implies? that the binaries will execute on both th= e build machine and the host machine assuming configure --host=3D${AN_ARCH_= OTHER_THAN_THE_BUILD_MACHINE}? I doubt it=2C but it'd be nice if thats what's actually going on here. --_aab9fb25-4c08-42e6-904b-43306b3eb34c_ Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ freebsd-embedded@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-embedded To unsubscribe, send any mail to "freebsd-embedded-unsubscribe@freebsd.org" --_aab9fb25-4c08-42e6-904b-43306b3eb34c_--