diff options
Diffstat (limited to 'recipes-extended/xen/xen.inc')
-rw-r--r-- | recipes-extended/xen/xen.inc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/recipes-extended/xen/xen.inc b/recipes-extended/xen/xen.inc index dcd281b5..f8c1e266 100644 --- a/recipes-extended/xen/xen.inc +++ b/recipes-extended/xen/xen.inc | |||
@@ -73,20 +73,20 @@ libexecdir = "${libdir}" | |||
73 | export XEN_OS = "Linux" | 73 | export XEN_OS = "Linux" |
74 | 74 | ||
75 | # this is used for the header (#!${bindir}/python) of the install python scripts | 75 | # this is used for the header (#!${bindir}/python) of the install python scripts |
76 | export PYTHONPATH="${bindir}/env python3" | 76 | export PYTHONPATH = "${bindir}/env python3" |
77 | export ac_cv_path_PYTHONPATH="${bindir}/env python3" | 77 | export ac_cv_path_PYTHONPATH = "${bindir}/env python3" |
78 | export DISTUTILS_BUILD_ARGS | 78 | export DISTUTILS_BUILD_ARGS |
79 | export DISTUTILS_INSTALL_ARGS | 79 | export DISTUTILS_INSTALL_ARGS |
80 | 80 | ||
81 | # xen and seabios require HOSTCC and HOSTCXX set to cross-compile | 81 | # xen and seabios require HOSTCC and HOSTCXX set to cross-compile |
82 | export HOSTCC="${BUILD_CC}" | 82 | export HOSTCC = "${BUILD_CC}" |
83 | export HOSTCXX="${BUILD_CXX}" | 83 | export HOSTCXX = "${BUILD_CXX}" |
84 | 84 | ||
85 | # make xen requires CROSS_COMPILE set by hand as it does not abide by ./configure | 85 | # make xen requires CROSS_COMPILE set by hand as it does not abide by ./configure |
86 | export CROSS_COMPILE="${TARGET_PREFIX}" | 86 | export CROSS_COMPILE = "${TARGET_PREFIX}" |
87 | 87 | ||
88 | # overide LDFLAGS to allow xen to build without: "x86_64-oe-linux-ld: unrecognized option '-Wl,-O1'" | 88 | # overide LDFLAGS to allow xen to build without: "x86_64-oe-linux-ld: unrecognized option '-Wl,-O1'" |
89 | export LDFLAGS="" | 89 | export LDFLAGS = "" |
90 | 90 | ||
91 | # No additional C flags for the main hypervisor build | 91 | # No additional C flags for the main hypervisor build |
92 | EXTRA_CFLAGS_XEN_CORE ?= "" | 92 | EXTRA_CFLAGS_XEN_CORE ?= "" |
@@ -99,7 +99,7 @@ DEBUG_PREFIX_MAP:append = " \ | |||
99 | # - The Xen tools build for x86 systems with HVM-mode enabled includes hvmloader | 99 | # - The Xen tools build for x86 systems with HVM-mode enabled includes hvmloader |
100 | # which fails to build when "-m64" is included in flags set via the | 100 | # which fails to build when "-m64" is included in flags set via the |
101 | # EXTRA_CFLAGS_XEN_TOOLS: so clear TUNE_CCARGS on x86 to prevent that. | 101 | # EXTRA_CFLAGS_XEN_TOOLS: so clear TUNE_CCARGS on x86 to prevent that. |
102 | TUNE_CCARGS:x86-64="" | 102 | TUNE_CCARGS:x86-64 = "" |
103 | 103 | ||
104 | # - Yocto supplies the _FORTIFY_SOURCE flag via CC/CPP/CXX but then passes the | 104 | # - Yocto supplies the _FORTIFY_SOURCE flag via CC/CPP/CXX but then passes the |
105 | # optimization -O via C*FLAGS which is problematic when the CFLAGS are cleared | 105 | # optimization -O via C*FLAGS which is problematic when the CFLAGS are cleared |
@@ -110,11 +110,11 @@ TUNE_CCARGS:x86-64="" | |||
110 | # It must not be compiled with SSE compiler options enabled and the Xen build | 110 | # It must not be compiled with SSE compiler options enabled and the Xen build |
111 | # explicitly clears CFLAGS to ensure that, so such options must not be passed | 111 | # explicitly clears CFLAGS to ensure that, so such options must not be passed |
112 | # in via the tool variable. hvmloader is required to run HVM-mode guest VMs. | 112 | # in via the tool variable. hvmloader is required to run HVM-mode guest VMs. |
113 | CC="${CCACHE}${HOST_PREFIX}gcc ${TOOLCHAIN_OPTIONS} ${DEBUG_PREFIX_MAP} ${CC_REPRODUCIBLE_OPTIONS}" | 113 | CC = "${CCACHE}${HOST_PREFIX}gcc ${TOOLCHAIN_OPTIONS} ${DEBUG_PREFIX_MAP} ${CC_REPRODUCIBLE_OPTIONS}" |
114 | EXTRA_CFLAGS_XEN_TOOLS="${HOST_CC_ARCH} ${CFLAGS}" | 114 | EXTRA_CFLAGS_XEN_TOOLS = "${HOST_CC_ARCH} ${CFLAGS}" |
115 | # 32-bit ARM needs the TUNE_CCARGS component of HOST_CC_ARCH to be passed | 115 | # 32-bit ARM needs the TUNE_CCARGS component of HOST_CC_ARCH to be passed |
116 | # in CC to ensure that configure can compile binaries for the right arch. | 116 | # in CC to ensure that configure can compile binaries for the right arch. |
117 | CC:arm="${CCACHE}${HOST_PREFIX}gcc ${TUNE_CCARGS} ${TOOLCHAIN_OPTIONS} ${DEBUG_PREFIX_MAP} ${CC_REPRODUCIBLE_OPTIONS}" | 117 | CC:arm = "${CCACHE}${HOST_PREFIX}gcc ${TUNE_CCARGS} ${TOOLCHAIN_OPTIONS} ${DEBUG_PREFIX_MAP} ${CC_REPRODUCIBLE_OPTIONS}" |
118 | 118 | ||
119 | # There are no Xen-provided variables for C++, so append to the tool variables: | 119 | # There are no Xen-provided variables for C++, so append to the tool variables: |
120 | CPP:append = " ${CPPFLAGS}" | 120 | CPP:append = " ${CPPFLAGS}" |
@@ -151,7 +151,7 @@ def get_build_time_vars(d): | |||
151 | source_date_epoch = d.getVar('SOURCE_DATE_EPOCH') | 151 | source_date_epoch = d.getVar('SOURCE_DATE_EPOCH') |
152 | if source_date_epoch is not None: | 152 | if source_date_epoch is not None: |
153 | import datetime | 153 | import datetime |
154 | utc_datetime = datetime.datetime.utcfromtimestamp(float(source_date_epoch)) | 154 | utc_datetime = datetime.datetime.fromtimestamp(float(source_date_epoch), datetime.timezone.utc) |
155 | return " XEN_BUILD_DATE=" + utc_datetime.strftime("%Y-%m-%d") + \ | 155 | return " XEN_BUILD_DATE=" + utc_datetime.strftime("%Y-%m-%d") + \ |
156 | " XEN_BUILD_TIME=" + utc_datetime.strftime("%H:%M:%S") | 156 | " XEN_BUILD_TIME=" + utc_datetime.strftime("%H:%M:%S") |
157 | return "" | 157 | return "" |