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