stand/uboot: Fix building of ubldr.bin
Sponsored by: Netflix Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D34189
This commit is contained in:
parent
949e395966
commit
27e64c99e4
@ -15,9 +15,9 @@ LOADER_DISK_SUPPORT?= yes
|
|||||||
|
|
||||||
.include "${.CURDIR}/arch/${MACHINE_CPUARCH}/Makefile.inc"
|
.include "${.CURDIR}/arch/${MACHINE_CPUARCH}/Makefile.inc"
|
||||||
|
|
||||||
.if ${MK_PIE} == "yes"
|
LOADER_UBLDR_BIN?= yes
|
||||||
|
.if ${LOADER_UBLDR_BIN} != "no"
|
||||||
FILES+= ubldr ubldr.bin
|
FILES+= ubldr ubldr.bin
|
||||||
OBJS+= ${SRCS:N*.h:R:S/$/.o/g}
|
|
||||||
.else
|
.else
|
||||||
PROG= ubldr
|
PROG= ubldr
|
||||||
.endif
|
.endif
|
||||||
@ -75,6 +75,11 @@ CFLAGS+= -I${FDTSRC}
|
|||||||
CFLAGS+= -DDISK_DEBUG
|
CFLAGS+= -DDISK_DEBUG
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
.if ${LOADER_UBLDR_BIN} != "no"
|
||||||
|
OBJS+= ${SRCS:N*.h:R:S/$/.o/g}
|
||||||
|
ubldr ubldr.bin ubldr.pie: ${OBJS}
|
||||||
|
.endif
|
||||||
|
|
||||||
DPADD= ${LDR_INTERP} ${LIBFDT} ${LIBSA}
|
DPADD= ${LDR_INTERP} ${LIBFDT} ${LIBSA}
|
||||||
LDADD= ${LDR_INTERP} ${LIBFDT} ${LIBSA}
|
LDADD= ${LDR_INTERP} ${LIBFDT} ${LIBSA}
|
||||||
|
|
||||||
|
@ -3,4 +3,4 @@ SRCS+= start.S conf.c ppc64_elf_freebsd.c
|
|||||||
.PATH: ${SYSDIR}/libkern
|
.PATH: ${SYSDIR}/libkern
|
||||||
SRCS+= ucmpdi2.c
|
SRCS+= ucmpdi2.c
|
||||||
|
|
||||||
MK_PIE= no
|
LOADER_UBLDR_BIN= no
|
||||||
|
Loading…
Reference in New Issue
Block a user