[PATCH] pull $CROSS_COMPILE from env. if present

From: Jesse Barnes (jbarnes@sgi.com)
Date: Mon May 19 2003 - 14:53:33 EST


Simple patch to pull CROSS_COMPILE from the environment if it's
present, which makes it easier to compile the kernel with different
compiler versions and such.

Thanks,
Jesse

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.1093 -> 1.1094
# Makefile 1.406 -> 1.407
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/05/19 jbarnes@dec.engr.sgi.com 1.1094
# make CROSS_COMPILE come from an env. variable if present
# --------------------------------------------
#
diff -Nru a/Makefile b/Makefile
--- a/Makefile Mon May 19 12:49:12 2003
+++ b/Makefile Mon May 19 12:49:12 2003
@@ -53,7 +53,7 @@
 HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
 HOSTCXXFLAGS = -O2
 
-CROSS_COMPILE =
+CROSS_COMPILE ?=
 
 # That's our default target when none is given on the command line
 # Note that 'modules' will be added as a prerequisite as well,
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri May 23 2003 - 22:00:36 EST