architecture.h revision 2a9899d862ec00ad2287e3bc97194054a8c9c479
97b5f608182773d7ef9ca18913085b3a3eccd943Thomas Hindoe Paaboel Andersen/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
97b5f608182773d7ef9ca18913085b3a3eccd943Thomas Hindoe Paaboel Andersen This file is part of systemd.
97b5f608182773d7ef9ca18913085b3a3eccd943Thomas Hindoe Paaboel Andersen Copyright 2014 Lennart Poettering
97b5f608182773d7ef9ca18913085b3a3eccd943Thomas Hindoe Paaboel Andersen systemd is free software; you can redistribute it and/or modify it
97b5f608182773d7ef9ca18913085b3a3eccd943Thomas Hindoe Paaboel Andersen under the terms of the GNU Lesser General Public License as published by
97b5f608182773d7ef9ca18913085b3a3eccd943Thomas Hindoe Paaboel Andersen the Free Software Foundation; either version 2.1 of the License, or
97b5f608182773d7ef9ca18913085b3a3eccd943Thomas Hindoe Paaboel Andersen (at your option) any later version.
97b5f608182773d7ef9ca18913085b3a3eccd943Thomas Hindoe Paaboel Andersen systemd is distributed in the hope that it will be useful, but
97b5f608182773d7ef9ca18913085b3a3eccd943Thomas Hindoe Paaboel Andersen WITHOUT ANY WARRANTY; without even the implied warranty of
97b5f608182773d7ef9ca18913085b3a3eccd943Thomas Hindoe Paaboel Andersen MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
97b5f608182773d7ef9ca18913085b3a3eccd943Thomas Hindoe Paaboel Andersen Lesser General Public License for more details.
97b5f608182773d7ef9ca18913085b3a3eccd943Thomas Hindoe Paaboel Andersen You should have received a copy of the GNU Lesser General Public License
97b5f608182773d7ef9ca18913085b3a3eccd943Thomas Hindoe Paaboel Andersen along with systemd; If not, see <http://www.gnu.org/licenses/>.
97b5f608182773d7ef9ca18913085b3a3eccd943Thomas Hindoe Paaboel Andersen/* A cleaned up architecture definition */
97b5f608182773d7ef9ca18913085b3a3eccd943Thomas Hindoe Paaboel AndersenArchitecture uname_architecture(void);
97b5f608182773d7ef9ca18913085b3a3eccd943Thomas Hindoe Paaboel Andersen * LIB_ARCH_TUPLE should resolve to the local library path
97b5f608182773d7ef9ca18913085b3a3eccd943Thomas Hindoe Paaboel Andersen * architecture tuple systemd is built for, according to the Debian
97b5f608182773d7ef9ca18913085b3a3eccd943Thomas Hindoe Paaboel Andersen * https://wiki.debian.org/Multiarch/Tuples
97b5f608182773d7ef9ca18913085b3a3eccd943Thomas Hindoe Paaboel Andersen * This is used in library search paths that should understand
97b5f608182773d7ef9ca18913085b3a3eccd943Thomas Hindoe Paaboel Andersen * Debian's paths on all distributions.
97b5f608182773d7ef9ca18913085b3a3eccd943Thomas Hindoe Paaboel Andersen# define native_architecture() ARCHITECTURE_X86_64
97b5f608182773d7ef9ca18913085b3a3eccd943Thomas Hindoe Paaboel Andersen# define LIB_ARCH_TUPLE "x86_64-linux-gnu"
97b5f608182773d7ef9ca18913085b3a3eccd943Thomas Hindoe Paaboel Andersen# define native_architecture() ARCHITECTURE_X86
97b5f608182773d7ef9ca18913085b3a3eccd943Thomas Hindoe Paaboel Andersen# define LIB_ARCH_TUPLE "i386-linux-gnu"
97b5f608182773d7ef9ca18913085b3a3eccd943Thomas Hindoe Paaboel Andersen# define native_architecture() ARCHITECTURE_PPC64
97b5f608182773d7ef9ca18913085b3a3eccd943Thomas Hindoe Paaboel Andersen# define LIB_ARCH_TUPLE "ppc64-linux-gnu"
97b5f608182773d7ef9ca18913085b3a3eccd943Thomas Hindoe Paaboel Andersen# define native_architecture() ARCHITECTURE_PPC64_LE
97b5f608182773d7ef9ca18913085b3a3eccd943Thomas Hindoe Paaboel Andersen# error "Missing LIB_ARCH_TUPLE for PPC64LE"
97b5f608182773d7ef9ca18913085b3a3eccd943Thomas Hindoe Paaboel Andersen# define native_architecture() ARCHITECTURE_PPC
97b5f608182773d7ef9ca18913085b3a3eccd943Thomas Hindoe Paaboel Andersen# define LIB_ARCH_TUPLE "powerpc-linux-gnu"
97b5f608182773d7ef9ca18913085b3a3eccd943Thomas Hindoe Paaboel Andersen# define native_architecture() ARCHITECTURE_PPC_LE
# if defined(WORDS_BIGENDIAN)
# if defined(WORDS_BIGENDIAN)
# if defined(WORDS_BIGENDIAN)
# if defined(WORDS_BIGENDIAN)
# if defined(__ARM_PCS_VFP)
# if defined(__ARM_EABI__)
# if defined(__ARM_PCS_VFP)