linuxppc-dev.lists.ozlabs.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: Leann Ogasawara, linuxppc-dev, linux-kernel, Anton Blanchard,
	linux-kbuild

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=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*)

^ permalink raw reply related	[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).