Received: from eggs.gnu.org ([208.118.235.92]:50853) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Swxid-00014m-Ci for qemu-devel@nongnu.org; Thu, 02 Aug 2012 11:53:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwxiZ-0006ko-0E for qemu-devel@nongnu.org; Thu, 02 Aug 2012 11:53:47 -0400 Received: from cantor2.suse.de ([195.135.220.15]:44589 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwxiY-0006kb-Lg for qemu-devel@nongnu.org; Thu, 02 Aug 2012 11:53:42 -0400 Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=iso-8859-1 From: Alexander Graf In-Reply-To: <501AA0D0.3070800@suse.de> Date: Thu, 2 Aug 2012 17:53:37 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <198C00DB-C6EC-4BC8-B0DF-D2E19427FE67@suse.de> References: <1342609849-12618-1-git-send-email-peter.maydell@linaro.org> <501AA0D0.3070800@suse.de> Subject: Re: [Qemu-devel] [PATCH] configure: Don't implicitly hardcode list of KVM architectures List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?Andreas_F=E4rber?= Cc: Peter Maydell , patches@linaro.org, Marcelo Tosatti , qemu-devel qemu-devel , Christian Borntraeger , Avi Kivity On 02.08.2012, at 17:46, Andreas F=E4rber wrote: > Am 02.08.2012 17:41, schrieb Peter Maydell: >> Ping? >=20 > Alex? Christian? Looks good to me, and should probably go in through the kvm queue. Avi, = Marcelo? >=20 >>=20 >> -- PMM >>=20 >> On 18 July 2012 12:10, Peter Maydell = wrote: >>> The code creating the symlink from linux-headers/asm to the >>> architecture specific linux-headers/asm-$arch directory was >>> implicitly hardcoding a list of KVM supporting architectures. >>> Add a default case for the common "Linux architecture name and >>> QEMU CPU name match" case, so future architectures will only >>> need to add code if they've managed to get mismatched names. >>>=20 >>> Signed-off-by: Peter Maydell >>> --- >>> This means there's now only one place where configure has a >>> list of KVM enabled targets (the check where we set CONFIG_KVM). >>> I think we have to have one list, but we don't need to have >>> more than one... >>>=20 >>> NB: this patch means we'll now set up an asm/ link for >>> s390 as well as s390x. That should be harmless (s390 can't be >>> trying to include any headers from asm/ or it wouldn't build). >>>=20 >>> configure | 14 +++++++++++--- >>> 1 files changed, 11 insertions(+), 3 deletions(-) >>>=20 >>> diff --git a/configure b/configure >>> index 0a3896e..c8d2895 100755 >>> --- a/configure >>> +++ b/configure >>> @@ -3482,15 +3482,23 @@ if test "$linux" =3D "yes" ; then >>> mkdir -p linux-headers >>> case "$cpu" in >>> i386|x86_64) >>> - symlink "$source_path/linux-headers/asm-x86" linux-headers/asm >>> + linux_arch=3Dx86 >>> ;; >>> ppcemb|ppc|ppc64) >>> - symlink "$source_path/linux-headers/asm-powerpc" = linux-headers/asm >>> + linux_arch=3Dpowerpc >>> ;; >>> s390x) >>> - symlink "$source_path/linux-headers/asm-s390" linux-headers/asm >>> + linux_arch=3Ds390 >>> + ;; >>> + *) >>> + # For most CPUs the kernel architecture name and QEMU CPU name = match. >>> + linux_arch=3D"$cpu" >>> ;; >>> esac >>> + # For non-KVM architectures we will not have asm headers. >>> + if [ -e "$source_path/linux-headers/asm-$linux_arch" ]; then >>> + symlink "$source_path/linux-headers/asm-$linux_arch" = linux-headers/asm >>> + fi >>> fi >>>=20 >>> for target in $target_list; do >>> -- >>> 1.7.5.4 >=20 > --=20 > SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany > GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG = N=FCrnberg