kboot: Split out powerpc build
Split the powerpc specific parts into kboot/arch/powerpc64. More may be needed here. Sponsored by: Netflix Reviewed by: jhibbits Differential Revision: https://reviews.freebsd.org/D33514
This commit is contained in:
parent
4366199644
commit
6497250f6f
@ -80,8 +80,10 @@ SUBDIR_DEPEND_forth+= ficl
|
|||||||
SUBDIR_DEPEND_lua+= liblua
|
SUBDIR_DEPEND_lua+= liblua
|
||||||
|
|
||||||
SUBDIR_DEPEND_efi+= ${INTERP_DEPENDS}
|
SUBDIR_DEPEND_efi+= ${INTERP_DEPENDS}
|
||||||
|
SUBDIR_DEPEND_kboot+= ${INTERP_DEPENDS}
|
||||||
.if ${MK_FDT} != "no"
|
.if ${MK_FDT} != "no"
|
||||||
SUBDIR_DEPEND_efi+= fdt
|
SUBDIR_DEPEND_efi+= fdt
|
||||||
|
SUBDIR_DEPEND_kboot+= fdt
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
SUBDIR_DEPEND_uboot+= ${INTERP_DEPENDS}
|
SUBDIR_DEPEND_uboot+= ${INTERP_DEPENDS}
|
||||||
|
@ -17,30 +17,23 @@ NEWVERSWHAT= "kboot loader" ${MACHINE_ARCH}
|
|||||||
INSTALLFLAGS= -b
|
INSTALLFLAGS= -b
|
||||||
|
|
||||||
# Architecture-specific loader code
|
# Architecture-specific loader code
|
||||||
SRCS= conf.c vers.c main.c ppc64_elf_freebsd.c
|
SRCS= vers.c main.c hostcons.c hostdisk.c kbootfdt.c gfx_fb_stub.c
|
||||||
SRCS+= host_syscall.S hostcons.c hostdisk.c kerneltramp.S kbootfdt.c
|
|
||||||
SRCS+= ucmpdi2.c gfx_fb_stub.c
|
|
||||||
|
|
||||||
CFLAGS.gfx_fb_stub.c += -I${SRCTOP}/contrib/pnglite -I${SRCTOP}/sys/teken
|
CFLAGS.gfx_fb_stub.c += -I${SRCTOP}/contrib/pnglite -I${SRCTOP}/sys/teken
|
||||||
|
|
||||||
.include "${BOOTSRC}/fdt.mk"
|
.include "${BOOTSRC}/fdt.mk"
|
||||||
|
|
||||||
CFLAGS+= -mcpu=powerpc64
|
.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}
|
||||||
|
.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
|
||||||
|
|
||||||
# Always add MI sources
|
# Always add MI sources
|
||||||
.include "${BOOTSRC}/loader.mk"
|
.include "${BOOTSRC}/loader.mk"
|
||||||
.PATH: ${SYSDIR}/libkern
|
.PATH: ${SYSDIR}/libkern
|
||||||
|
CFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${MACHINE_ARCH}
|
||||||
|
|
||||||
CFLAGS+= -Wall -DAIM
|
CFLAGS+= -Wall
|
||||||
# load address. set in linker script
|
|
||||||
RELOC?= 0x0
|
|
||||||
CFLAGS+= -DRELOC=${RELOC}
|
|
||||||
|
|
||||||
LDFLAGS= -nostdlib -static -T ${.CURDIR}/ldscript.powerpc
|
|
||||||
|
|
||||||
DPADD= ${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA}
|
DPADD= ${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA}
|
||||||
LDADD= ${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA}
|
LDADD= ${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA}
|
||||||
|
|
||||||
MK_PIE= no
|
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
14
stand/kboot/arch/powerpc64/Makefile.inc
Normal file
14
stand/kboot/arch/powerpc64/Makefile.inc
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
CFLAGS+= -mcpu=powerpc64
|
||||||
|
|
||||||
|
SRCS+= conf.c ppc64_elf_freebsd.c host_syscall.S kerneltramp.S
|
||||||
|
SRCS+= ucmpdi2.c
|
||||||
|
|
||||||
|
# load address. set in linker script
|
||||||
|
RELOC?= 0x0
|
||||||
|
CFLAGS+= -DRELOC=${RELOC}
|
||||||
|
|
||||||
|
LDFLAGS= -nostdlib -static -T ${.CURDIR}/arch/${MACHINE_ARCH}/ldscript.powerpc
|
||||||
|
|
||||||
|
MK_PIE= no
|
||||||
|
# Maybe bogus?
|
||||||
|
CFLAGS+= -DAIM
|
Loading…
x
Reference in New Issue
Block a user