linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* 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

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).