From owner-freebsd-arm@freebsd.org Fri Jul 10 17:29:34 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 1C91135A0; Fri, 10 Jul 2015 17:29:34 +0000 (UTC) (envelope-from m.vale@live.com.au) Received: from COL004-OMC4S5.hotmail.com (col004-omc4s5.hotmail.com [65.55.34.207]) (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 E843512F9; Fri, 10 Jul 2015 17:29:33 +0000 (UTC) (envelope-from m.vale@live.com.au) Received: from COL130-W48 ([65.55.34.199]) by COL004-OMC4S5.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Fri, 10 Jul 2015 10:29:27 -0700 X-TMN: [DGueiRNafvI9GTIU/FF4jMhuLSxTKPgz] X-Originating-Email: [m.vale@live.com.au] Message-ID: Content-Type: multipart/mixed; boundary="_7447fe4a-fceb-481d-8350-4c3ee46c7a8e_" From: Michael Vale To: "sbruno@freebsd.org" , "freebsd-mips@freebsd.org" , "freebsd-embedded@freebsd.org" , "freebsd-arm@freebsd.org" Subject: RE: Cross Ports - working - find attached bsd.port.mk Date: Sat, 11 Jul 2015 03:59:26 +1030 Importance: Normal In-Reply-To: <559FF4D5.6040605@ignoranthack.me> References: , <559FF4D5.6040605@ignoranthack.me> MIME-Version: 1.0 X-OriginalArrivalTime: 10 Jul 2015 17:29:27.0270 (UTC) FILETIME=[F8A0E860:01D0BB35] 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: Fri, 10 Jul 2015 17:29:34 -0000 --_7447fe4a-fceb-481d-8350-4c3ee46c7a8e_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable please find attached unified diff patch. > Date: Fri=2C 10 Jul 2015 09:37:41 -0700 > From: sbruno@ignoranthack.me > To: m.vale@live.com.au=3B freebsd-mips@freebsd.org > Subject: Re: Cross Ports - working - find attached bsd.port.mk >=20 > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 >=20 > On 07/10/15 08:31=2C Michael Vale wrote: > > Okay=2C So=2C I'm submitting my work on cross ports. Here's what works > > and what doesn't work Clang support is there but GNU configure > > tries to append -march=3Dmips32r2 to the command which causes the > > compiler check to fail. GCC support is there=2C except when a GNU > > configure script tries to link -lgcc_s - apparently Adrian and bapt > > were meant to have fixed this in -head=2C but I updated and still had > > the problem. So an example of the ports I've tried and worked are:=20 > > sysutils/busyboxsecurity/dropbear Now when running bmake > > X_BUILD_FOR=3Dmips on dropbear=2C it fails "installing" files into the > > stage. But if you run bmake again without X_BUILD_FOR=3Dmips it > > "installs" those files into stage and one can continue along with > > bmake install. It is assumed that one has built a world with > > freebsd-wifi-build. An example of running a bmake is=20 > > SRCDIR=3D/home/masked/work/src bmake X_BUILD_FOR=3Dmips > >=20 > >=20 >=20 > I'm glad that you've made some progress with cross building without > emulation. I'd like to see what you've been able to accomplish with > your changes. >=20 > Is there anyway you can post some kind of unified diff that we can > view so that we can more easily (I'm lazy) see what you've been up to? >=20 > sean > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2 >=20 > iQF8BAEBCgBmBQJVn/TTXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w > ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx > MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5kUKMIAL/ob4UX18T811yyO0KA82YE > HJVXdVN/bbx1gQ1PKJVXms5c8nylQ0RRScEvBQUmWXMEsVMFGXbeyPCuqBgEZakT > UlRGnEOh3swzXfr6ssXI4afguKmlf/CC/lUPCDauL4efDJGqix2IjjuQhXdnl0y+ > E6xZD67NdgyRhOCl/Ynz1LRf5Ov6kYwUoxsnTE6nVACL7VXT1gxEm1pL/yl7n9cA > psrbkwOMmANvakTfaVeO2em22YB/YkwYHFjorzxgPWPm3W0gDisQTPck37y8hEqP > Vx9W8zdNbt0FMIjip+dY4EbBQZKHW9QfeWK5YBeOQ8d0m+vNLwnz1EQCfLdfsC4=3D > =3Dlh// > -----END PGP SIGNATURE----- = --_7447fe4a-fceb-481d-8350-4c3ee46c7a8e_ Content-Type: application/octet-stream Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="bsd.port.mk.patch" LS0tIGJzZC5wb3J0Lm1rCTIwMTUtMDctMTEgMDM6MjU6NTAuMTg0NDE2MDAwICsxMDAwCisrKyBi c2QucG9ydC5tay5kb25lCTIwMTUtMDctMTEgMDM6MjY6MjYuMjMzMjY2MDAwICsxMDAwCkBAIC0x LDcgKzEsNyBAQAogIy0qLSB0YWItd2lkdGg6IDQ7IC0qLQogIyBleDp0cz00CiAjCi0jICRGcmVl QlNEJAorIyAkRnJlZUJTRDogaGVhZC9Nay9ic2QucG9ydC5tayAzOTEyOTUgMjAxNS0wNy0wNCAw ODo1Njo1NFogYmFwdCAkCiAjCSROZXRCU0Q6ICQKICMKICMJYnNkLnBvcnQubWsgLSA5NDA4MjAg Sm9yZGFuIEsuIEh1YmJhcmQuCkBAIC0xMDc4LDI1ICsxMDc4LDI2IEBACiAuaWYgIWRlZmluZWQo LlBBUlNFRElSKQogSUdOT1JFPQlDcm9zcyBidWlsZGluZyBjYW4gb25seSBiZSBkb25lIHdoZW4g dXNpbmcgYm1ha2UoMSkgYXMgbWFrZSgxKQogLmVuZGlmCisuaWYgIWRlZmluZWQoQVJDSCkKK0FS Q0g9CQkke1hfQlVJTERfRk9SfQorLmVuZGlmCiAjIERvIG5vdCBkZWZpbmUgQ1B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