linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Mark Hatle <fray@mvista.com>
To: andrew may <acmay@acmay.homeip.net>
Cc: Tom Rini <trini@kernel.crashing.org>, Dan Malek <dan@mvista.com>,
	John Tyner <jtyner@cs.ucr.edu>,
	linuxppc-commit@source.mvista.com,
	linuxppc-embedded@lists.linuxppc.org
Subject: Re: patch for mktree.c on cross compiles
Date: Thu, 06 Sep 2001 17:02:20 -0500	[thread overview]
Message-ID: <3B97F26C.C88B10B2@mvista.com> (raw)
In-Reply-To: 20010906135432.M14548@ecam.san.rr.com


andrew may wrote:
>
> > Yes, it's an imperfect solution at best.  What would be correct is for us
> > to copy all of the needed magic into our own header and toss it in
> > arch/ppc/boot/include.  With some proper magic for the !Linux case too.
>
> I am not sure why we would need to do this. mktree.c already includes
> libc headers and the htonl defination is pulled in with them.
>
> This does increase our build requirments to have a working libc env
> on the host.
>
> To be completely correct not only will you need to have the byte order
> magic in arch/ppc/boot/include, but also all the file access magic as
> well, since mktree reads in a file, adds a header and then writes out
> another file.

I have a concern that using any glibc (specific) stuff will break cross
compiling from say a solaris system to linux.  I thing Andrew is right,
the correct solution is probably to copy the bits into the boot/include
dir.

--Mark

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

  parent reply	other threads:[~2001-09-06 22:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-05 19:06 patch for mktree.c on cross compiles andrew may
     [not found] ` <3B968E75.A63F26EA@mvista.com>
2001-09-06  4:20   ` Tom Rini
     [not found]     ` <20010905223903.D621@sink.san.rr.com>
2001-09-06 14:55       ` Tom Rini
2001-09-06 20:01         ` andrew may
2001-09-06 21:08           ` Tom Rini
     [not found]             ` <20010906135432.M14548@ecam.san.rr.com>
2001-09-06 22:02               ` Mark Hatle [this message]
2001-09-06 22:25               ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3B97F26C.C88B10B2@mvista.com \
    --to=fray@mvista.com \
    --cc=acmay@acmay.homeip.net \
    --cc=dan@mvista.com \
    --cc=jtyner@cs.ucr.edu \
    --cc=linuxppc-commit@source.mvista.com \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    --cc=trini@kernel.crashing.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).