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>
---
livepatch-build | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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
--
2.34.1
> From: Roger Pau Monne <roger.pau@citrix.com>
> Sent: Wednesday, March 2, 2022 2:27 PM
> To: xen-devel@lists.xenproject.org <xen-devel@lists.xenproject.org>
> Cc: Ross Lagerwall <ross.lagerwall@citrix.com>; konrad.wilk@oracle.com <konrad.wilk@oracle.com>; doebel@amazon.de <doebel@amazon.de>; julien@xen.org <julien@xen.org>; Andrew Cooper <Andrew.Cooper3@citrix.com>; Roger Pau Monne <roger.pau@citrix.com>
> Subject: [PATCH 3/4] 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é <roger.pau@citrix.com>
> ---
> livepatch-build | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> 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
>
> --
> 2.34.1
Reviewed-by: Ross Lagerwall <ross.lagerwall@citrix.com>
On 02.03.22 15:27, Roger Pau Monne wrote:
> CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe.
>
>
>
> 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>
> ---
> livepatch-build | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> 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
>
Reviewed-by: Bjoern Doebel <doebel@amazon.de>
Amazon Development Center Germany GmbH
Krausenstr. 38
10117 Berlin
Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss
Eingetragen am Amtsgericht Charlottenburg unter HRB 149173 B
Sitz: Berlin
Ust-ID: DE 289 237 879
© 2016 - 2026 Red Hat, Inc.