Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1279042

Re: [PATCH 1/1] kconfig: add CPU endian selection beconfig and leconfig

From Scott Branden <sbranden@broadcom.com>
Newsgroups linux.kernel
Subject Re: [PATCH 1/1] kconfig: add CPU endian selection beconfig and leconfig
Date 2015-11-28 00:50 +0100
Message-ID <qzAW6-WL-1@gated-at.bofh.it> (permalink)
References <qzb1D-1pH-13@gated-at.bofh.it> <qzb1D-1pH-11@gated-at.bofh.it> <qztKV-58r-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Arnd,

Thanks for comment - I forgot to directly add you to CC list so was 
going to add you in a couple days if you didn't find this patch proposal.

Response below.

On 15-11-27 07:59 AM, Arnd Bergmann wrote:
> On Thursday 26 November 2015 11:59:55 Scott Branden wrote:
>> @@ -151,6 +159,8 @@ help:
>>          @echo  '  kvmconfig       - Enable additional options for kvm guest kernel support'
>>          @echo  '  xenconfig       - Enable additional options for xen dom0 and guest kernel support'
>>          @echo  '  tinyconfig      - Configure the tiniest possible kernel'
>> +       @echo  '  beconfig        - Update current config to use big endian CPU'
>> +       @echo  '  leconfig        - Update current config to use little endian CPU'
>>
>>
>
> Most architectures don't actually support picking the endianess, I think
> it would be better to keep this architecture specific in some form. If we
> limit it to ARM/ARM64, we might not need the leconfig target at all, because
> that is the default for all defconfig files in the kernel aside from ixp4xx,
> which we can probably ignore here.

Yes, I thought about placing le.config in arm64/configs.  Then I would 
need it in arm/configs also.

CONFIG_CPU_BIG_ENDIAN is currently used by arc, sh, c6x, powerpc, arm, 
arm64, and mips.  Then the next architecture comes along.
So to have the same feature on those architectures they would also need 
le.config in their configs directory.

running "make leconfig" or "make beconfig" on architectures that do not 
support CPU_BIG_ENDIAN has no harmful side affect other than the 
endianness selection will not change.

For these reasons placing the functionality in kernel/configs alongside 
xen.config seemed like the sensible thing to do.  kernel/configs seems 
like a very good place to add more .config selection options to as well.

Of course, whatever method is selected to switch between big and little 
endian sharing a single defconfig I'm open to.

>
> 	Arnd
>
Thanks for comment.
Scott
--
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/

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/1] kconfig: add CPU endian selection beconfig and leconfig Scott Branden <sbranden@broadcom.com> - 2015-11-26 21:10 +0100
  Re: [PATCH 1/1] kconfig: add CPU endian selection beconfig and leconfig Arnd Bergmann <arnd@arndb.de> - 2015-11-27 17:10 +0100
    Re: [PATCH 1/1] kconfig: add CPU endian selection beconfig and  leconfig Scott Branden <sbranden@broadcom.com> - 2015-11-28 00:50 +0100
  Re: [PATCH 1/1] kconfig: add CPU endian selection beconfig and  leconfig Florian Fainelli <f.fainelli@gmail.com> - 2015-11-27 19:50 +0100
    Re: [PATCH 1/1] kconfig: add CPU endian selection beconfig and  leconfig Scott Branden <sbranden@broadcom.com> - 2015-11-28 00:50 +0100

csiph-web