Fix abi/arch/float-abi for boot code
Force machine to be acorn26 Only build when little-endian non-eabi
This commit is contained in:
parent
909d4efb97
commit
0d1154fda7
|
@ -1,5 +1,11 @@
|
|||
# $NetBSD: Makefile,v 1.1 2002/03/24 15:47:24 bjh21 Exp $
|
||||
# $NetBSD: Makefile,v 1.2 2013/05/01 22:36:52 matt Exp $
|
||||
|
||||
.include <bsd.endian.mk>
|
||||
|
||||
.if empty(MACHINE_ARCH:Mearm*) && ${TARGET_ENDIANNESS} == "1234"
|
||||
|
||||
SUBDIR= boot26
|
||||
|
||||
.endif
|
||||
|
||||
.include <bsd.subdir.mk>
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
# $NetBSD: Makefile.buildboot,v 1.13 2012/08/16 16:23:32 matt Exp $
|
||||
# $NetBSD: Makefile.buildboot,v 1.14 2013/05/01 22:36:52 matt Exp $
|
||||
|
||||
S?= ${.CURDIR}/../../../..
|
||||
|
||||
.PATH: ${.CURDIR}/../lib
|
||||
|
||||
MACHINE= acorn26
|
||||
SRCS= ${PROGSOURCE}
|
||||
NOMAN=# defined
|
||||
BINDIR=/usr/mdec
|
||||
|
@ -27,9 +28,11 @@ vers.c: ${.CURDIR}/version
|
|||
${HOST_SH} ${S}/conf/newvers_stand.sh ${${MKREPRO} == "yes" :?:-D} \
|
||||
${.CURDIR}/version ${MACHINE} ${NEWVERSWHAT}
|
||||
|
||||
CPUFLAGS=
|
||||
CPPFLAGS+= -D_STANDALONE -DHIMEM=0x28000
|
||||
CPPFLAGS+= -I. -I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
|
||||
CPPFLAGS+= -I${.CURDIR}/../lib
|
||||
CPPFLAGS+= -mabi=apcs-gnu -mfloat-abi=soft -march=armv2
|
||||
CFLAGS= -O2
|
||||
CFLAGS+= -ffreestanding
|
||||
CFLAGS+= -Wall -Wstrict-prototypes -Wmissing-prototypes
|
||||
|
|
Loading…
Reference in New Issue