From owner-freebsd-arm@FreeBSD.ORG Sun Mar 15 08:23:22 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 63FF2F05 for ; Sun, 15 Mar 2015 08:23:22 +0000 (UTC) Received: from mx0.deglitch.com (unknown [IPv6:2001:16d8:ff00:19d::2]) by mx1.freebsd.org (Postfix) with ESMTP id 0DBC3F2C for ; Sun, 15 Mar 2015 08:23:22 +0000 (UTC) Received: from [192.168.11.8] (unknown [98.248.95.7]) by mx0.deglitch.com (Postfix) with ESMTPSA id 901798FC2E; Sun, 15 Mar 2015 12:23:11 +0400 (MSK) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Subject: Re: Building Cross Compiler and u-boot From: Stanislav Sedov In-Reply-To: Date: Sun, 15 Mar 2015 01:23:05 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Russell Haley X-Mailer: Apple Mail (2.2070.6) Cc: freebsd-arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Mar 2015 08:23:22 -0000 > On Mar 14, 2015, at 9:14 PM, Russell Haley = wrote: >=20 > Hello I am trying to build the cross compile tools and make u-boot. >=20 > Tim Kientzle spoke about two ways of getting cross compilers for > outside of building FreeBDS: >=20 > 1) make TARGET=3Darm TARGET_ARCH=3Darmv6 buildenv >=20 > after a successful buildworld >=20 > 2)make xdev XDEV=3Darm XDEV_ARCH=3Darmv6 >=20 FWIW, you don=E2=80=99t need FreeBSD toolchain to build uboot =E2=80=94 = it=E2=80=99s a freestanding application and does not depend on FreeBSD ABI. Using a compiler from = the cross-gcc port will suffice. You will need to provide TGTARCH=3Darm and TGTABI=3Deabi when building = the toolchain. There used to be a arm-rtems-gcc port available which provided packages, = but it was sadly removed along with other useful ports. But if you=E2=80=99re= using one of the older FreeBSD version with full package collection you can install = one by running `pkg_add -r arm-rtems-gcc`. Then build uboot with = CROSS_COMPILE=3Darm-rtems- variable set.=20 -- ST4096-RIPE