diff options
author | Warner Losh <imp@FreeBSD.org> | 2022-02-07 20:14:48 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2022-02-07 20:14:48 +0000 |
commit | 27e64c99e4d61fc16e11fc9416553a54c1628a84 (patch) | |
tree | 4380adb1dd9f0e6da6ace962ef9b99490a3a7c0b /stand/uboot | |
parent | 949e3959669f0ca6697ab0d5e8e0b8194de23f81 (diff) | |
download | src-27e64c99e4d61fc16e11fc9416553a54c1628a84.tar.gz src-27e64c99e4d61fc16e11fc9416553a54c1628a84.zip |
stand/uboot: Fix building of ubldr.bin
Sponsored by: Netflix
Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D34189
Diffstat (limited to 'stand/uboot')
-rw-r--r-- | stand/uboot/Makefile | 9 | ||||
-rw-r--r-- | stand/uboot/arch/powerpc/Makefile.inc | 2 |
2 files changed, 8 insertions, 3 deletions
diff --git a/stand/uboot/Makefile b/stand/uboot/Makefile index aed2121bd507..052c9615bfc2 100644 --- a/stand/uboot/Makefile +++ b/stand/uboot/Makefile @@ -15,9 +15,9 @@ LOADER_DISK_SUPPORT?= yes .include "${.CURDIR}/arch/${MACHINE_CPUARCH}/Makefile.inc" -.if ${MK_PIE} == "yes" +LOADER_UBLDR_BIN?= yes +.if ${LOADER_UBLDR_BIN} != "no" FILES+= ubldr ubldr.bin -OBJS+= ${SRCS:N*.h:R:S/$/.o/g} .else PROG= ubldr .endif @@ -75,6 +75,11 @@ CFLAGS+= -I${FDTSRC} CFLAGS+= -DDISK_DEBUG .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} LDADD= ${LDR_INTERP} ${LIBFDT} ${LIBSA} diff --git a/stand/uboot/arch/powerpc/Makefile.inc b/stand/uboot/arch/powerpc/Makefile.inc index 01c7a0c6ac8c..226cfc2f7369 100644 --- a/stand/uboot/arch/powerpc/Makefile.inc +++ b/stand/uboot/arch/powerpc/Makefile.inc @@ -3,4 +3,4 @@ SRCS+= start.S conf.c ppc64_elf_freebsd.c .PATH: ${SYSDIR}/libkern SRCS+= ucmpdi2.c -MK_PIE= no +LOADER_UBLDR_BIN= no |