linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Simon Horman <horms@verge.net.au>
To: linuxppc-dev@ozlabs.org
Cc: Paul Mackerras <paulus@samba.org>
Subject: [Patch] [POWERPC] allow make defconfig to work on non-power machines
Date: Tue, 15 May 2007 13:21:18 +0900	[thread overview]
Message-ID: <1179202878.13166@tabatha.lab.ultramonkey.org> (raw)

I'm wondering if there is any interest in a patch along the lines
of this to allow make defconfig to do something sensible when
uname isn't sensible - I noticed this when doing cross-compile builds.

Signed-off-by: Simon Horman <horms@verge.net.au>

--- 
 arch/powerpc/Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6/arch/powerpc/Makefile
===================================================================
--- linux-2.6.orig/arch/powerpc/Makefile	2007-05-15 11:23:14.000000000 +0900
+++ linux-2.6/arch/powerpc/Makefile	2007-05-15 13:28:36.000000000 +0900
@@ -35,7 +35,7 @@ endif
 
 export CROSS32CC CROSS32AS CROSS32LD CROSS32AR CROSS32OBJCOPY
 
-KBUILD_DEFCONFIG := $(shell uname -m)_defconfig
+KBUILD_DEFCONFIG := $(shell c=`uname -m`_defconfig; if [ ! -f arch/powerpc/configs/$$c ]; then c=ppc64_defconfig; fi; echo -n $$c)
 
 ifeq ($(CONFIG_PPC64),y)
 OLDARCH	:= ppc64

                 reply	other threads:[~2007-05-15  5:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1179202878.13166@tabatha.lab.ultramonkey.org \
    --to=horms@verge.net.au \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=paulus@samba.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).