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:
parent
a03411e847
commit
4aabaa1890
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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>
|
||||
|
4
stand/kboot/libkboot/arch/powerpc64/Makefile.inc
Normal file
4
stand/kboot/libkboot/arch/powerpc64/Makefile.inc
Normal file
@ -0,0 +1,4 @@
|
||||
CFLAGS+= -mcpu=powerpc64
|
||||
|
||||
.PATH: ${SYSDIR}/libkern
|
||||
SRCS+= ucmpdi2.c
|
Loading…
Reference in New Issue
Block a user