]> xenbits.xensource.com Git - livepatch-build-tools.git/commitdiff
livepatch: do the initial build using CROSS_COMPILE
authorRoger Pau Monne <roger.pau@citrix.com>
Wed, 2 Mar 2022 14:27:10 +0000 (14:27 +0000)
committerRoss Lagerwall <ross.lagerwall@citrix.com>
Tue, 7 Feb 2023 11:34:42 +0000 (11:34 +0000)
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é <roger.pau@citrix.com>
Reviewed-by: Bjoern Doebel <doebel@amazon.de>
Reviewed-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
livepatch-build

index e1715eac36064158b1c33521e88271b660842cfe..38a92bed5782d2bcede07e9b60554029eefbcf78 100755 (executable)
@@ -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