architecture.h revision ae0e60fbbc28990617964204ea925a1ef8f42262
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering This file is part of systemd.
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering Copyright 2014 Lennart Poettering
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering systemd is free software; you can redistribute it and/or modify it
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering under the terms of the GNU Lesser General Public License as published by
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering the Free Software Foundation; either version 2.1 of the License, or
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering (at your option) any later version.
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering systemd is distributed in the hope that it will be useful, but
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering WITHOUT ANY WARRANTY; without even the implied warranty of
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering Lesser General Public License for more details.
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering You should have received a copy of the GNU Lesser General Public License
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering along with systemd; If not, see <http://www.gnu.org/licenses/>.
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering# define native_architecture() ARCHITECTURE_X86_64
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering# define native_architecture() ARCHITECTURE_X86
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering# define native_architecture() ARCHITECTURE_PPC64
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering# define native_architecture() ARCHITECTURE_PPC64_LE
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering# define native_architecture() ARCHITECTURE_PPC
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering# define native_architecture() ARCHITECTURE_PPC_LE
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering# define native_architecture() ARCHITECTURE_IA64
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering# define native_architecture() ARCHITECTURE_PARISC64
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering# define native_architecture() ARCHITECTURE_PARISC
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering# define native_architecture() ARCHITECTURE_S390X
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering# define native_architecture() ARCHITECTURE_S390
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering# define native_architecture() ARCHITECTURE_SPARC64
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering# define native_architecture() ARCHITECTURE_SPARC
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering# define native_architecture() ARCHITECTURE_MIPS64
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering# define native_architecture() ARCHITECTURE_MIPS
599659860c770058f2eb04d578c521c16e0b1853Lennart Poettering# define native_architecture() ARCHITECTURE_ALPHA
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering# define native_architecture() ARCHITECTURE_ARM64_BE
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering# define native_architecture() ARCHITECTURE_ARM64
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering# define native_architecture() ARCHITECTURE_ARM_BE
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering# define native_architecture() ARCHITECTURE_ARM
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering# define native_architecture() ARCHITECTURE_SH64
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering# define native_architecture() ARCHITECTURE_SH
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering# define native_architecture() ARCHITECTURE_M68K
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering#error "Please register your architecture here!"
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poetteringconst char *architecture_to_string(Architecture a) _const_;