File ffado_SConstruct_powerpc_update.patch of Package ffado
From: Michel Normand <normand@linux.vnet.ibm.com>
Subject: ffado SConstruct powerpc update
Date: Fri, 06 Mar 2015 18:50:20 +0100
ffado SConstruct powerpc update
modify the is_powerpc and is_64bit to support PowerPC LE
(to be checked with Debian/Ubuntu env)
Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
---
SConstruct | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
Index: SConstruct
===================================================================
--- SConstruct.orig 2016-08-08 12:31:03.000000000 +0200
+++ SConstruct 2017-03-22 13:07:54.905563324 +0200
@@ -571,7 +571,7 @@ class CpuInfo (object):
# general CPU architecture
self.is_x86 = self.machine in ('i686', 'x86_64') or \
re.match("i[3-5]86", self.machine) or False
- self.is_powerpc = self.machine in ('ppc64', 'ppc', 'powerpc', 'powerpc64')
+ self.is_powerpc = self.machine in ('ppc64', 'ppc', 'powerpc', 'powerpc64', 'ppc64le')
#!!! probably not comprehensive
self.is_mips = self.machine == 'mips'
#!!! not a comprehensive list. uname -m on one android phone reports 'armv71'
@@ -589,7 +589,8 @@ class CpuInfo (object):
# 64-bit (x86_64/AMD64/Intel64)
# Long Mode (x86-64: amd64, also known as Intel 64, i.e. 64-bit capable)
self.is_64bit = (self.is_x86 and 'lm' in self.x86_flags) or \
- (self.is_powerpc and '970' in self.ppc_type)
+ (self.is_powerpc and '970' in self.ppc_type) or \
+ (self.machine in ('ppc64', 'powerpc64', 'ppc64le')) or False
# Hardware virtualization capable: vmx (Intel), svm (AMD)
self.has_hwvirt = self.is_x86 and (