diff options
author | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
---|---|---|
committer | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /roms/skiboot/external/pflash/build-all-arch.sh | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'roms/skiboot/external/pflash/build-all-arch.sh')
-rwxr-xr-x | roms/skiboot/external/pflash/build-all-arch.sh | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/roms/skiboot/external/pflash/build-all-arch.sh b/roms/skiboot/external/pflash/build-all-arch.sh new file mode 100755 index 000000000..14364334a --- /dev/null +++ b/roms/skiboot/external/pflash/build-all-arch.sh @@ -0,0 +1,35 @@ +#!/bin/bash +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later +# +# Script to build all pflash backends +# +# Copyright 2015 IBM Corp. +# +# pflash has three different backends that are used on powerpc, arm (BMC) and +# x86 (file-backed). In order to test for regressions when touching shared code +# such as libflash. +# +# Defaults to the cross compilers available under Ubuntu. You can set the +# environment variables arm_cc, amd64_cc, ppc64le_cc for other distributions. +# +# installing on x86: +# apt-get install gcc-arm-linux-gnueabi gcc-powerpc64le-linux-gnu gcc +# + +arm_cc=${arm_cc:-arm-linux-gnueabi-} +amd64_cc=${amd64_cc:-x86_64-linux-gnu-} +ppc64le_cc=${ppc64le_cc:-powerpc64le-linux-gnu-} + +echo "Building for ARM..." +make clean && make distclean +CROSS_COMPILE=${arm_cc} make || { echo "ARM build failed"; exit 1; } + +echo "Building for x86..." +make clean && make distclean +CROSS_COMPILE=${amd64_cc} make || { echo "x86 build failed"; exit 1; } + +echo "Building for ppc64le..." +make clean && make distclean +CROSS_COMPILE=${ppc64le_cc} make || { echo "ppc64le build failed"; exit 1; } + +make clean && make distclean |