linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Allen Curtis <acurtis@onz.com>
To: linuxppc-dev@lists.linuxppc.org
Subject: Cross compile helper patch
Date: Tue, 27 Aug 2002 17:02:54 -0700	[thread overview]
Message-ID: <200208271702.54458.acurtis@onz.com> (raw)

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

             reply	other threads:[~2002-08-28  0:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-28  0:02 Allen Curtis [this message]
2002-08-28  4:05 ` Cross compile helper patch 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

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=200208271702.54458.acurtis@onz.com \
    --to=acurtis@onz.com \
    --cc=linuxppc-dev@lists.linuxppc.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).