26 lines
902 B
Diff
26 lines
902 B
Diff
From: Michael Neuling <mikey@neuling.org>
|
|
Subject: deb-pkg: Add support for powerpc little endian
|
|
Origin: http://marc.info/?l=linux-kernel&m=140989493729069&w=2
|
|
|
|
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*)
|