2008-02-16 22:13:11 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2017-10-29 05:27:22 +00:00
|
|
|
.include <bsd.init.mk>
|
2014-03-01 19:02:00 +00:00
|
|
|
|
2017-10-29 05:27:22 +00:00
|
|
|
.PATH: ${LDRSRC}
|
2012-03-21 20:53:47 +00:00
|
|
|
|
2008-02-16 22:13:11 +00:00
|
|
|
LIB= uboot
|
2008-09-03 15:39:50 +00:00
|
|
|
WARNS?= 2
|
2008-02-16 22:13:11 +00:00
|
|
|
|
2017-10-12 14:56:54 +00:00
|
|
|
SRCS= console.c copy.c devicename.c elf_freebsd.c glue.c
|
2012-03-21 20:53:47 +00:00
|
|
|
SRCS+= module.c net.c reboot.c time.c
|
2008-02-16 22:13:11 +00:00
|
|
|
|
2017-10-17 19:11:19 +00:00
|
|
|
.if ${LOADER_DISK_SUPPORT:Uyes} == "yes"
|
|
|
|
SRCS+= disk.c
|
|
|
|
.endif
|
|
|
|
|
2017-11-10 23:54:24 +00:00
|
|
|
.include "${BOOTSRC}/fdt.mk"
|
2010-05-25 15:21:39 +00:00
|
|
|
|
2008-02-16 22:13:11 +00:00
|
|
|
# Pick up the bootstrap header for some interface items
|
2017-11-10 23:54:58 +00:00
|
|
|
CFLAGS+= -I${LDRSRC}
|
2008-02-16 22:13:11 +00:00
|
|
|
|
|
|
|
.ifdef(BOOT_DISK_DEBUG)
|
|
|
|
# Make the disk code more talkative
|
|
|
|
CFLAGS+= -DDISK_DEBUG
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|