From: Roger Pau Monne Date: Wed, 2 Mar 2022 14:27:10 +0000 (+0000) Subject: livepatch: do the initial build using CROSS_COMPILE X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=7882bb733db84976851252173d912ce9199a2cee;p=livepatch-build-tools.git livepatch: do the initial build using CROSS_COMPILE Setting it afterwards for further builds will cause the build logic to detect a change and thus force a rebuild of all sources. Signed-off-by: Roger Pau Monné Reviewed-by: Bjoern Doebel Reviewed-by: Ross Lagerwall Signed-off-by: Ross Lagerwall --- diff --git a/livepatch-build b/livepatch-build index e1715ea..38a92be 100755 --- a/livepatch-build +++ b/livepatch-build @@ -92,7 +92,6 @@ function build_special() cd "${SRCDIR}" || die # Capture .o files from the patched build - export CROSS_COMPILE="${TOOLSDIR}/livepatch-gcc " export LIVEPATCH_BUILD_DIR="$(pwd)/" export LIVEPATCH_CAPTURE_DIR="$OUTPUT/${name}" mkdir -p "$LIVEPATCH_CAPTURE_DIR" @@ -408,6 +407,8 @@ if [ "${SKIP}" != "build" ]; then XEN_DEBUG="debug=$XEN_DEBUG" fi + export CROSS_COMPILE="${TOOLSDIR}/livepatch-gcc " + echo "Perform full initial build with ${CPUS} CPU(s)..." build_full