lkml.org 
[lkml]   [2012]   [Mar]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
Subject[PATCH] mkmakefile: add export of $ARCH if specified on command-line
If you create a new build tree and set "ARCH=foo" on the command
line, it makes sense for that build tree to remember the architecture
that it's meant to be built for.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
---
scripts/mkmakefile | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/scripts/mkmakefile b/scripts/mkmakefile
index 0cc0442..67682a8 100644
--- a/scripts/mkmakefile
+++ b/scripts/mkmakefile
@@ -57,3 +57,7 @@ Makefile:;
%/: all
@:
EOF
+
+if [ -n "$ARCH" ]; then
+ echo "export ARCH = $ARCH" >> $2/Makefile
+fi
--
1.6.5.2


\
 
 \ /
  Last update: 2012-03-26 22:59    [W:0.216 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site