mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-24 16:10:11 +00:00
Build disk.c only when DISK_SUPPORT is enabled.
This commit is contained in:
parent
d958ec0ca3
commit
9efbc4f52e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=240275
@ -6,13 +6,18 @@ LIB= uboot
|
||||
INTERNALLIB=
|
||||
WARNS?= 2
|
||||
|
||||
SRCS= crc32.c console.c copy.c devicename.c disk.c elf_freebsd.c glue.c
|
||||
SRCS= crc32.c console.c copy.c devicename.c elf_freebsd.c glue.c
|
||||
SRCS+= module.c net.c reboot.c time.c
|
||||
|
||||
CFLAGS+= -ffreestanding -msoft-float
|
||||
|
||||
CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/
|
||||
|
||||
.if !defined(LOADER_NO_DISK_SUPPORT)
|
||||
SRCS+= disk.c
|
||||
CFLAGS+= -DLOADER_DISK_SUPPORT
|
||||
.endif
|
||||
|
||||
# Pick up FDT includes
|
||||
CFLAGS+= -I${.CURDIR}/../../../../sys/contrib/libfdt/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user