[Pdbg] [PATCH 2/2] build.sh: Build for powerpc and x86

Joel Stanley joel at jms.id.au
Wed May 2 02:36:11 AEST 2018


pdbg has real users on a non-BMC machines (and not just build testing),
so make sure it continues to build on them.

Signed-off-by: Joel Stanley <joel at jms.id.au>
---
 .build.sh | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

diff --git a/.build.sh b/.build.sh
index f40bb3b823c2..59fc6c3a524b 100755
--- a/.build.sh
+++ b/.build.sh
@@ -10,6 +10,8 @@ RUN apt-get update && apt-get install --no-install-recommends -yy \
 	make \
 	gcc-arm-linux-gnueabi \
 	libc-dev-armel-cross \
+	gcc-powerpc64le-linux-gnu \
+	libc-dev-ppc64el-cross \
 	autoconf \
 	automake \
 	libtool \
@@ -29,7 +31,7 @@ RUN="docker run --rm=true --user=${USER} -w ${PWD} -v ${HOME}:${HOME} -t ${CONTA
 
 ${RUN} ./bootstrap.sh
 
-# Out-of-tree build
+# Out-of-tree build, arm
 # TODO: clean up when the build fails
 SRCDIR=$PWD
 TEMPDIR=`mktemp -d ${HOME}/pdbgobjXXXXXX`
@@ -38,6 +40,19 @@ ${RUN_TMP} ${SRCDIR}/configure --host=arm-linux-gnueabi
 ${RUN_TMP} make
 rm -rf ${TEMPDIR}
 
-# In-tree build
+# In-tree build, arm
 ${RUN} ./configure --host=arm-linux-gnueabi
 ${RUN} make
+${RUN} make clean
+
+# In-tree build, powerpc64le
+${RUN} ./configure --host=powerpc64le-linux-gnu
+${RUN} make
+${RUN} make clean
+
+# In-tree build, amd64
+# TODO: work out how to install a amd64 compiler if we are building on a eg.
+# ppc machine in a way that still works when we're on amd64
+${RUN} ./configure --host=x86-64-linux-gnu
+${RUN} make
+${RUN} make clean
-- 
2.17.0



More information about the Pdbg mailing list