@@ -120,6 +120,16 @@ create_build_jobs () {
*) enable_ovmf=true;
esac
+ # http://wiki.xen.org/wiki/Compiling_Xen_From_Source#Python_Prefix_and_Module_Layout
+ # applies to Xen 4.2 and earlier.
+ case "$xenbranch" in
+ xen-3.*-testing) python_runvars=python_prefix_arg=;;
+ xen-4.0-testing) python_runvars=python_prefix_arg=;;
+ xen-4.1-testing) python_runvars=python_prefix_arg=;;
+ xen-4.2-testing) python_runvars=python_prefix_arg=;;
+ *) python_runvars=;;
+ esac
+
eval "
arch_runvars=\"\$ARCH_RUNVARS_$arch\"
"
@@ -132,7 +142,7 @@ create_build_jobs () {
tree_qemuu=$TREE_QEMU_UPSTREAM \
tree_xen=$TREE_XEN \
$RUNVARS $BUILD_RUNVARS $BUILD_XEN_RUNVARS $arch_runvars \
- $suite_runvars \
+ $suite_runvars $python_runvars \
host_hostflags=$build_hostflags \
revision_xen=$REVISION_XEN \
revision_qemu=$REVISION_QEMU \
@@ -145,7 +155,7 @@ create_build_jobs () {
tree_qemuu=$TREE_QEMU_UPSTREAM \
tree_xen=$TREE_XEN \
$RUNVARS $BUILD_RUNVARS $BUILD_XEN_RUNVARS $arch_runvars \
- $suite_runvars \
+ $suite_runvars $python_runvars \
host_hostflags=$build_hostflags \
revision_xen=$REVISION_XEN \
revision_qemu=$REVISION_QEMU \
@@ -88,8 +88,8 @@ END
(nonempty($r{revision_linux}) ? <<END : '').
echo >>.config export $linux_rev_envvar='$r{revision_linux}'
END
- ($ho->{Suite} =~ m/squeeze/ ? <<END : '').
- echo >>.config PYTHON_PREFIX_ARG=
+ (defined($r{python_prefix_arg}) ? <<END : '').
+ echo >>.config PYTHON_PREFIX_ARG=$r{python_prefix_arg}
END
(nonempty($kerns) ? <<END : <<END)
echo >>.config KERNELS='$kerns'