Name

platform — Platform detection and targeting support

Synopsis

MODULES="... platform ..."

Description

This module detects properties of the build and host system, including CPU architecture and its supported instruction set architectures, operating system, and distribution. It allows switching the target system and ISA for subsequent tests or build rules.

Variables

MK_OS

MK_DISTRO

MK_DISTRO_VERSION

MK_DISTRO_ARCHETYPE

MK_ARCH

MK_ISA

MK_ISAS

MK_MULTIARCH

MK_LIB_EXT

MK_DLO_EXT

MK_BUILD_OS

MK_HOST_OS

MK_BUILD_DISTRO

MK_BUILD_DISTRO_VERSION

MK_HOST_DISTRO_VERSION

MK_BUILD_DISTRO_ARCHETYPE

MK_HOST_DISTRO_ARCHETYPE

MK_BUILD_ARCH

MK_HOST_ARCH

MK_BUILD_ISAS

MK_HOST_ISAS

Functions

mk_multiarch_do

mk_multiarch_done

mk_compat_do

mk_compat_done

mk_system