diff options
author | Christopher Clark <christopher.w.clark@gmail.com> | 2020-02-25 16:15:48 -0800 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2020-02-27 16:59:22 -0500 |
commit | 64eb6f5595ebaff529db60b2fff5e05ec71be2b1 (patch) | |
tree | e5423d388680bfa0a6579d9f2833917d5dc404dc /scripts/lib/wic/plugins/source/bootimg-biosxen.py | |
parent | 7c4e062505ed92739bca899bf8a7263ada620ada (diff) | |
download | meta-virtualization-64eb6f5595ebaff529db60b2fff5e05ec71be2b1.tar.gz |
xen: pass compiler flags via Xen-provided variables
Fix the method of passing compiler flags into the Xen build, which is
needed to fix compilation of hvmloader, a 32-bit firmware binary that is
required for Xen to be able to run HVM-mode guest VMs. It must not be
compiled with SSE compiler options enabled, so the Xen build clears
CFLAGS, which is a problem with _FORTIFY_SOURCE present in CC because
it must be paired with a compiler optimization flag that was in CFLAGS.
This change fixes the compilation failure that stated
"_FORTIFY_SOURCE requires compiling with optimization (-O)".
32-bit ARM needs the TUNE_CCARGS to be retained as passed via CC
to ensure that configure is able to generate binaries for the
correct ABI, so is handled as a separate case.
Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Reviewed-by: Jason Andryuk <jandryuk@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'scripts/lib/wic/plugins/source/bootimg-biosxen.py')
0 files changed, 0 insertions, 0 deletions