source: trunk/packages/xen-3.1/xen-3.1/tools/python/xen/xend/arch.py @ 34

Last change on this file since 34 was 34, checked in by hartmans, 18 years ago

Add xen and xen-common

  • Property svn:mime-type set to text/script
File size: 1022 bytes
Line 
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>
19
20import os
21
22_types = {
23    "i386": "x86",
24    "i486": "x86",
25    "i586": "x86",
26    "i686": "x86",
27    "x86_64": "x86",
28    "i86pc": "x86",
29    "ia64": "ia64",
30    "ppc": "powerpc",
31    "ppc64": "powerpc",
32}
33type = _types.get(os.uname()[4], "unknown")
Note: See TracBrowser for help on using the repository browser.