[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [XEN PATCH v1 2/4] automation: add cross-compiler support for the build script
Docker images that are currently available and used for cross-compilation is additionally installed GCC/Binutils which is why the build script doesn't crash. RISC-V docker image doesn't have native GCC only cross-compiler which will lead to the fact that the build script will fail. Signed-off-by: Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx> --- automation/scripts/build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/automation/scripts/build b/automation/scripts/build index a593419063..026f480e76 100755 --- a/automation/scripts/build +++ b/automation/scripts/build @@ -2,12 +2,12 @@ test -f /etc/os-release && cat "$_" -$CC --version +${CROSS_COMPILE}${CC} --version # Express the compiler version as an integer. e.g. GCC 4.9.2 => 0x040902 cc-ver() { - $CC -dumpversion | awk -F. '{ printf "0x%02x%02x%02x", $1, $2, $3 }' + ${CROSS_COMPILE}${CC} -dumpversion | awk -F. '{ printf "0x%02x%02x%02x", $1, $2, $3 }' } # random config or default config @@ -66,7 +66,7 @@ if ! type python3 || python3 -c "import sys; res = sys.version_info < (3, 5); ex fi # SeaBIOS requires GCC 4.6 or later -if [[ "${CC}" == "gcc" && `cc-ver` -lt 0x040600 ]]; then +if [[ "${CROSS_COMPILE}${CC}" == "gcc" && `cc-ver` -lt 0x040600 ]]; then cfgargs+=("--with-system-seabios=/bin/false") fi -- 2.38.1
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |