linux-kbuild.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* deb-pkg: Add support for powerpc little endian
@ 2014-09-05  5:28 Michael Neuling
  2014-09-05  7:13 ` Gabriel Paubert
  0 siblings, 1 reply; 7+ messages in thread
From: Michael Neuling @ 2014-09-05  5:28 UTC (permalink / raw)
  To: Michal Marek, Ben Hutchings
  Cc: linux-kbuild, linuxppc-dev, linux-kernel, Anton Blanchard,
	Leann Ogasawara

The Debian powerpc little endian architecture is called ppc64le.  This
is the default architecture used by Ubuntu for powerpc.

The below checks the kernel config to see if we are compiling little
endian and sets the Debian arch appropriately.

Signed-off-by: Michael Neuling <mikey@neuling.org>

diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 35d5a58..6f4a1af 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -37,7 +37,7 @@ create_package() {
 	s390*)
 		debarch=s390$(grep -q CONFIG_64BIT=y $KCONFIG_CONFIG && echo x || true) ;;
 	ppc*)
-		debarch=powerpc ;;
+		debarch=$(grep -q CPU_LITTLE_ENDIAN=y $KCONFIG_CONFIG && echo ppc64el || echo powerpc) ;;
 	parisc*)
 		debarch=hppa ;;
 	mips*)


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: deb-pkg: Add support for powerpc little endian
  2014-09-05  5:28 deb-pkg: Add support for powerpc little endian Michael Neuling
@ 2014-09-05  7:13 ` Gabriel Paubert
  2014-09-05  7:55   ` [PATCH v2] " Michael Neuling
  0 siblings, 1 reply; 7+ messages in thread
From: Gabriel Paubert @ 2014-09-05  7:13 UTC (permalink / raw)
  To: Michael Neuling
  Cc: Michal Marek, Ben Hutchings, Leann Ogasawara, linuxppc-dev,
	linux-kernel, Anton Blanchard, linux-kbuild

On Fri, Sep 05, 2014 at 03:28:47PM +1000, Michael Neuling wrote:
> The Debian powerpc little endian architecture is called ppc64le.  This

Huh? ppc64le or ppc64el?

> is the default architecture used by Ubuntu for powerpc.
> 
> The below checks the kernel config to see if we are compiling little
> endian and sets the Debian arch appropriately.
> 
> Signed-off-by: Michael Neuling <mikey@neuling.org>
> 
> diff --git a/scripts/package/builddeb b/scripts/package/builddeb
> index 35d5a58..6f4a1af 100644
> --- a/scripts/package/builddeb
> +++ b/scripts/package/builddeb
> @@ -37,7 +37,7 @@ create_package() {
>  	s390*)
>  		debarch=s390$(grep -q CONFIG_64BIT=y $KCONFIG_CONFIG && echo x || true) ;;
>  	ppc*)
> -		debarch=powerpc ;;
> +		debarch=$(grep -q CPU_LITTLE_ENDIAN=y $KCONFIG_CONFIG && echo ppc64el || echo powerpc) ;;
>  	parisc*)
>  		debarch=hppa ;;
>  	mips*)


	Gabriel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v2] deb-pkg: Add support for powerpc little endian
  2014-09-05  7:13 ` Gabriel Paubert
@ 2014-09-05  7:55   ` Michael Neuling
  2014-09-05 12:09     ` Thadeu Lima de Souza Cascardo
  2014-09-05 12:14     ` Josh Boyer
  0 siblings, 2 replies; 7+ messages in thread
From: Michael Neuling @ 2014-09-05  7:55 UTC (permalink / raw)
  To: Gabriel Paubert
  Cc: Michal Marek, Ben Hutchings, Leann Ogasawara, linuxppc-dev,
	linux-kernel, Anton Blanchard, linux-kbuild

On Fri, 2014-09-05 at 09:13 +0200, Gabriel Paubert wrote:
> On Fri, Sep 05, 2014 at 03:28:47PM +1000, Michael Neuling wrote:
> > The Debian powerpc little endian architecture is called ppc64le.  This
> 
> Huh? ppc64le or ppc64el?

ppc64el.  Commit message is wrong.  Fixed below.

Mikey


From: Michael Neuling <mikey@neuling.org>

deb-pkg: Add support for powerpc little endian

The Debian powerpc little endian architecture is called ppc64el.  This
is the default architecture used by Ubuntu for powerpc.

The below checks the kernel config to see if we are compiling little
endian and sets the Debian arch appropriately.

Signed-off-by: Michael Neuling <mikey@neuling.org>

diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 35d5a58..6f4a1af 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -37,7 +37,7 @@ create_package() {
 	s390*)
 		debarch=s390$(grep -q CONFIG_64BIT=y $KCONFIG_CONFIG && echo x || true) ;;
 	ppc*)
-		debarch=powerpc ;;
+		debarch=$(grep -q CPU_LITTLE_ENDIAN=y $KCONFIG_CONFIG && echo ppc64el || echo powerpc) ;;
 	parisc*)
 		debarch=hppa ;;
 	mips*)




^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH v2] deb-pkg: Add support for powerpc little endian
  2014-09-05  7:55   ` [PATCH v2] " Michael Neuling
