From owner-freebsd-embedded@freebsd.org Mon Jul 20 04:31:56 2015 Return-Path: Delivered-To: freebsd-embedded@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 AAABD9A6299; Mon, 20 Jul 2015 04:31:56 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ie0-x233.google.com (mail-ie0-x233.google.com [IPv6:2607:f8b0:4001:c03::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6EB371057; Mon, 20 Jul 2015 04:31:56 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by iecri3 with SMTP id ri3so14932469iec.2; Sun, 19 Jul 2015 21:31:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=Lrj83suJOa1DzuyyCUd2iOSD1SLHd7ujyIUAi8d5H9w=; b=0FDqzOJhvWPcZApzGOXH4Pp5BmNkDa1XYGtStTLo/srSXLOlQb/Lxp0UcRL7ANT1l2 YunkOcNv7ixH7Nt1IFDJDQA7hQIX34oPrIogKoRBGLnD+8FtS3lHpZGku/CA2fxkEcw1 yRlP9ZjRn9FdoZTMML4/jxCrCHJO0RtMHQyH9OwMadVA0Ev0u06tDtvikf5FLNoPd9o2 pDCfynNo5oUIlEpU1FuGxo0qTIHDq+0urkLDTktx+OqGnigOr8ogSeNPZY5Fj+8IUWjz S8EIT0KZo7tZWaP2zwrRXWqreWU2JM4Xe4EOoz4eOt33yRn0TiskGCGPLxwCZ57PZCLl wsxA== MIME-Version: 1.0 X-Received: by 10.107.35.144 with SMTP id j138mr36927886ioj.105.1437366715776; Sun, 19 Jul 2015 21:31:55 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Sun, 19 Jul 2015 21:31:55 -0700 (PDT) In-Reply-To: <20150720095507.0fe291f2@X220.alogt.com> References: <20150720095507.0fe291f2@X220.alogt.com> Date: Sun, 19 Jul 2015 21:31:55 -0700 X-Google-Sender-Auth: 3jBHoHoublvnS_3rbxpCy3kqO7Q Message-ID: Subject: Re: X_BUILD_FOR is back! From: Adrian Chadd To: Erich Dollansky Cc: Michael Vale , "freebsd-embedded@freebsd.org" , "freebsd-mips@freebsd.org" , "freebsd-arm@freebsd.org" , "bapt@freebsd.org" , "portmgr@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jul 2015 04:31:56 -0000 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 wrote: > 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.