mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mikael Pettersson <mikpe@csd.uu.se>
To: Martin Schaffner <schaffner@gmx.li>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2.4.25] enable cross-compilation from Mac OS X
Date: Tue, 24 Feb 2004 16:33:59 +0100	[thread overview]
Message-ID: <16443.28391.185684.697432@alkaid.it.uu.se> (raw)
In-Reply-To: <9D6F6210-66DA-11D8-A093-0003931E0B62@gmx.li>

Martin Schaffner writes:
 > Hi,
 > 
 > After setting up a cross-compile toolchain (using 
 > http://vserver.13thfloor.at/Stuff/Cross/) on Mac OS X 10.3.2, and 
 > applying the following patch, I was able to compile a bootable linux 
 > kernel with the command:
 > make CROSS_COMPILE=/usr/local/bin/powerpc-linux-gnu-
 > 
 > Please consider applying the patch to the main 2.4 tree.
 > 
 > I was also able to compile 2.6.1 with basically the same patch, but it 
 > required some additional fiddling with the makefiles in 
 > not-entirely-clean ways.
 > 
 > --- Makefile.old        Wed Feb 18 13:36:32 2004
 > +++ Makefile    Tue Feb 24 11:36:13 2004
 > @@ -5,7 +5,7 @@
 > 
 >   KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
 > 
 > -ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e 
 > s/arm.*/arm/ -e s/sa110/arm/)
 > +ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e 
 > s/arm.*/arm/ -e s/sa110/arm/ -e s/Power\ Macintosh/ppc/)
 >   KERNELPATH=kernel-$(shell echo $(KERNELRELEASE) | sed -e "s/-//g")
 > 
 >   CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \

Just do
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE
like we've always done when cross-compiling.

This patch is not needed.

      reply	other threads:[~2004-02-24 15:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-24 15:03 Martin Schaffner
2004-02-24 15:33 ` Mikael Pettersson [this message]

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=16443.28391.185684.697432@alkaid.it.uu.se \
    --to=mikpe@csd.uu.se \
    --cc=linux-kernel@vger.kernel.org \
    --cc=schaffner@gmx.li \
    /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

all inboxes | Powered by JetHome®