Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754657AbbK3T1v (ORCPT ); Mon, 30 Nov 2015 14:27:51 -0500 Received: from mail-pa0-f52.google.com ([209.85.220.52]:36088 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754594AbbK3T1t (ORCPT ); Mon, 30 Nov 2015 14:27:49 -0500 Message-ID: <565CA2EC.8050709@gmail.com> Date: Mon, 30 Nov 2015 11:26:36 -0800 From: Florian Fainelli User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: Scott Branden , Florian Fainelli , "Yann E. MORIN" CC: bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/1] kconfig: add CPU endian selection beconfig and leconfig References: <1448567995-8784-1-git-send-email-sbranden@broadcom.com> <1448567995-8784-2-git-send-email-sbranden@broadcom.com> <5658A368.7080509@gmail.com> <5658EC0C.1030305@broadcom.com> In-Reply-To: <5658EC0C.1030305@broadcom.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1864 Lines: 45 On 27/11/15 15:49, Scott Branden wrote: > Hi Florian, > > On 15-11-27 10:39 AM, Florian Fainelli wrote: >> Le 26/11/2015 11:59, Scott Branden a écrit : >>> Add support for switching defconfig between big and little endian CPU. >>> Various CPU types have ability to select big and little endian >>> CPU in the kernel configuration. >>> >>> "make beconfig" will set CONFIG_CPU_BIG_ENDIAN >>> "make leconfig" will unset CONFIG_CPU_BIG_ENDIAN >> >> I believe I understand what you are trying to achieve here, which is to >> have an identical defconfig file that you can share between a big-endian >> and little-endian kernel? > You understand correct - ARM64 maintainers have only allowed 1 defconfig > upstream and it supports little endian. And it doesn't make sense to > have another defconfig with a single line difference upstreamed. Yet > the defconfig does not allow the system to boot in big endian mode. >> >> Is not this something better left to a build system which understands >> what config fragments are in general? > Every build system would need to invent their own procedure. By adding > this into the upstream kernel there is no need to. > make defconfig > make beconfig (or make leconfig) > make In my experience build systems like OpenWrt, Yocto/OE know about config fragments, but have a harder time dealing with running multiple make targets within the Linux source tree... >> >> Since we seem to have support for fragments now with kvm and friends, >> having this does not seem to be a big stretch though. > Yes, that is why I proposed place it in a common location. Fair enough. -- Florian -- 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/