From owner-freebsd-arm@freebsd.org Mon Jul 20 01:55:23 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 AD4509A5AB0; Mon, 20 Jul 2015 01:55:23 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) Received: from alogt.com (alogt.com [69.36.191.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7E7A8122D; Mon, 20 Jul 2015 01:55:23 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alogt.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=eOtIzE/i4lpR5XyloZFZ/CImIwchXmyy/n9ICKOF34s=; b=R5evdnflWgCqw+fS9LC5oN7b5uh3p5MexxZx9igaYvaV8z13UXWJKtp8jvqqDT38U1lXHFoFE/ZqfbbyczNQkl/XztxM6mfW/Eha5T6RtHBE66QmuskVyiX35SPbAL5SRwCwKLqPvJFO95SQMogzE2+SBc0jSHyRg9QB6GsRTuI=; Received: from [114.121.153.197] (port=49010 helo=X220.alogt.com) by sl-508-2.slc.westdc.net with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1ZH0IU-004L2B-OL; Sun, 19 Jul 2015 19:55:15 -0600 Date: Mon, 20 Jul 2015 09:55:07 +0800 From: Erich Dollansky To: Michael Vale Cc: "freebsd-embedded@freebsd.org" , "freebsd-mips@freebsd.org" , "freebsd-arm@freebsd.org" , "bapt@freebsd.org" , "portmgr@freebsd.org" , Adrian Chadd Subject: Re: X_BUILD_FOR is back! Message-ID: <20150720095507.0fe291f2@X220.alogt.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sl-508-2.slc.westdc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - alogt.com X-Get-Message-Sender-Via: sl-508-2.slc.westdc.net: authenticated_id: erichsfreebsdlist@alogt.com X-Source: X-Source-Args: X-Source-Dir: 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 01:55:23 -0000 Hi, this sounds good. Erich On Mon, 20 Jul 2015 09:19:07 +1030 Michael Vale 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.