On Wed, Apr 27, 2016 at 2:14 AM, Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> wrote: > 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 <sys/endian.h> instead of >> <endian.h>. 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 <sys/types.h> > #include <sys/stat.h> > #include <fcntl.h> > -#include <endian.h> > +#include <tools/endian.h> > #include <linux/kernel.h> > #include <sys/file.h> > > > -- > 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 | Awesome, thanks so much. I'll try that tonight! Russ _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox