All of lore.kernel.org
 help / color / mirror / Atom feed
* deb-pkg: Add support for powerpc little endian
@ 2014-09-05  5:28 ` Michael Neuling
  0 siblings, 0 replies; 14+ 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] 14+ messages in thread

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

Thread overview: 14+ 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  5:28 ` Michael Neuling
2014-09-05  7:13 ` Gabriel Paubert
2014-09-05  7:13   ` Gabriel Paubert
2014-09-05  7:55   ` [PATCH v2] " Michael Neuling
2014-09-05  7:55     ` Michael Neuling
2014-09-05 12:09     ` Thadeu Lima de Souza Cascardo
2014-09-05 12:09       ` Thadeu Lima de Souza Cascardo
2014-09-07  2:42       ` Ben Hutchings
2014-09-07  2:42         ` Ben Hutchings
2014-09-12 14:12         ` Michal Marek
2014-09-12 14:12           ` Michal Marek
2014-09-05 12:14     ` Josh Boyer
2014-09-05 12:14       ` Josh Boyer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.