@ 2014-09-05 12:09     ` Thadeu Lima de Souza Cascardo
  2014-09-07  2:42       ` Ben Hutchings
  2014-09-05 12:14     ` Josh Boyer
  1 sibling, 1 reply; 7+ messages in thread
From: Thadeu Lima de Souza Cascardo @ 2014-09-05 12:09 UTC (permalink / raw)
  To: Michael Neuling
  Cc: Gabriel Paubert, Michal Marek, linux-kbuild, Ben Hutchings,
	linux-kernel, Anton Blanchard, Leann Ogasawara, linuxppc-dev

On Fri, Sep 05, 2014 at 05:55:18PM +1000, Michael Neuling wrote:
> On Fri, 2014-09-05 at 09:13 +0200, Gabriel Paubert wrote:
> > On Fri, Sep 05, 2014 at 03:28:47PM +1000, Michael Neuling wrote:
> > > The Debian powerpc little endian architecture is called ppc64le.  This
> > 
> > Huh? ppc64le or ppc64el?
> 
> ppc64el.  Commit message is wrong.  Fixed below.
> 
> Mikey
> 
> 

What about ppc64?

Also, I sent that already a month ago. Both linuxppc-dev and Michal
Marek were on cc.

http://marc.info/?l=linux-kernel&m=140744360328562&w=2

Cascardo.

> From: Michael Neuling <mikey@neuling.org>
> 
> deb-pkg: Add support for powerpc little endian
> 
> The Debian powerpc little endian architecture is called ppc64el.  This
> is the default architecture used by Ubuntu for powerpc.
> 
> The below checks the kernel config to see if we are compiling little
> endian and sets the Debian arch appropriately.
> 
> Signed-off-by: Michael Neuling <mikey@neuling.org>
> 
> diff --git a/scripts/package/builddeb b/scripts/package/builddeb
> index 35d5a58..6f4a1af 100644
> --- a/scripts/package/builddeb
> +++ b/scripts/package/builddeb
> @@ -37,7 +37,7 @@ create_package() {
>  	s390*)
>  		debarch=s390$(grep -q CONFIG_64BIT=y $KCONFIG_CONFIG && echo x || true) ;;
>  	ppc*)
> -		debarch=powerpc ;;
> +		debarch=$(grep -q CPU_LITTLE_ENDIAN=y $KCONFIG_CONFIG && echo ppc64el || echo powerpc) ;;
>  	parisc*)
>  		debarch=hppa ;;
>  	mips*)
> 
> 
> 
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/linuxppc-dev


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2] deb-pkg: Add support for powerpc little endian
  2014-09-05  7:55   ` [PATCH v2] " Michael Neuling
  2014-09-05 12:09     ` Thadeu Lima de Souza Cascardo
@ 2014-09-05 12:14     ` Josh Boyer
  1 sibling, 0 replies; 7+ messages in thread
From: Josh Boyer @ 2014-09-05 12:14 UTC (permalink / raw)
  To: Michael Neuling
  Cc: Gabriel Paubert, Michal Marek, Ben Hutchings, Leann Ogasawara,
	linuxppc-dev, linux-kernel, Anton Blanchard, linux-kbuild

On Fri, Sep 5, 2014 at 3:55 AM, Michael Neuling <mikey@neuling.org> wrote:
> On Fri, 2014-09-05 at 09:13 +0200, Gabriel Paubert wrote:
>> On Fri, Sep 05, 2014 at 03:28:47PM +1000, Michael Neuling wrote:
>> > The Debian powerpc little endian architecture is called ppc64le.  This
>>
>> Huh? ppc64le or ppc64el?
>
> ppc64el.  Commit message is wrong.  Fixed below.

Yay!  Just like every other architecture, we continue to have the deb
based distros call it one thing, and the RPM based distros call it
another.  At least we're consistent in our inconsistency.

