mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] kbuild: include localarch for simple cross overrides
@ 2008-10-29 18:21 Mike Frysinger
  2008-10-29 18:54 ` Sam Ravnborg
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2008-10-29 18:21 UTC (permalink / raw)
  To: sam; +Cc: linux-kernel

For people banging on kernel trees which are dedicated to a specific arch,
it'd be nice to allow the repo itself to declare the default ARCH (and
CROSS_COMPILE) easily.  Just like the "localversion-*" files, people can
just do:
echo 'ARCH ?= blackfin' > localarch
and the tree will default to 'blackfin' all the time rather than whatever
the build machine happens to be.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 Makefile |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index a7f2068..7fa1f81 100644
--- a/Makefile
+++ b/Makefile
@@ -180,6 +180,7 @@ SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
 # make ARCH=ia64
 # Another way is to have ARCH set in the environment.
 # The default ARCH is the host where make is executed.
+-include localarch
 
 # CROSS_COMPILE specify the prefix used for all executables used
 # during compilation. Only gcc and related bin-utils executables
-- 
1.6.0.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-29 18:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-29 18:21 [PATCH] kbuild: include localarch for simple cross overrides Mike Frysinger
2008-10-29 18:54 ` Sam Ravnborg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®