53089271a1
Reviewed by: sjg
43 lines
767 B
Makefile
43 lines
767 B
Makefile
# $FreeBSD$
|
|
|
|
.if !target(__ixp425_boot_Makefile.inc__)
|
|
.PATH: ${.CURDIR}/../../../../libkern ${.CURDIR}/../../../../libkern/arm
|
|
|
|
__ixp425_boot_Makefile.inc__:
|
|
|
|
# Both Avila and Pronghorn Metro are supported by ixp425
|
|
BOOT_FLAVOR=ixp425
|
|
|
|
CFLAGS+=-Os -ffreestanding \
|
|
-I${.CURDIR}/../../../.. \
|
|
-I${.CURDIR}/../../../../arm \
|
|
-DCPU_XSCALE_IXP425 \
|
|
-Wall -Waggregate-return \
|
|
-Werror \
|
|
-Wnested-externs \
|
|
-Wpointer-arith -Wshadow -Wwrite-strings \
|
|
-Wmissing-prototypes \
|
|
-Wmissing-declarations
|
|
|
|
# -Wstrict-prototypes
|
|
|
|
CFLAGS+=-DBOOT_${BOOT_FLAVOR:tu}
|
|
|
|
LD ?= ld
|
|
OBJCOPY ?= objcopy
|
|
|
|
.if defined(P)
|
|
${P}: ${OBJS}
|
|
${LD} ${LDFLAGS} -o ${.TARGET} ${OBJS}
|
|
|
|
CLEANFILES+= ${P}
|
|
.endif
|
|
|
|
.if defined(WITH_TAG_LIST)
|
|
MK_TAG_LIST:=yes
|
|
.else
|
|
MK_TAG_LIST:=no
|
|
.endif
|
|
|
|
.endif
|