Skip to content

Commit 00f67c8

Browse files
luke-jrlaanwj
authored andcommitted
gitian-linux: Build binaries for 64-bit POWER
1 parent 63fc2b1 commit 00f67c8

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

contrib/gitian-descriptors/gitian-linux.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ packages:
2727
# - aarch64-linux-gnu
2828
- "binutils-aarch64-linux-gnu"
2929
- "g++-8-aarch64-linux-gnu"
30+
# - powerpc64-linux-gnu
31+
- "binutils-powerpc64-linux-gnu"
32+
- "g++-8-powerpc64-linux-gnu"
33+
# - powerpc64le-linux-gnu
34+
- "binutils-powerpc64le-linux-gnu"
35+
- "g++-8-powerpc64le-linux-gnu"
3036
# - riscv64-linux-gnu
3137
- "binutils-riscv64-linux-gnu"
3238
- "g++-8-riscv64-linux-gnu"
@@ -38,7 +44,7 @@ script: |
3844
set -e -o pipefail
3945
4046
WRAP_DIR=$HOME/wrapped
41-
HOSTS="x86_64-linux-gnu arm-linux-gnueabihf aarch64-linux-gnu riscv64-linux-gnu"
47+
HOSTS="x86_64-linux-gnu arm-linux-gnueabihf aarch64-linux-gnu powerpc64-linux-gnu powerpc64le-linux-gnu riscv64-linux-gnu"
4248
CONFIGFLAGS="--enable-glibc-back-compat --enable-reduce-exports --disable-bench --disable-gui-tests"
4349
FAKETIME_HOST_PROGS="gcc g++"
4450
FAKETIME_PROGS="date ar ranlib nm"
@@ -78,7 +84,13 @@ script: |
7884
echo "REAL=\`which -a ${i}-${prog}-8 | grep -v ${WRAP_DIR}/${i}-${prog} | head -1\`" >> ${WRAP_DIR}/${i}-${prog}
7985
echo "export LD_PRELOAD='/usr/\$LIB/faketime/libfaketime.so.1'" >> ${WRAP_DIR}/${i}-${prog}
8086
echo "export FAKETIME=\"$1\"" >> ${WRAP_DIR}/${i}-${prog}
81-
echo "exec \"\$REAL\" \"\$@\"" >> $WRAP_DIR/${i}-${prog}
87+
if [ "${i:0:11}" = "powerpc64le" ]; then
88+
echo "exec \"\$REAL\" -mcpu=power8 -mtune=power9 \"\$@\"" >> $WRAP_DIR/${i}-${prog}
89+
elif [ "${i:0:9}" = "powerpc64" ]; then
90+
echo "exec \"\$REAL\" -mcpu=970 -mtune=power9 \"\$@\"" >> $WRAP_DIR/${i}-${prog}
91+
else
92+
echo "exec \"\$REAL\" \"\$@\"" >> $WRAP_DIR/${i}-${prog}
93+
fi
8294
chmod +x ${WRAP_DIR}/${i}-${prog}
8395
fi
8496
done

0 commit comments

Comments
 (0)