diff --git a/stand/kboot/kboot/arch/aarch64/termios_arch.h b/stand/kboot/include/arch/aarch64/termios_arch.h similarity index 100% rename from stand/kboot/kboot/arch/aarch64/termios_arch.h rename to stand/kboot/include/arch/aarch64/termios_arch.h diff --git a/stand/kboot/kboot/arch/amd64/termios_arch.h b/stand/kboot/include/arch/amd64/termios_arch.h similarity index 100% rename from stand/kboot/kboot/arch/amd64/termios_arch.h rename to stand/kboot/include/arch/amd64/termios_arch.h diff --git a/stand/kboot/kboot/arch/powerpc64/termios_arch.h b/stand/kboot/include/arch/powerpc64/termios_arch.h similarity index 100% rename from stand/kboot/kboot/arch/powerpc64/termios_arch.h rename to stand/kboot/include/arch/powerpc64/termios_arch.h diff --git a/stand/kboot/kboot/termios.h b/stand/kboot/include/termios.h similarity index 100% rename from stand/kboot/kboot/termios.h rename to stand/kboot/include/termios.h diff --git a/stand/kboot/kboot/termios_gen.h b/stand/kboot/include/termios_gen.h similarity index 100% rename from stand/kboot/kboot/termios_gen.h rename to stand/kboot/include/termios_gen.h diff --git a/stand/kboot/kboot/Makefile b/stand/kboot/kboot/Makefile index 475f863b77bd..055027b85eb2 100644 --- a/stand/kboot/kboot/Makefile +++ b/stand/kboot/kboot/Makefile @@ -1,66 +1,65 @@ 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 PROG= loader.kboot NEWVERSWHAT= "kboot loader" ${MACHINE_ARCH} INSTALLFLAGS= -b # Architecture-specific loader code SRCS= \ bootinfo.c \ conf.c \ gfx_fb_stub.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" CFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${MACHINE_ARCH} CFLAGS+= -Wall DPADD= ${LDR_INTERP} ${LIBOFW} ${LIBSAFDT} ${LIBSA} ${LIBKBOOT} LDADD= ${LDR_INTERP} ${LIBOFW} ${LIBSAFDT} ${LIBSA} ${LIBKBOOT} .include diff --git a/stand/kboot/libkboot/Makefile b/stand/kboot/libkboot/Makefile index 33674da83661..d9ce08cb0856 100644 --- a/stand/kboot/libkboot/Makefile +++ b/stand/kboot/libkboot/Makefile @@ -1,15 +1,16 @@ .include LIB= kboot WARNS?= 4 .PATH: ${.CURDIR}/arch/${MACHINE_ARCH} CFLAGS+=-I${.CURDIR} -I${.CURDIR}/arch/${MACHINE_ARCH} SRCS= crt1.c \ host_syscall.S \ - host_syscalls.c + host_syscalls.c \ + termios.c .sinclude "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc" .include diff --git a/stand/kboot/kboot/termios.c b/stand/kboot/libkboot/termios.c similarity index 100% rename from stand/kboot/kboot/termios.c rename to stand/kboot/libkboot/termios.c