Date: Sun, 19 Jul 2015 21:31:55 -0700 From: Adrian Chadd <adrian@freebsd.org> To: Erich Dollansky <erichsfreebsdlist@alogt.com> Cc: Michael Vale <m.vale@live.com.au>, "freebsd-embedded@freebsd.org" <freebsd-embedded@freebsd.org>, "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>, "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>, "bapt@freebsd.org" <bapt@freebsd.org>, "portmgr@freebsd.org" <portmgr@freebsd.org> Subject: Re: X_BUILD_FOR is back! Message-ID: <CAJ-VmoktL3gNOKe52MvBrd9qdK%2BWqYfT%2BWxVP9HD2GrsFRmS1w@mail.gmail.com> In-Reply-To: <20150720095507.0fe291f2@X220.alogt.com> References: <COL130-W43DE42FD6856F6C29B9D29C4860@phx.gbl> <20150720095507.0fe291f2@X220.alogt.com>
next in thread | previous in thread | raw e-mail | index | archive | help
hiya, can you make it use DESTDIR or something? Ie, not assume it's SRCDIR../../root/mips/ ? -a On 19 July 2015 at 18:55, Erich Dollansky <erichsfreebsdlist@alogt.com> wrote: > Hi, > > this sounds good. > > Erich > > > On Mon, 20 Jul 2015 09:19:07 +1030 > Michael Vale <m.vale@live.com.au> wrote: > >> Okay! >> >> Patch and go! >> >> bmake X_BUILD_FOR=mips BUILD_AS_USER= SRC_BASE=/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" = >> "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, >> finds you with an elif for __bswap32 that needs to be erased, 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, but rather than wait until it is fixed, I thought I >> would post this anyway as I have been using the stage target as >> install, pointing STAGEDIR to SYSROOT. Next I will go through it and >> remove SHARE files, DOCs, MAN pages, 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, 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, I've posted the entire files, >> sorry about that. Correction = Install /does/ work for some ports, it >> depends on a few factors, I will iron them out ASAP. Other than >> that, and the excess junk from the ports (DOC's MAN's SHARE, etc). >> This iteration is for the most-part complete. Practically /all/ of >> the pkg support is complete, it will register packages to a database >> on the embedded filesystems root and successfully delete packages, >> regardless of the fact that install is not working 100% right now. >> The majority of ports should build, "stage-install", install and >> package up without a fuss. Dependency checking and building should >> all be sane. Please let me know what you think. Regards, Michael.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmoktL3gNOKe52MvBrd9qdK%2BWqYfT%2BWxVP9HD2GrsFRmS1w>