From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 21 Aug 2013 14:16:27 +0200 (CEST) Received: from b.ns.miles-group.at ([95.130.255.144]:9062 "EHLO radon.swed.at" rhost-flags-OK-OK-OK-FAIL) by eddie.linux-mips.org with ESMTP id S6832092Ab3HUMQYzY7wJ (ORCPT ); Wed, 21 Aug 2013 14:16:24 +0200 Received: (qmail 14906 invoked by uid 89); 21 Aug 2013 12:16:25 -0000 Received: by simscan 1.3.1 ppid: 14898, pid: 14902, t: 0.1167s scanners: attach: 1.3.1 clamav: 0.96.5/m: Received: from unknown (HELO ?10.1.1.199?) (richard@nod.at@91.114.127.102) by radon.swed.at with ESMTPA; 21 Aug 2013 12:16:25 -0000 Message-ID: <5214AF8E.1010406@nod.at> Date: Wed, 21 Aug 2013 14:16:14 +0200 From: Richard Weinberger User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: Geert Uytterhoeven CC: Linux-Arch , Michal Marek , Ralf Baechle , Paul Mundt , Jeff Dike , Guan Xuetao , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , the arch/x86 maintainers , linux-kbuild , "linux-kernel@vger.kernel.org" , linux-m68k , Linux MIPS Mailing List , Linux-sh list , uml-devel Subject: Re: [RFC] Get rid of SUBARCH References: <1377073172-3662-1-git-send-email-richard@nod.at> In-Reply-To: X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 37620 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: richard@nod.at Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips Am 21.08.2013 14:07, schrieb Geert Uytterhoeven: > On Wed, Aug 21, 2013 at 10:19 AM, Richard Weinberger wrote: >> This series is an attempt to remove the SUBARCH make parameter. >> It as introduced at the times of Linux 2.5 for UML to tell the UML >> build system what the real architecture is. >> >> But we actually don't need SUBARCH, we can store this information >> in the .config file. > > Haha, now you have OS_ARCH (shouldn't that be called HOST_ARCH?) instead, > which is available only for UM? We have already OS (which is always "Linux"), so OS_ARCH is IMHO a good choice. UML always needs to know what the underlying arch is. OS_ARCH is not only visible to arch/um/ because of that code in the global Makefile: # UML needs a little special treatment here. It wants to use the host # toolchain, so needs $(SUBARCH) passed to checkstack.pl. Everyone # else wants $(ARCH), including people doing cross-builds, which means # that $(SUBARCH) doesn't work here. ifeq ($(ARCH), um) CHECKSTACK_ARCH := $(SUBARCH) else CHECKSTACK_ARCH := $(ARCH) endif scripts/tags.sh also needs some work. V2 will contain a patch for that. >> The series touches also m68k, sh, mips and unicore32. >> These architectures magically select a cross compiler if ARCH != SUBARCH. >> Do really need that behavior? > > This does remove functionality. > It allows to build a kernel using e.g. "make ARCH=m68k". If this functionality is expected and has users I'll happily keep that. > Perhaps this can be moved to generic code? Most (not all!) cross-toolchains > are called $ARCH-{unknown-,}linux{,-gnu}. > Exceptions are e.g. am33_2.0-linux and bfin-uclinux. Sounds good. >> [PATCH 1/8] um: Create defconfigs for i386 and x86_64 >> [PATCH 3/8] um: Remove old defconfig > > Why not merge these two, so git copy/rename detection will show only the real > changes? Will do. Thanks, //richard