Skip to contentSkip to conversation

deb-pkg: Add support for powerpc little endian

PATCH In review Michael Neuling 6 participants 7 messages Sep 5, 2014 – Sep 12, 2014 Kbuild

lore
Share & tools
lore
#0 lore raw

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.

scripts/package/builddeb +0 -0
index 35d5a58..6f4a1af 100644
@@ -37,7 +37,7 @@ create_package() {
 	s390*)
 		debarch=3Ds390$(grep -q CONFIG_64BIT=3Dy $KCONFIG_CONFIG && echo x || tr=

ue) ;;
ppc*)
- debarch=3Dpowerpc ;;
+ debarch=3D$(grep -q CPU_LITTLE_ENDIAN=3Dy $KCONFIG_CONFIG && echo ppc64e=
l || echo powerpc) ;;
parisc*)
debarch=3Dhppa ;;
mips*)

#1 lore raw
Quoted 1 line · Michael Neuling

The Debian powerpc little endian architecture is called ppc64le. This

Huh? ppc64le or ppc64el?

Quoted 12 lines

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.

scripts/package/builddeb +0 -0
index 35d5a58..6f4a1af 100644

scripts/package/builddeb create_package() { · line 43

Quoted 8 lines
scripts/package/builddeb +1 -1
@@ -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

#2 lore raw

PATCH v2 1/1 deb-pkg: Add support for powerpc little endian

Quoted 4 lines · Gabriel Paubert
Quoted 1 line · Michael Neuling

The Debian powerpc little endian architecture is called ppc64le. This

=20
Huh? ppc64le or ppc64el?

ppc64el. Commit message is wrong. Fixed below.

Mikey

From: Michael Neuling <[email protected]>

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.

scripts/package/builddeb +0 -0
index 35d5a58..6f4a1af 100644
@@ -37,7 +37,7 @@ create_package() {
 	s390*)
 		debarch=3Ds390$(grep -q CONFIG_64BIT=3Dy $KCONFIG_CONFIG && echo x || tr=

ue) ;;
ppc*)
- debarch=3Dpowerpc ;;
+ debarch=3D$(grep -q CPU_LITTLE_ENDIAN=3Dy $KCONFIG_CONFIG && echo ppc64e=
l || echo powerpc) ;;
parisc*)
debarch=3Dhppa ;;
mips*)

#3 lore raw
Quoted 11 lines · Michael Neuling
Quoted 4 lines · Gabriel Paubert
Quoted 1 line · Michael Neuling

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.

Quoted 32 lines

From: Michael Neuling <[email protected]>

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.

scripts/package/builddeb +1 -1
index 35d5a58..6f4a1af 100644
@@ -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
[email protected]
https://lists.ozlabs.org/listinfo/linuxppc-dev

#6 lore raw
In reply to Michael Neuling
Quoted 7 lines · Michael Neuling
Quoted 4 lines · Gabriel Paubert
Quoted 1 line · Michael Neuling

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

#4 lore raw
In reply to Thadeu Lima de Souza Cascardo
Quoted 13 lines · Thadeu Lima de Souza Cascardo
Quoted 11 lines · Michael Neuling
Quoted 4 lines · Gabriel Paubert
Quoted 1 line · Michael Neuling

The Debian powerpc little endian architecture is called ppc64le. This

Huh? ppc64le or ppc64el?

ppc64el. Commit message is wrong. Fixed below.

Mikey

Quoted 6 lines

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.

Signature · 3 lines
Ben Hutchings
Experience is directly proportional to the value of equipment destroyed.
                                                         - Carolyn Scheppner
#5 lore raw
Quoted 25 lines · Ben Hutchings
Quoted 13 lines · Thadeu Lima de Souza Cascardo
Quoted 11 lines · Michael Neuling
Quoted 4 lines · Gabriel Paubert
Quoted 1 line · Michael Neuling

The Debian powerpc little endian architecture is called ppc64le. This

Huh? ppc64le or ppc64el?

ppc64el. Commit message is wrong. Fixed below.

Mikey

Quoted 6 lines

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.

[...]

Quoted 2 lines

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