josh

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2] deb-pkg: Add support for powerpc little endian
  2014-09-05 12:09     ` Thadeu Lima de Souza Cascardo
@ 2014-09-07  2:42       ` Ben Hutchings
  2014-09-12 14:12         ` Michal Marek
  0 siblings, 1 reply; 7+ messages in thread
From: Ben Hutchings @ 2014-09-07  2:42 UTC (permalink / raw)
  To: Thadeu Lima de Souza Cascardo
  Cc: Michael Neuling, Gabriel Paubert, Michal Marek, linux-kbuild,
	linux-kernel, Anton Blanchard, Leann Ogasawara, linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 2242 bytes --]

On Fri, 2014-09-05 at 09:09 -0300, Thadeu Lima de Souza Cascardo wrote:
> On Fri, Sep 05, 2014 at 05:55:18PM +1000, Michael Neuling wrote:
> > On Fri, 2014-09-05 at 09:13 +0200, Gabriel Paubert wrote:
> > > On Fri, Sep 05, 2014 at 03:28:47PM +1000, Michael Neuling wrote:
> > > > The Debian powerpc little endian architecture is called ppc64le.  This
> > > 
> > > Huh? ppc64le or ppc64el?
> > 
> > ppc64el.  Commit message is wrong.  Fixed below.
> > 
> > Mikey
> > 
> > 
> 
> What about ppc64?
> 
> Also, I sent that already a month ago. Both linuxppc-dev and Michal
> Marek were on cc.
> 
> http://marc.info/?l=linux-kernel&m=140744360328562&w=2

Anyone using powerpc (32-bit) will then need to add ppc64 as a foreign
architecture before they can install a 64-bit custom kernel.  This is
fine in principle, except that ppc64 is not an official Debian port and
its packages are not mirrored on the same servers.

I just tried something similar, which is to add x32 (also unofficial) as
an alternate architecture to my biarch x86 system.  APT now complains:

W: Failed to fetch http://http.debian.net/debian/dists/experimental/InRelease  Unable to find expected entry 'main/binary-x32/Packages' in Release file (Wrong sources.list entry or malformed file)

W: Failed to fetch http://http.debian.net/debian/dists/sid/Release  Unable to find expected entry 'main/binary-x32/Packages' in Release file (Wrong sources.list entry or malformed file)

W: Failed to fetch http://http.debian.net/debian/dists/testing/Release  Unable to find expected entry 'main/binary-x32/Packages' in Release file (Wrong sources.list entry or malformed file)

W: Failed to fetch http://http.debian.net/debian/dists/wheezy/Release  Unable to find expected entry 'main/binary-x32/Packages' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead.

So I think Michael's version, leaving big-endian kernels as powerpc by
default, is preferable for now.

Ben.

-- 
Ben Hutchings
Experience is directly proportional to the value of equipment destroyed.
                                                         - Carolyn Scheppner

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 811 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2] deb-pkg: Add support for powerpc little endian
  2014-09-07  2:42       ` Ben Hutchings
@ 2014-09-12 14:12         ` Michal Marek
  0 siblings, 0 replies; 7+ messages in thread
From: Michal Marek @ 2014-09-12 14:12 UTC (permalink / raw)
  To: Ben Hutchings, Michael Neuling
  Cc: Thadeu Lima de Souza Cascardo, Gabriel Paubert, linux-kbuild,
	linux-kernel, Anton Blanchard, Leann Ogasawara, linuxppc-dev

On 2014-09-07 04:42, Ben Hutchings wrote:
> On Fri, 2014-09-05 at 09:09 -0300, Thadeu Lima de Souza Cascardo wrote:
>> On Fri, Sep 05, 2014 at 05:55:18PM +1000, Michael Neuling wrote:
>>> On Fri, 2014-09-05 at 09:13 +0200, Gabriel Paubert wrote:
>>>> On Fri, Sep 05, 2014 at 03:28:47PM +1000, Michael Neuling wrote:
>>>>> The Debian powerpc little endian architecture is called ppc64le.  This
>>>>
>>>> Huh? ppc64le or ppc64el?
>>>
>>> ppc64el.  Commit message is wrong.  Fixed below.
>>>
>>> Mikey
>>>
>>>
>>
>> What about ppc64?
>>
>> Also, I sent that already a month ago. Both linuxppc-dev and Michal
>> Marek were on cc.
>>
>> http://marc.info/?l=linux-kernel&m=140744360328562&w=2
> 
> Anyone using powerpc (32-bit) will then need to add ppc64 as a foreign
> architecture before they can install a 64-bit custom kernel.  This is
> fine in principle, except that ppc64 is not an official Debian port and
> its packages are not mirrored on the same servers.
[...]
> So I think Michael's version, leaving big-endian kernels as powerpc by
> default, is preferable for now.

I applied v2 of Michael's patch to kbuild.git#misc.

Michal

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-09-12 14:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-05  5:28 deb-pkg: Add support for powerpc little endian Michael Neuling
2014-09-05  7:13 ` Gabriel Paubert
2014-09-05  7:55   ` [PATCH v2] " Michael Neuling
2014-09-05 12:09     ` Thadeu Lima de Souza Cascardo
2014-09-07  2:42       ` Ben Hutchings
2014-09-12 14:12         ` Michal Marek
2014-09-05 12:14     ` Josh Boyer

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).