loader/uboot: Move to foo.ldconfig

Move to the foo.ldconfig convention to match the rest of the boot
loader. No functional change intended.

Sponsored by:		Netflix
Reviewed by:		tsoome, kevans
Differential Revision:	https://reviews.freebsd.org/D44059
This commit is contained in:
Warner Losh 2024-02-24 17:56:48 -07:00
parent fe4ab1fdb0
commit 3d6239d244
4 changed files with 8 additions and 8 deletions

View File

@ -40,7 +40,7 @@ HELP_FILENAME= loader.help.uboot
# Always add MI sources
.include "${BOOTSRC}/loader.mk"
LDSCRIPT= ${.CURDIR}/arch/${MACHINE_CPUARCH}/ldscript.${MACHINE_CPUARCH}
LDSCRIPT= ${.CURDIR}/arch/${MACHINE_CPUARCH}/${MACHINE_CPUARCH}.ldscript
LDFLAGS= -nostdlib -static -T ${LDSCRIPT}
LDFLAGS+= -Wl,-znotext

View File

@ -4,22 +4,22 @@ UBLDR_LOADADDR?= 0x1000000
SRCS+= start.S conf.c self_reloc.c
ldscript.abs:
abs.ldscript:
echo "UBLDR_LOADADDR = ${UBLDR_LOADADDR};" >${.TARGET}
ldscript.pie:
pie.ldscript:
echo "UBLDR_LOADADDR = 0;" >${.TARGET}
ubldr: ${OBJS} ldscript.abs ${LDSCRIPT} ${DPADD}
${CC} ${CFLAGS} -T ldscript.abs ${LDFLAGS} \
ubldr: ${OBJS} abs.ldscript ${LDSCRIPT} ${DPADD}
${CC} ${CFLAGS} -T abs.ldscript ${LDFLAGS} \
-o ${.TARGET} ${OBJS} ${LDADD}
ubldr.pie: ${OBJS} ldscript.pie ${LDSCRIPT} ${DPADD}
${CC} ${CFLAGS} -T ldscript.pie ${LDFLAGS} -pie -Wl,-Bsymbolic \
ubldr.pie: ${OBJS} pie.ldscript ${LDSCRIPT} ${DPADD}
${CC} ${CFLAGS} -T pie.ldscript ${LDFLAGS} -pie -Wl,-Bsymbolic \
-o ${.TARGET} ${OBJS} ${LDADD}
ubldr.bin: ubldr.pie
${OBJCOPY} -S -O binary ubldr.pie ${.TARGET}
CLEANFILES+= ldscript.abs ldscript.pie ubldr ubldr.pie ubldr.bin
CLEANFILES+= abs.ldscript pie.ldscript ubldr ubldr.pie ubldr.bin