Lines 119-131
Link Here
|
119 |
export "CONFIG_GCRYPT=y" |
119 |
export "CONFIG_GCRYPT=y" |
120 |
fi |
120 |
fi |
121 |
|
121 |
|
122 |
if ! use x86 && ! has x86 $(get_all_abis) && use hvm; then |
|
|
123 |
eerror "HVM (VT-x and AMD-v) cannot be built on this system. An x86 or" |
124 |
eerror "an amd64 multilib profile is required. Remove the hvm use flag" |
125 |
eerror "to build xen-tools on your current profile." |
126 |
die "USE=hvm is unsupported on this system." |
127 |
fi |
128 |
|
129 |
if [[ -z ${XEN_TARGET_ARCH} ]] ; then |
122 |
if [[ -z ${XEN_TARGET_ARCH} ]] ; then |
130 |
if use x86 && use amd64; then |
123 |
if use x86 && use amd64; then |
131 |
die "Confusion! Both x86 and amd64 are set in your use flags!" |
124 |
die "Confusion! Both x86 and amd64 are set in your use flags!" |
Lines 224-232
Link Here
|
224 |
sed -e '/^SUBDIRS-y += python$/d' -i tools/Makefile || die |
217 |
sed -e '/^SUBDIRS-y += python$/d' -i tools/Makefile || die |
225 |
fi |
218 |
fi |
226 |
|
219 |
|
227 |
# Disable hvm support on systems that don't support x86_32 binaries. |
|
|
228 |
if ! use hvm; then |
220 |
if ! use hvm; then |
229 |
sed -e '/SUBDIRS-$(CONFIG_X86) += firmware/d' -i tools/Makefile || die |
221 |
sed -e '/SUBDIRS-$(CONFIG_X86) += firmware/d' -i tools/Makefile || die |
|
|
222 |
elif ! use x86 && ! has x86 $(get_all_abis); then |
223 |
mkdir -p "${WORKDIR}"/extra-headers/gnu || die "mkdir of extra-headers failed" |
224 |
touch "${WORKDIR}"/extra-headers/gnu/stubs-32.h |
225 |
export CPATH="${WORKDIR}"/extra-headers |
226 |
einfo "dummy stubs-32.h added" |
230 |
fi |
227 |
fi |
231 |
|
228 |
|
232 |
# Don't bother with qemu, only needed for fully virtualised guests |
229 |
# Don't bother with qemu, only needed for fully virtualised guests |
Lines 411-417
Link Here
|
411 |
echo |
408 |
echo |
412 |
elog "HVM (VT-x and AMD-V) support has been disabled. If you need hvm" |
409 |
elog "HVM (VT-x and AMD-V) support has been disabled. If you need hvm" |
413 |
elog "support enable the hvm use flag." |
410 |
elog "support enable the hvm use flag." |
414 |
elog "An x86 or amd64 multilib system is required to build HVM support." |
411 |
elog "An x86 or amd64 system is required to build HVM support." |
415 |
fi |
412 |
fi |
416 |
|
413 |
|
417 |
if use qemu; then |
414 |
if use qemu; then |