TARGET_* shouldn't be used here. Use MACHINE_* instead.
This commit is contained in:
parent
d6f0fe764e
commit
0bed81517c
@ -5,18 +5,10 @@ WARNS?= 0
|
|||||||
|
|
||||||
.PATH: ${.CURDIR}/../common
|
.PATH: ${.CURDIR}/../common
|
||||||
|
|
||||||
# These assignments duplicate much of the functionality of
|
.if exists(${.CURDIR}/../arch/${MACHINE_ARCH})
|
||||||
# MACHINE_CPUARCH, but there's no easy way to export make functions...
|
CFLAGS+= -I${.CURDIR}/../arch/${MACHINE_ARCH}
|
||||||
.if defined(TARGET_ARCH)
|
|
||||||
TARGET_CPUARCH= ${TARGET_ARCH:C/mips(n32|64)?(el)?/mips/:C/arm(v6)?(eb|hf)?/arm/}
|
|
||||||
.else
|
.else
|
||||||
TARGET_CPUARCH= ${MACHINE_CPUARCH}
|
CFLAGS+= -I${.CURDIR}/../arch/${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}
|
|
||||||
.endif
|
.endif
|
||||||
CFLAGS+= -I${.CURDIR}/../common
|
CFLAGS+= -I${.CURDIR}/../common
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user