ia64/xen-unstable

view tools/python/xen/xend/arch.py @ 16430:2e05a6173be0

xend: Add support for NetBSD.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Nov 23 11:58:11 2007 +0000 (2007-11-23)
parents eb6680cdbe20
children b0d7780794eb
line source
1 #!/usr/bin/env python
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of version 2.1 of the GNU Lesser General Public
5 # License as published by the Free Software Foundation.
6 #
7 # This library is distributed in the hope that it will be useful,
8 # but WITHOUT ANY WARRANTY; without even the implied warranty of
9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 # Lesser General Public License for more details.
11 #
12 # You should have received a copy of the GNU Lesser General Public
13 # License along with this library; if not, write to the Free Software
14 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15 #
16 # Copyright (C) IBM Corp. 2006
17 #
18 # Authors: Hollis Blanchard <hollisb@us.ibm.com>
20 import os
22 _types = {
23 "i386": "x86",
24 "i486": "x86",
25 "i586": "x86",
26 "i686": "x86",
27 "x86_64": "x86",
28 "amd64": "x86",
29 "i86pc": "x86",
30 "ia64": "ia64",
31 "ppc": "powerpc",
32 "ppc64": "powerpc",
33 }
34 type = _types.get(os.uname()[4], "unknown")