Message ID | 1409903718.11359.30.camel@ale.ozlabs.ibm.com (mailing list archive) |
---|---|
State | Not Applicable |
Delegated to: | Michael Ellerman |
Headers | show |
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
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
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.
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
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*)