From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1avLYB-000440-Od for barebox@lists.infradead.org; Wed, 27 Apr 2016 09:14:28 +0000 Date: Wed, 27 Apr 2016 11:14:05 +0200 From: Sascha Hauer Message-ID: <20160427091405.GS7860@pengutronix.de> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: Building on PC-BSD 10.3 To: Russell Haley Cc: barebox@lists.infradead.org Hi Russell, On Tue, Apr 26, 2016 at 09:59:10PM -0700, Russell Haley wrote: > Hello, > > Just for a hoot I thought I'd build barebox on PC-BSD 10.3. I followed > these directions: > > https://github.com/jcobham/i.MX53-kernel-images/wiki/How-To:-Build-Barebox-for-IMX53 > > and replaced "make" with "gmake". Here is the output: > > http://pastebin.com/AawYq4bR > > It seems to be missing endian.h? Yes, seems so. From "man 3 endian" on Linux: > These functions are nonstandard. Similar functions are present on > the BSDs, where the required header file is instead of > . Unfortunately, NetBSD, FreeBSD, and glibc haven't > followed the original OpenBSD naming convention for these functions, > whereby the nn component always appears at the end of the function > name (thus, for example, in NetBSD, FreeBSD, and glibc, the > equivalent of OpenBSDs "betoh32" is "be32toh"). We now have scripts/include/tools/endian.h from the Linux kernel. Does the change below help? (The same change may be needed elsewhere in /scripts/) Sascha ------------------------8<------------------------------- diff --git a/scripts/imx/imx-image.c b/scripts/imx/imx-image.c index 16f086a..c8fe5bf 100644 --- a/scripts/imx/imx-image.c +++ b/scripts/imx/imx-image.c @@ -26,7 +26,7 @@ #include #include #include -#include +#include #include #include -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox