Date: Sun, 19 Jul 2015 15:06:52 +0000 From: =?utf-8?B?bS52YWxlQGxpdmUuY29tLmF1?= <m.vale@live.com.au> To: <freebsd-embedded@freebsd.org>, <freebsd-arm@freebsd.org>, <freebsd-mips@freebsd.org>, <bapt@freebsd.org>, <portmgr@freebsd.org> Subject: Re: bsd.port.mk - cross compiling and target binary set Message-ID: <COL401-EAS467713FBFA78B6B0599C29DC4860@phx.gbl>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
<!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } -->
Well. Upon further examination that patch was rather no good. I've fixed 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, 19 Jul 2015 21:01To: freebsd-embedded@freebsd.org;freebsd-arm@freebsd.org;freebsd-mips@freebsd.org;bapt@freebsd.org;portmgr@freebsd.org;Subject:bsd.port.mk - cross compiling and target binary set
Okay, I've done a lot more work on this patch. It builds and installs build, lib and run depends, builds and installs the target port recursively. The only problem is if a build/install process wishes to run an executable that has been built for the target.
The patch assumes you have a src tree in ${HOME}/src, a WRKDIR=${HOME}/work, TARGETDIR=${HOME}/root and OBJDIR=${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=mips BUILD_AS_USER= INSTALL_AS_USER= SRC_BASE=/home/masked/src install
---------------------------------------
Can anyone tell me or confirm if I don't set a target triple, and just a host triple, if the executables are compiled in a cross arch manner like the name cross-compiler implies? that the binaries will execute on both the build machine and the host machine assuming configure --host=${AN_ARCH_OTHER_THAN_THE_BUILD_MACHINE}?
I doubt it, but it'd be nice if thats what's actually going on here.
[-- Attachment #2 --]
_______________________________________________
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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?COL401-EAS467713FBFA78B6B0599C29DC4860>
