Move to using TARGET_CPUARCH instead of TARGET_ARCH.
This commit is contained in:
parent
cb015705d8
commit
1136c95ff4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=212512
@ -5,8 +5,16 @@ WARNS?= 0
|
|||||||
|
|
||||||
.PATH: ${.CURDIR}/../common
|
.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/mipse[bl]/mips/:C/armeb/arm/}
|
||||||
|
.else
|
||||||
|
TARGET_CPUARCH=${MACHINE_CPUARCH}
|
||||||
|
.endif
|
||||||
TARGET_ARCH?= ${MACHINE_ARCH}
|
TARGET_ARCH?= ${MACHINE_ARCH}
|
||||||
CFLAGS+= -I${.CURDIR}/../arch/${TARGET_ARCH}
|
CFLAGS+= -I${.CURDIR}/../arch/${TARGET_CPUARCH}
|
||||||
CFLAGS+= -I${.CURDIR}/../common
|
CFLAGS+= -I${.CURDIR}/../common
|
||||||
|
|
||||||
OBJECT_FMT= ELF
|
OBJECT_FMT= ELF
|
||||||
|
Loading…
Reference in New Issue
Block a user