Changeset View
Changeset View
Standalone View
Standalone View
Makefile.inc1
Show First 20 Lines • Show All 392 Lines • ▼ Show 20 Lines | |||||
PKG_VERSION= ${_REVISION}${EXTRA_REVISION} | PKG_VERSION= ${_REVISION}${EXTRA_REVISION} | ||||
.endif | .endif | ||||
KNOWN_ARCHES?= aarch64/arm64 \ | KNOWN_ARCHES?= aarch64/arm64 \ | ||||
amd64 \ | amd64 \ | ||||
arm \ | arm \ | ||||
armeb/arm \ | armeb/arm \ | ||||
armv6/arm \ | armv6/arm \ | ||||
armv7/arm \ | |||||
i386 \ | i386 \ | ||||
mips \ | mips \ | ||||
mipsel/mips \ | mipsel/mips \ | ||||
mips64el/mips \ | mips64el/mips \ | ||||
mipsn32el/mips \ | mipsn32el/mips \ | ||||
mips64/mips \ | mips64/mips \ | ||||
mipsn32/mips \ | mipsn32/mips \ | ||||
mipshf/mips \ | mipshf/mips \ | ||||
▲ Show 20 Lines • Show All 200 Lines • ▼ Show 20 Lines | |||||
# - Allowing WITH_SYSTEM_COMPILER+WITH_META_MODE to work together due to | # - Allowing WITH_SYSTEM_COMPILER+WITH_META_MODE to work together due to | ||||
# the flip-flopping build command when sometimes using external and | # the flip-flopping build command when sometimes using external and | ||||
# sometimes using internal. | # sometimes using internal. | ||||
# - Allow using lld which has no support for default paths. | # - Allow using lld which has no support for default paths. | ||||
.if !defined(CROSS_BINUTILS_PREFIX) || !exists(${CROSS_BINUTILS_PREFIX}) | .if !defined(CROSS_BINUTILS_PREFIX) || !exists(${CROSS_BINUTILS_PREFIX}) | ||||
BFLAGS+= -B${WORLDTMP}/usr/bin | BFLAGS+= -B${WORLDTMP}/usr/bin | ||||
.endif | .endif | ||||
.if ${TARGET} == "arm" | .if ${TARGET} == "arm" | ||||
.if ${TARGET_ARCH:Marmv6*} != "" && ${TARGET_CPUTYPE:M*soft*} == "" | .if ${TARGET_ARCH:Marmv[67]*} != "" && ${TARGET_CPUTYPE:M*soft*} == "" | ||||
TARGET_ABI= gnueabihf | TARGET_ABI= gnueabihf | ||||
.else | .else | ||||
TARGET_ABI= gnueabi | TARGET_ABI= gnueabi | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.if ${WANT_COMPILER_TYPE} == gcc || \ | .if ${WANT_COMPILER_TYPE} == gcc || \ | ||||
(defined(X_COMPILER_TYPE) && ${X_COMPILER_TYPE} == gcc) | (defined(X_COMPILER_TYPE) && ${X_COMPILER_TYPE} == gcc) | ||||
# GCC requires -isystem and -L when using a cross-compiler. --sysroot | # GCC requires -isystem and -L when using a cross-compiler. --sysroot | ||||
Show All 19 Lines | |||||
.if !empty(BFLAGS) | .if !empty(BFLAGS) | ||||
XCFLAGS+= ${BFLAGS} | XCFLAGS+= ${BFLAGS} | ||||
.endif | .endif | ||||
.if ${MK_LIB32} != "no" && (${TARGET_ARCH} == "amd64" || \ | .if ${MK_LIB32} != "no" && (${TARGET_ARCH} == "amd64" || \ | ||||
${TARGET_ARCH} == "powerpc64" || ${TARGET_ARCH:Mmips64*} != "") | ${TARGET_ARCH} == "powerpc64" || ${TARGET_ARCH:Mmips64*} != "") | ||||
LIBCOMPAT= 32 | LIBCOMPAT= 32 | ||||
.include "Makefile.libcompat" | .include "Makefile.libcompat" | ||||
.elif ${MK_LIBSOFT} != "no" && ${TARGET_ARCH} == "armv6" | .elif ${MK_LIBSOFT} != "no" && ${TARGET_ARCH:Marmv[67]*} != "" | ||||
LIBCOMPAT= SOFT | LIBCOMPAT= SOFT | ||||
.include "Makefile.libcompat" | .include "Makefile.libcompat" | ||||
.endif | .endif | ||||
# META_MODE normally ignores host file changes since every build updates | # META_MODE normally ignores host file changes since every build updates | ||||
# timestamps (see NO_META_IGNORE_HOST in sys.mk). There are known times | # timestamps (see NO_META_IGNORE_HOST in sys.mk). There are known times | ||||
# when the ABI breaks though that we want to force rebuilding WORLDTMP | # when the ABI breaks though that we want to force rebuilding WORLDTMP | ||||
# to get updated host tools. | # to get updated host tools. | ||||
▲ Show 20 Lines • Show All 2,226 Lines • Show Last 20 Lines |