mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* Building on PC-BSD 10.3
@ 2016-04-27  4:59 Russell Haley
  2016-04-27  9:14 ` Sascha Hauer
  2016-04-30  9:40 ` DU HUANPENG
  0 siblings, 2 replies; 5+ messages in thread
From: Russell Haley @ 2016-04-27  4:59 UTC (permalink / raw)
  To: barebox

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?

Any input would be stellar.

Thanks,

Russ

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Building on PC-BSD 10.3
  2016-04-27  4:59 Building on PC-BSD 10.3 Russell Haley
@ 2016-04-27  9:14 ` Sascha Hauer
  2016-04-27 16:09   ` Russell Haley
  2016-04-30  9:40 ` DU HUANPENG
  1 sibling, 1 reply; 5+ messages in thread
From: Sascha Hauer @ 2016-04-27  9:14 UTC (permalink / raw)
  To: Russell Haley; +Cc: barebox

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 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Building on PC-BSD 10.3
  2016-04-27  9:14 ` Sascha Hauer
@ 2016-04-27 16:09   ` Russell Haley
  0 siblings, 0 replies; 5+ messages in thread
From: Russell Haley @ 2016-04-27 16:09 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox

On Wed, Apr 27, 2016 at 2:14 AM, Sascha Hauer <s.hauer@pengutronix.de> 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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Building on PC-BSD 10.3
  2016-04-27  4:59 Building on PC-BSD 10.3 Russell Haley
  2016-04-27  9:14 ` Sascha Hauer
@ 2016-04-30  9:40 ` DU HUANPENG
  2016-05-01  5:56   ` Russell Haley
  1 sibling, 1 reply; 5+ messages in thread
From: DU HUANPENG @ 2016-04-30  9:40 UTC (permalink / raw)
  To: Russell Haley; +Cc: barebox

is kbuild can run on bsd now?

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?
> 
> Any input would be stellar.
> 
> Thanks,
> 
> Russ
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox

...
duhuanpeng.
u74147@gmai1.com

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Building on PC-BSD 10.3
  2016-04-30  9:40 ` DU HUANPENG
@ 2016-05-01  5:56   ` Russell Haley
  0 siblings, 0 replies; 5+ messages in thread
From: Russell Haley @ 2016-05-01  5:56 UTC (permalink / raw)
  To: DU HUANPENG; +Cc: barebox

On Sat, Apr 30, 2016 at 2:40 AM, DU HUANPENG <no_rep1y@hotmail.com> wrote:
> is kbuild can run on bsd now?

http://www.freshports.org/devel/kBuild/

Apparently, it has for sometime if you look at the history. However, I
know nothing about it. I don't *think* I have that package installed,
but barebox seems to be compiling something? I've managed to limp
further along with what I think are the correct files now, but haven't
had a chance to get back on that computer for a couple of days to post
the output of the next roadblock.

Russ

> 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?
>>
>> Any input would be stellar.
>>
>> Thanks,
>>
>> Russ
>>
>> _______________________________________________
>> barebox mailing list
>> barebox@lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/barebox
>
> ...
> duhuanpeng.
> u74147@gmai1.com
>

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-05-01  5:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-27  4:59 Building on PC-BSD 10.3 Russell Haley
2016-04-27  9:14 ` Sascha Hauer
2016-04-27 16:09   ` Russell Haley
2016-04-30  9:40 ` DU HUANPENG
2016-05-01  5:56   ` Russell Haley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox