aboutsummaryrefslogtreecommitdiffstats
path: root/main/abuild/0001-abuild-add-missing-triplet-definitions-for-ppc-and-p.patch
blob: 8f7351d4e84675c5de88a8a9ec741a3049f51c08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From ac5dbfca7f72144e1030c8c52200345ba8b50239 Mon Sep 17 00:00:00 2001
From: William Pitcock <nenolod@dereferenced.org>
Date: Tue, 24 Jan 2017 01:20:34 +0000
Subject: [PATCH] abuild: add missing triplet definitions for ppc and ppc64
 architectures

---
 functions.sh.in | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/functions.sh.in b/functions.sh.in
index d8e12a5..58567d6 100644
--- a/functions.sh.in
+++ b/functions.sh.in
@@ -8,5 +8,7 @@ arch_to_hostspec() {
 	aarch64)	echo "aarch64-alpine-linux-musl" ;;
 	armhf)		echo "armhf-alpine-linux-muslgnueabihf" ;;
 	armv7)		echo "armv7-alpine-linux-musleabihf" ;;
+	ppc)		echo "powerpc-alpine-linux-musl" ;;
+	ppc64)		echo "powerpc64-alpine-linux-musl" ;;
 	s390x)		echo "s390x-alpine-linux-musl" ;;
 	x86)		echo "i586-alpine-linux-musl" ;;
@@ -23,5 +25,7 @@ hostspec_to_arch() {
 	armv6*-*-*-*eabihf)	echo "armhf" ;;
 	armv7*-*-*-*eabihf)	echo "armv7" ;;
 	i[0-9]86-*-*-*)		echo "x86" ;;
+	powerpc-*-*-*)		echo "ppc" ;;
+	powerpc64-*-*-*)	echo "ppc64" ;;
 	s390x-*-*-*)		echo "s390x" ;;
 	x86_64-*-*-*)		echo "x86_64" ;;
-- 
2.11.0