Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933179AbZGPTzs (ORCPT ); Thu, 16 Jul 2009 15:55:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S933116AbZGPTzr (ORCPT ); Thu, 16 Jul 2009 15:55:47 -0400 Received: from pfepa.post.tele.dk ([195.41.46.235]:54689 "EHLO pfepa.post.tele.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932805AbZGPTzq (ORCPT ); Thu, 16 Jul 2009 15:55:46 -0400 Date: Thu, 16 Jul 2009 21:55:42 +0200 From: Sam Ravnborg To: Masami Hiramatsu Cc: Ingo Molnar , Steven Rostedt , lkml , systemtap , kvm , DLE , Jim Keniston , "H. Peter Anvin" , Ananth N Mavinakayanahalli , Srikar Dronamraju , Frederic Weisbecker , Andi Kleen , Vegard Nossum , Avi Kivity , Przemys??awPawe??czyk Subject: Re: [PATCH -tip -v12 02/11] x86: x86 instruction decoder build-time selftest Message-ID: <20090716195542.GA5994@merkur.ravnborg.org> Mail-Followup-To: Masami Hiramatsu , Ingo Molnar , Steven Rostedt , lkml , systemtap , kvm , DLE , Jim Keniston , "H. Peter Anvin" , Ananth N Mavinakayanahalli , Srikar Dronamraju , Frederic Weisbecker , Andi Kleen , Vegard Nossum , Avi Kivity , Przemys??awPawe??czyk References: <20090716155652.6266.39970.stgit@localhost.localdomain> <20090716155706.6266.79022.stgit@localhost.localdomain> <20090716162947.GA5804@merkur.ravnborg.org> <4A5F6571.3020002@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A5F6571.3020002@redhat.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1099 Lines: 26 > >> + cmd_posttest = objdump -d $(objtree)/vmlinux | awk -f $(srctree)/arch/x86/scripts/distill.awk | $(obj)/test_get_len > >> + > > > > You are using the native objdump here. > > But I assume this fails miserably when you build x86 on a powerpc host. > > In other words - you broke an allyesconfig build for -next... > > We have $(OBJDUMP) for this. > > Ah, I see... Would you know actual name of x86-objdump on the powerpc > (or any other crosscompiling host)? I just set "OBJDUMP=objdump" is OK? > I'm not so sure about cross-compiling kernel... Replacing objdump with $(OBJDUMP) will do the trick. We set OBJDUMP to the correct value in the top-level makefile. Are there any parts of your user-space program that rely on the host is little-endian? If it does then it would fail on a power-pc target despite using the correct objdump. Sam -- 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/