TARGET_* shouldn't be used here. Use MACHINE_* instead.

This commit is contained in:
imp 2015-03-12 08:32:24 +00:00
parent d6f0fe764e
commit 0bed81517c

View File

@ -5,18 +5,10 @@ WARNS?= 0
.PATH: ${.CURDIR}/../common
# These assignments duplicate much of the functionality of
# MACHINE_CPUARCH, but there's no easy way to export make functions...
.if defined(TARGET_ARCH)
TARGET_CPUARCH= ${TARGET_ARCH:C/mips(n32|64)?(el)?/mips/:C/arm(v6)?(eb|hf)?/arm/}
.if exists(${.CURDIR}/../arch/${MACHINE_ARCH})
CFLAGS+= -I${.CURDIR}/../arch/${MACHINE_ARCH}
.else
TARGET_CPUARCH= ${MACHINE_CPUARCH}
TARGET_ARCH= ${MACHINE_ARCH}
.endif
.if exists(${.CURDIR}/../arch/${TARGET_ARCH})
CFLAGS+= -I${.CURDIR}/../arch/${TARGET_ARCH}
.else
CFLAGS+= -I${.CURDIR}/../arch/${TARGET_CPUARCH}
CFLAGS+= -I${.CURDIR}/../arch/${MACHINE_CPUARCH}
.endif
CFLAGS+= -I${.CURDIR}/../common