From 8f52911ac9b81afb77b2096ecff72fc7c76458b6 Mon Sep 17 00:00:00 2001 From: Thomas Batten Date: Sat, 22 Dec 2018 10:33:06 +1030 Subject: [PATCH] common: Add build/cross profiles for ppc/ppc-musl --- common/build-profiles/ppc-musl.sh | 4 ++++ common/build-profiles/ppc.sh | 4 ++++ common/cross-profiles/ppc-musl.sh | 7 +++++++ common/cross-profiles/ppc.sh | 7 +++++++ 4 files changed, 22 insertions(+) create mode 100644 common/build-profiles/ppc-musl.sh create mode 100644 common/build-profiles/ppc.sh create mode 100644 common/cross-profiles/ppc-musl.sh create mode 100644 common/cross-profiles/ppc.sh diff --git a/common/build-profiles/ppc-musl.sh b/common/build-profiles/ppc-musl.sh new file mode 100644 index 00000000000..c247c9ad3f6 --- /dev/null +++ b/common/build-profiles/ppc-musl.sh @@ -0,0 +1,4 @@ +XBPS_TARGET_CFLAGS="-mcpu=powerpc -mtune=G4 -mlong-double-64" +XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS" +XBPS_TARGET_FFLAGS="" +XBPS_TRIPLET="powerpc-linux-musl" diff --git a/common/build-profiles/ppc.sh b/common/build-profiles/ppc.sh new file mode 100644 index 00000000000..e1fce9f87d0 --- /dev/null +++ b/common/build-profiles/ppc.sh @@ -0,0 +1,4 @@ +XBPS_TARGET_CFLAGS="-mcpu=powerpc -mtune=G4" +XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS" +XBPS_TARGET_FFLAGS="" +XBPS_TRIPLET="powerpc-linux-gnu" diff --git a/common/cross-profiles/ppc-musl.sh b/common/cross-profiles/ppc-musl.sh new file mode 100644 index 00000000000..e34673f403f --- /dev/null +++ b/common/cross-profiles/ppc-musl.sh @@ -0,0 +1,7 @@ +# Cross build profile for PowerPC. + +XBPS_TARGET_MACHINE="ppc-musl" +XBPS_CROSS_TRIPLET="powerpc-linux-musl" +XBPS_CROSS_CFLAGS="-mcpu=powerpc -mtune=G4 -mlong-double-64" +XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS" +XBPS_CROSS_FFLAGS="" diff --git a/common/cross-profiles/ppc.sh b/common/cross-profiles/ppc.sh new file mode 100644 index 00000000000..fed4f225cd5 --- /dev/null +++ b/common/cross-profiles/ppc.sh @@ -0,0 +1,7 @@ +# Cross build profile for PowerPC. + +XBPS_TARGET_MACHINE="ppc" +XBPS_CROSS_TRIPLET="powerpc-linux-gnu" +XBPS_CROSS_CFLAGS="-mcpu=powerpc -mtune=G4" +XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS" +XBPS_CROSS_FFLAGS=""