mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
In particular: - support merged x86 architecture. To facilitate this it made sense to encode some existing logic in shell scripts rather than increasing complicated make conditionals. - set CONFIG_PARAVIRT_GUEST=y which is required for newer kernels. Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
31 lines
433 B
Bash
Executable File
31 lines
433 B
Bash
Executable File
#!/bin/sh
|
|
|
|
ME=$(basename $0)
|
|
|
|
if [ $# -lt 1 ] || [ $# -gt 2 ] ; then
|
|
echo "usage: $ME <linux-build-directory>" 1>&2
|
|
exit 1;
|
|
fi
|
|
|
|
LINUX_DIR=$1
|
|
|
|
case ${XEN_TARGET_ARCH} in
|
|
x86_32|x86_64)
|
|
if [ -d ${LINUX_DIR}/arch/x86 ] ; then
|
|
ARCH=x86
|
|
elif [ "${XEN_TARGET_ARCH}" = "x86_32" ] ; then
|
|
ARCH=i386
|
|
else
|
|
ARCH=x86_64
|
|
fi
|
|
;;
|
|
*)
|
|
ARCH=${XEN_TARGET_ARCH}
|
|
;;
|
|
esac
|
|
|
|
echo "$ME: ${ARCH}" 1>&2
|
|
echo ${ARCH}
|
|
|
|
exit 0
|