1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-04 09:09:56 +00:00

kboot: Cleanup libkern reference

For aarch64 and amd64, we don't pull in anything from libkern, so we
don't need it in our path.  However, powerpc needs ucmpdi2 from libkern,
so bring it into libkboot's build and omit it from loader.kboot.

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2024-01-28 11:28:05 -07:00
parent a03411e847
commit 4aabaa1890
4 changed files with 7 additions and 3 deletions

View File

@ -57,7 +57,6 @@ HELP_FILENAME= loader.help.kboot
# Always add MI sources
.include "${BOOTSRC}/loader.mk"
.PATH: ${SYSDIR}/libkern
CFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${MACHINE_ARCH}
CFLAGS+= -Wall

View File

@ -1,7 +1,6 @@
CFLAGS+= -mcpu=powerpc64
SRCS+= ppc64_elf_freebsd.c host_syscall.S kerneltramp.S load_addr.c fdt_arch.c
SRCS+= ucmpdi2.c
SRCS+= ppc64_elf_freebsd.c kerneltramp.S load_addr.c fdt_arch.c
LDFLAGS= -nostdlib -static -T ${.CURDIR}/arch/${MACHINE_ARCH}/ldscript.powerpc

View File

@ -7,4 +7,6 @@ CFLAGS+=-I${.CURDIR} -I${.CURDIR}/arch/${MACHINE_ARCH}
SRCS= crt1.c
.sinclude "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
.include <bsd.lib.mk>

View File

@ -0,0 +1,4 @@
CFLAGS+= -mcpu=powerpc64
.PATH: ${SYSDIR}/libkern
SRCS+= ucmpdi2.c