kboot: Move to kboot/kboot
In anticipation of separating the library elements from the kboot prorgam elements, move kboot down a level into a subdirectory. There will be libkboot and include directories in subsequent commits, mirroring other subsystems like i386 and efi. Sponsored by: Netflix
This commit is contained in:
parent
dcc20bced5
commit
091c255b5b
|
@ -1,69 +1,7 @@
|
|||
|
||||
LOADER_DISK_SUPPORT?= yes
|
||||
LOADER_CD9660_SUPPORT?= yes
|
||||
LOADER_MSDOS_SUPPORT?= no
|
||||
LOADER_EXT2FS_SUPPORT?= yes
|
||||
LOADER_UFS_SUPPORT?= yes
|
||||
LOADER_ZFS_SUPPORT?= yes
|
||||
LOADER_NET_SUPPORT?= no
|
||||
LOADER_NFS_SUPPORT?= no
|
||||
LOADER_TFTP_SUPPORT?= no
|
||||
LOADER_GZIP_SUPPORT?= no
|
||||
LOADER_BZIP2_SUPPORT?= no
|
||||
NO_OBJ=t
|
||||
|
||||
.include <bsd.init.mk>
|
||||
|
||||
PROG= loader.kboot
|
||||
NEWVERSWHAT= "kboot loader" ${MACHINE_ARCH}
|
||||
INSTALLFLAGS= -b
|
||||
SUBDIR+= kboot
|
||||
|
||||
# Architecture-specific loader code
|
||||
SRCS= \
|
||||
bootinfo.c \
|
||||
conf.c \
|
||||
crt1.c \
|
||||
gfx_fb_stub.c \
|
||||
host_syscalls.c \
|
||||
hostcons.c \
|
||||
hostdisk.c \
|
||||
hostfs.c \
|
||||
init.c \
|
||||
kbootfdt.c \
|
||||
main.c \
|
||||
seg.c \
|
||||
termios.c \
|
||||
util.c \
|
||||
vers.c
|
||||
|
||||
CFLAGS.gfx_fb_stub.c += -I${SRCTOP}/contrib/pnglite -I${SRCTOP}/sys/teken
|
||||
.if ${MK_LOADER_ZFS} != "no"
|
||||
CFLAGS+= -I${ZFSSRC}
|
||||
CFLAGS+= -I${SYSDIR}/contrib/openzfs/include
|
||||
CFLAGS+= -I${SYSDIR}/contrib/openzfs/include/os/freebsd/zfs
|
||||
HAVE_ZFS=yes
|
||||
.endif
|
||||
|
||||
HELP_FILENAME= loader.help.kboot
|
||||
|
||||
.include "${BOOTSRC}/fdt.mk"
|
||||
|
||||
# We share bootinfo.c with efi
|
||||
.PATH: ${BOOTSRC}/efi/loader
|
||||
|
||||
# Note: Since we're producing a userland binary, we key off of MACHINE_ARCH
|
||||
# instead of the more normal MACHINE since the changes between different flavors
|
||||
# of MACHINE_ARCH are large enough in Linux that it's easier that way.
|
||||
.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}
|
||||
.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
|
||||
|
||||
# Always add MI sources
|
||||
.include "${BOOTSRC}/loader.mk"
|
||||
.PATH: ${SYSDIR}/libkern
|
||||
CFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${MACHINE_ARCH}
|
||||
|
||||
CFLAGS+= -Wall
|
||||
|
||||
DPADD= ${LDR_INTERP} ${LIBOFW} ${LIBSAFDT} ${LIBSA}
|
||||
LDADD= ${LDR_INTERP} ${LIBOFW} ${LIBSAFDT} ${LIBSA}
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
.include <bsd.subdir.mk>
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
.include "../Makefile.inc"
|
|
@ -0,0 +1,69 @@
|
|||
|
||||
LOADER_DISK_SUPPORT?= yes
|
||||
LOADER_CD9660_SUPPORT?= yes
|
||||
LOADER_MSDOS_SUPPORT?= no
|
||||
LOADER_EXT2FS_SUPPORT?= yes
|
||||
LOADER_UFS_SUPPORT?= yes
|
||||
LOADER_ZFS_SUPPORT?= yes
|
||||
LOADER_NET_SUPPORT?= no
|
||||
LOADER_NFS_SUPPORT?= no
|
||||
LOADER_TFTP_SUPPORT?= no
|
||||
LOADER_GZIP_SUPPORT?= no
|
||||
LOADER_BZIP2_SUPPORT?= no
|
||||
|
||||
.include <bsd.init.mk>
|
||||
|
||||
PROG= loader.kboot
|
||||
NEWVERSWHAT= "kboot loader" ${MACHINE_ARCH}
|
||||
INSTALLFLAGS= -b
|
||||
|
||||
# Architecture-specific loader code
|
||||
SRCS= \
|
||||
bootinfo.c \
|
||||
conf.c \
|
||||
crt1.c \
|
||||
gfx_fb_stub.c \
|
||||
host_syscalls.c \
|
||||
hostcons.c \
|
||||
hostdisk.c \
|
||||
hostfs.c \
|
||||
init.c \
|
||||
kbootfdt.c \
|
||||
main.c \
|
||||
seg.c \
|
||||
termios.c \
|
||||
util.c \
|
||||
vers.c
|
||||
|
||||
CFLAGS.gfx_fb_stub.c += -I${SRCTOP}/contrib/pnglite -I${SRCTOP}/sys/teken
|
||||
.if ${MK_LOADER_ZFS} != "no"
|
||||
CFLAGS+= -I${ZFSSRC}
|
||||
CFLAGS+= -I${SYSDIR}/contrib/openzfs/include
|
||||
CFLAGS+= -I${SYSDIR}/contrib/openzfs/include/os/freebsd/zfs
|
||||
HAVE_ZFS=yes
|
||||
.endif
|
||||
|
||||
HELP_FILENAME= loader.help.kboot
|
||||
|
||||
.include "${BOOTSRC}/fdt.mk"
|
||||
|
||||
# We share bootinfo.c with efi
|
||||
.PATH: ${BOOTSRC}/efi/loader
|
||||
|
||||
# Note: Since we're producing a userland binary, we key off of MACHINE_ARCH
|
||||
# instead of the more normal MACHINE since the changes between different flavors
|
||||
# of MACHINE_ARCH are large enough in Linux that it's easier that way.
|
||||
.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}
|
||||
.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
|
||||
|
||||
# Always add MI sources
|
||||
.include "${BOOTSRC}/loader.mk"
|
||||
.PATH: ${SYSDIR}/libkern
|
||||
CFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${MACHINE_ARCH}
|
||||
|
||||
CFLAGS+= -Wall
|
||||
|
||||
DPADD= ${LDR_INTERP} ${LIBOFW} ${LIBSAFDT} ${LIBSA}
|
||||
LDADD= ${LDR_INTERP} ${LIBOFW} ${LIBSAFDT} ${LIBSA}
|
||||
|
||||
.include <bsd.prog.mk>
|
Loading…
Reference in New Issue