* Cross compile helper patch
@ 2002-08-28 0:02 Allen Curtis
2002-08-28 4:05 ` Dan Malek
0 siblings, 1 reply; 7+ messages in thread
From: Allen Curtis @ 2002-08-28 0:02 UTC (permalink / raw)
To: linuxppc-dev
[-- Attachment #1: Type: text/plain, Size: 137 bytes --]
I am not sure where to send these so here it goes.
--
All things come to those who wait. Some of us just have to wait a little
longer...
[-- Attachment #2: cross.patch --]
[-- Type: text/x-diff, Size: 1429 bytes --]
# This is a BitKeeper generated patch for the following project:
# Project Name: Linux 2.4 for PowerPC development tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.1114 -> 1.1115
# Makefile 1.164 -> 1.165
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/08/26 acurtis@ws01.onz.com 1.1115
# Make update for cross development.
# --------------------------------------------
#
diff -Nru a/Makefile b/Makefile
--- a/Makefile Tue Aug 27 16:21:45 2002
+++ b/Makefile Tue Aug 27 16:21:45 2002
@@ -5,7 +5,12 @@
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 if [ -f Make.arch ]; then \
+ cat Make.arch; \
+ else \
+ uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/; \
+ fi)
+
KERNELPATH=kernel-$(shell echo $(KERNELRELEASE) | sed -e "s/-//g")
CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
@@ -19,7 +24,9 @@
HOSTCC = gcc
HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
-CROSS_COMPILE =
+CROSS_COMPILE = $(shell if [ -f Make.crosscompiler ]; then \
+ cat Make.crosscompiler; \
+ fi)
#
# Include the make variables (CC, etc...)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Cross compile helper patch
2002-08-28 0:02 Cross compile helper patch Allen Curtis
@ 2002-08-28 4:05 ` Dan Malek
2002-08-28 4:22 ` Allen Curtis
0 siblings, 1 reply; 7+ messages in thread
From: Dan Malek @ 2002-08-28 4:05 UTC (permalink / raw)
To: acurtis; +Cc: linuxppc-dev
Allen Curtis wrote:
> I am not sure where to send these so here it goes.
It only goes in your local version of this file. Everyone has a different
way they want their cross compilation to work, and those of us that use
native systems don't like this in the Makefile. This is the historically
consistent response to everyone that has submitted a similar patch over the years.
Thanks.
-- Dan
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Cross compile helper patch
2002-08-28 4:05 ` Dan Malek
@ 2002-08-28 4:22 ` Allen Curtis
2002-08-28 5:12 ` Dan Malek
2002-08-28 12:01 ` Kenneth Johansson
0 siblings, 2 replies; 7+ messages in thread
From: Allen Curtis @ 2002-08-28 4:22 UTC (permalink / raw)
To: Dan Malek; +Cc: linuxppc-dev
> It only goes in your local version of this file. Everyone has a different
> way they want their cross compilation to work, and those of us that use
> native systems don't like this in the Makefile. This is the historically
> consistent response to everyone that has submitted a similar
> patch over the years.
A two line change to a make file is not exactly cluttering anything up. If
you are doing native development then you use the distribution as it is
provided. Only if you are doing cross development do you need to create
these files. Just a nice logical in the developers face solution to a
problem that has been solved a 1000 time before.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Cross compile helper patch
2002-08-28 4:22 ` Allen Curtis
@ 2002-08-28 5:12 ` Dan Malek
2002-08-28 12:01 ` Kenneth Johansson
1 sibling, 0 replies; 7+ messages in thread
From: Dan Malek @ 2002-08-28 5:12 UTC (permalink / raw)
To: acurtis; +Cc: linuxppc-dev
Allen Curtis wrote:
> .....Only if you are doing cross development do you need to create
> these files. Just a nice logical in the developers face solution to a
> problem that has been solved a 1000 time before.
In 1000 different ways. Like I said, this patch has been submitted by
others in many different forms, and we have politely asked they keep
this local. I don't do my cross compile Makefile changes like you
do, so your changes aren't useful to me, nor to I expect you to want
to this this they way I do.
Thanks.
-- Dan
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Cross compile helper patch
2002-08-28 4:22 ` Allen Curtis
2002-08-28 5:12 ` Dan Malek
@ 2002-08-28 12:01 ` Kenneth Johansson
2002-08-28 14:33 ` Allen Curtis
1 sibling, 1 reply; 7+ messages in thread
From: Kenneth Johansson @ 2002-08-28 12:01 UTC (permalink / raw)
To: acurtis; +Cc: Dan Malek, linuxppc-dev
On Wed, 2002-08-28 at 06:22, Allen Curtis wrote:
>
> > It only goes in your local version of this file. Everyone has a different
> > way they want their cross compilation to work, and those of us that use
> > native systems don't like this in the Makefile. This is the historically
> > consistent response to everyone that has submitted a similar
> > patch over the years.
>
> A two line change to a make file is not exactly cluttering anything up. If
> you are doing native development then you use the distribution as it is
> provided. Only if you are doing cross development do you need to create
> these files. Just a nice logical in the developers face solution to a
> problem that has been solved a 1000 time before.
>
This is what I do when cross compiling
make ARCH=ppc CROSS_COMPILE=powerpc-linux-
Needs no changes to the makefile.
--
Kenneth Johansson
Ericsson AB Tel: +46 8 404 71 83
Borgafjordsgatan 9 Fax: +46 8 404 72 72
164 80 Stockholm kenneth.johansson@etx.ericsson.se
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2002-08-28 15:08 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-28 0:02 Cross compile helper patch Allen Curtis
2002-08-28 4:05 ` Dan Malek
2002-08-28 4:22 ` Allen Curtis
2002-08-28 5:12 ` Dan Malek
2002-08-28 12:01 ` Kenneth Johansson
2002-08-28 14:33 ` Allen Curtis
2002-08-28 15:08 ` Jerry Van Baren
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).