LOADER_foo_SUPPORTED
This commit is contained in:
parent
6b9f688352
commit
a7fa2fb669
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=324653
@ -19,60 +19,17 @@ SRCS= start.S conf.c self_reloc.c vers.c
|
|||||||
CWARNFLAGS.self_reloc.c+= -Wno-error=maybe-uninitialized
|
CWARNFLAGS.self_reloc.c+= -Wno-error=maybe-uninitialized
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if !defined(LOADER_NO_DISK_SUPPORT)
|
|
||||||
LOADER_DISK_SUPPORT?= yes
|
|
||||||
.else
|
|
||||||
LOADER_DISK_SUPPORT= no
|
|
||||||
.endif
|
|
||||||
LOADER_UFS_SUPPORT?= yes
|
LOADER_UFS_SUPPORT?= yes
|
||||||
LOADER_CD9660_SUPPORT?= no
|
LOADER_CD9660_SUPPORT?= no
|
||||||
|
LOADER_MSDOS_SUPPORT?= no
|
||||||
LOADER_EXT2FS_SUPPORT?= no
|
LOADER_EXT2FS_SUPPORT?= no
|
||||||
.if ${MK_NAND} != "no"
|
|
||||||
LOADER_NANDFS_SUPPORT?= yes
|
|
||||||
.else
|
|
||||||
LOADER_NANDFS_SUPPORT?= no
|
|
||||||
.endif
|
|
||||||
LOADER_NET_SUPPORT?= yes
|
LOADER_NET_SUPPORT?= yes
|
||||||
LOADER_NFS_SUPPORT?= yes
|
LOADER_NFS_SUPPORT?= yes
|
||||||
LOADER_TFTP_SUPPORT?= no
|
LOADER_TFTP_SUPPORT?= no
|
||||||
LOADER_GZIP_SUPPORT?= no
|
LOADER_GZIP_SUPPORT?= no
|
||||||
LOADER_BZIP2_SUPPORT?= no
|
LOADER_BZIP2_SUPPORT?= no
|
||||||
.if ${MK_FDT} != "no"
|
LOADER_FDT_SUPPORT= ${MK_FDT}
|
||||||
LOADER_FDT_SUPPORT= yes
|
|
||||||
.else
|
|
||||||
LOADER_FDT_SUPPORT= no
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if ${LOADER_DISK_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_DISK_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_UFS_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_UFS_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_CD9660_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_CD9660_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_EXT2FS_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_EXT2FS_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_NANDFS_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_NANDFS_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_GZIP_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_GZIP_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_BZIP2_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_BZIP2_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_NET_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_NET_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_NFS_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_NFS_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_TFTP_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_TFTP_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_FDT_SUPPORT} == "yes"
|
.if ${LOADER_FDT_SUPPORT} == "yes"
|
||||||
CFLAGS+= -I${.CURDIR}/../../fdt
|
CFLAGS+= -I${.CURDIR}/../../fdt
|
||||||
CFLAGS+= -I${.OBJDIR}/../../fdt
|
CFLAGS+= -I${.OBJDIR}/../../fdt
|
||||||
|
@ -19,4 +19,56 @@ LIBFICL32= ${OBJTOP}/sys/boot/ficl32/libficl.a
|
|||||||
LIBSA= ${OBJTOP}/sys/boot/libsa/libsa.a
|
LIBSA= ${OBJTOP}/sys/boot/libsa/libsa.a
|
||||||
LIBSA32= ${OBJTOP}/sys/boot/libsa32/libsa32.a
|
LIBSA32= ${OBJTOP}/sys/boot/libsa32/libsa32.a
|
||||||
|
|
||||||
|
# Standard options:
|
||||||
|
|
||||||
|
# Filesystem support
|
||||||
|
.if ${LOADER_CD9660_SUPPORT:Uno} == "yes"
|
||||||
|
CFLAGS+= -DLOADER_CD9660_SUPPORT
|
||||||
|
.endif
|
||||||
|
.if ${LOADER_EXT2FS_SUPPORT:Uno} == "yes"
|
||||||
|
CFLAGS+= -DLOADER_EXT2FS_SUPPORT
|
||||||
|
.endif
|
||||||
|
.if ${LOADER_MSDOS_SUPPORT:Uno} == "yes"
|
||||||
|
CFLAGS+= -DLOADER_MSDOS_SUPPORT
|
||||||
|
.endif
|
||||||
|
.if ${LOADER_NANDFS_SUPPORT:U${MK_NAND}} == "yes"
|
||||||
|
CFLAGS+= -DLOADER_NANDFS_SUPPORT
|
||||||
|
.endif
|
||||||
|
.if ${LOADER_UFS_SUPPORT:Uyes} == "yes"
|
||||||
|
CFLAGS+= -DLOADER_UFS_SUPPORT
|
||||||
|
.endif
|
||||||
|
|
||||||
|
# Compression
|
||||||
|
.if ${LOADER_GZIP_SUPPORT:Uno} == "yes"
|
||||||
|
CFLAGS+= -DLOADER_GZIP_SUPPORT
|
||||||
|
.endif
|
||||||
|
.if ${LOADER_BZIP2_SUPPORT:Uno} == "yes"
|
||||||
|
CFLAGS+= -DLOADER_BZIP2_SUPPORT
|
||||||
|
.endif
|
||||||
|
|
||||||
|
# Network related things
|
||||||
|
.if ${LOADER_NET_SUPPORT:Uno} == "yes"
|
||||||
|
CFLAGS+= -DLOADER_NET_SUPPORT
|
||||||
|
.endif
|
||||||
|
.if ${LOADER_NFS_SUPPORT:Uno} == "yes"
|
||||||
|
CFLAGS+= -DLOADER_NFS_SUPPORT
|
||||||
|
.endif
|
||||||
|
.if ${LOADER_TFTP_SUPPORT:Uno} == "yes"
|
||||||
|
CFLAGS+= -DLOADER_TFTP_SUPPORT
|
||||||
|
.endif
|
||||||
|
|
||||||
|
# Disk and partition support
|
||||||
|
.if ${LOADER_DISK_SUPPORT:Uyes} == "yes"
|
||||||
|
CFLAGS+= -DLOADER_DISK_SUPPORT
|
||||||
|
.if ${LOADER_GPT_SUPPORT:Uyes} == "yes"
|
||||||
|
CFLAGS+= -DLOADER_GPT_SUPPORT
|
||||||
|
.endif
|
||||||
|
.if ${LOADER_MBR_SUPPORT:Uyes} == "yes"
|
||||||
|
CFLAGS+= -DLOADER_MBR_SUPPORT
|
||||||
|
.endif
|
||||||
|
.if ${LOADER_GELI_SUPPORT:Uyes} == "yes"
|
||||||
|
CFLAGS+= -DLOADER_GELI_SUPPORT
|
||||||
|
.endif
|
||||||
|
.endif
|
||||||
|
|
||||||
.endif # __BOOT_DEFS_MK__
|
.endif # __BOOT_DEFS_MK__
|
||||||
|
@ -35,6 +35,7 @@ CFLAGS+= -mgeneral-regs-only
|
|||||||
.if ${MACHINE_ARCH} == "amd64"
|
.if ${MACHINE_ARCH} == "amd64"
|
||||||
CFLAGS+= -fPIC -mno-red-zone
|
CFLAGS+= -fPIC -mno-red-zone
|
||||||
.endif
|
.endif
|
||||||
|
CFLAGS+= -I${SYSDIR}
|
||||||
CFLAGS+= -I${.CURDIR}/../include
|
CFLAGS+= -I${.CURDIR}/../include
|
||||||
CFLAGS+= -I${.CURDIR}/../include/${MACHINE}
|
CFLAGS+= -I${.CURDIR}/../include/${MACHINE}
|
||||||
.if ${MK_ZFS} != "no"
|
.if ${MK_ZFS} != "no"
|
||||||
|
@ -11,6 +11,11 @@ INTERNALPROG=
|
|||||||
WARNS?= 3
|
WARNS?= 3
|
||||||
LOADER_NET_SUPPORT?= yes
|
LOADER_NET_SUPPORT?= yes
|
||||||
|
|
||||||
|
LOADER_MSDOS_SUPPORT?= yes
|
||||||
|
LOADER_UFS_SUPPORT?= yes
|
||||||
|
LOADER_CD9660_SUPPORT?= no
|
||||||
|
LOADER_EXT2FS_SUPPORT?= no
|
||||||
|
|
||||||
# architecture-specific loader code
|
# architecture-specific loader code
|
||||||
SRCS= autoload.c \
|
SRCS= autoload.c \
|
||||||
bootinfo.c \
|
bootinfo.c \
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
#
|
#
|
||||||
|
.include "../../defs.mk"
|
||||||
|
|
||||||
LIB= i386
|
LIB= i386
|
||||||
INTERNALLIB=
|
INTERNALLIB=
|
||||||
|
|
||||||
@ -12,13 +14,6 @@ SRCS= biosacpi.c bioscd.c biosdisk.c biosmem.c biospnp.c \
|
|||||||
.PATH: ${.CURDIR}/../../zfs
|
.PATH: ${.CURDIR}/../../zfs
|
||||||
SRCS+= devicename_stubs.c
|
SRCS+= devicename_stubs.c
|
||||||
|
|
||||||
.if defined(LOADER_TFTP_SUPPORT)
|
|
||||||
CFLAGS+= -DLOADER_TFTP_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if defined(LOADER_NFS_SUPPORT)
|
|
||||||
CFLAGS+= -DLOADER_NFS_SUPPORT
|
|
||||||
.endif
|
|
||||||
|
|
||||||
BOOT_COMCONSOLE_PORT?= 0x3f8
|
BOOT_COMCONSOLE_PORT?= 0x3f8
|
||||||
CFLAGS+= -DCOMPORT=${BOOT_COMCONSOLE_PORT}
|
CFLAGS+= -DCOMPORT=${BOOT_COMCONSOLE_PORT}
|
||||||
|
|
||||||
|
@ -13,6 +13,11 @@ LOADER_NET_SUPPORT?= yes
|
|||||||
LOADER_NFS_SUPPORT?= yes
|
LOADER_NFS_SUPPORT?= yes
|
||||||
LOADER_TFTP_SUPPORT?= yes
|
LOADER_TFTP_SUPPORT?= yes
|
||||||
|
|
||||||
|
LOADER_CD9660_SUPPORT?= no
|
||||||
|
LOADER_EXT2FS_SUPPORT?= no
|
||||||
|
LOADER_MSDOS_SUPPORT?= no
|
||||||
|
LOADER_UFS_SUPPORT?= yes
|
||||||
|
|
||||||
# architecture-specific loader code
|
# architecture-specific loader code
|
||||||
SRCS= main.c conf.c vers.c chain.c
|
SRCS= main.c conf.c vers.c chain.c
|
||||||
|
|
||||||
@ -28,13 +33,6 @@ CFLAGS+= -DLOADER_ZFS_SUPPORT
|
|||||||
LIBZFSBOOT= ${.OBJDIR}/../../zfs/libzfsboot.a
|
LIBZFSBOOT= ${.OBJDIR}/../../zfs/libzfsboot.a
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if defined(LOADER_TFTP_SUPPORT)
|
|
||||||
CFLAGS+= -DLOADER_TFTP_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if defined(LOADER_NFS_SUPPORT)
|
|
||||||
CFLAGS+= -DLOADER_NFS_SUPPORT
|
|
||||||
.endif
|
|
||||||
|
|
||||||
# Include bcache code.
|
# Include bcache code.
|
||||||
HAVE_BCACHE= yes
|
HAVE_BCACHE= yes
|
||||||
|
|
||||||
@ -42,16 +40,7 @@ HAVE_BCACHE= yes
|
|||||||
HAVE_PNP= yes
|
HAVE_PNP= yes
|
||||||
HAVE_ISABUS= yes
|
HAVE_ISABUS= yes
|
||||||
|
|
||||||
.if defined(LOADER_BZIP2_SUPPORT)
|
.if ${LOADER_GELI_SUPPORT:Uyes} == "yes"
|
||||||
CFLAGS+= -DLOADER_BZIP2_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if !defined(LOADER_NO_GZIP_SUPPORT)
|
|
||||||
CFLAGS+= -DLOADER_GZIP_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if defined(LOADER_NANDFS_SUPPORT)
|
|
||||||
CFLAGS+= -DLOADER_NANDFS_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if !defined(LOADER_NO_GELI_SUPPORT)
|
|
||||||
CFLAGS+= -DLOADER_GELI_SUPPORT
|
CFLAGS+= -DLOADER_GELI_SUPPORT
|
||||||
CFLAGS+= -I${.CURDIR}/../../geli
|
CFLAGS+= -I${.CURDIR}/../../geli
|
||||||
LIBGELIBOOT= ${.OBJDIR}/../../geli/libgeliboot.a
|
LIBGELIBOOT= ${.OBJDIR}/../../geli/libgeliboot.a
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
|
LOADER_GELI_SUPPORT=no
|
||||||
|
|
||||||
.include "../Makefile.inc"
|
.include "../Makefile.inc"
|
||||||
|
|
||||||
.PATH: ${.CURDIR}/../boot2 ${.CURDIR}/../common \
|
.PATH: ${.CURDIR}/../boot2 ${.CURDIR}/../common \
|
||||||
|
@ -28,22 +28,12 @@ SRCS+= load_elf64.c reloc_elf64.c
|
|||||||
SRCS+= load_elf32.c reloc_elf32.c
|
SRCS+= load_elf32.c reloc_elf32.c
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if defined(LOADER_NET_SUPPORT)
|
.if ${LOADER_DISK_SUPPORT:Uyes} == "yes"
|
||||||
SRCS+= dev_net.c
|
SRCS+= disk.c part.c
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if !defined(LOADER_NO_DISK_SUPPORT)
|
.if ${LOADER_NET_SUPPORT:Uno} == "yes"
|
||||||
SRCS+= disk.c part.c
|
SRCS+= dev_net.c
|
||||||
CFLAGS+= -DLOADER_DISK_SUPPORT
|
|
||||||
.if !defined(LOADER_NO_GPT_SUPPORT)
|
|
||||||
CFLAGS+= -DLOADER_GPT_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if !defined(LOADER_NO_MBR_SUPPORT)
|
|
||||||
CFLAGS+= -DLOADER_MBR_SUPPORT
|
|
||||||
.endif
|
|
||||||
.endif
|
|
||||||
.if !defined(LOADER_NO_GELI_SUPPORT)
|
|
||||||
CFLAGS+= -DLOADER_GELI_SUPPORT
|
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if defined(HAVE_BCACHE)
|
.if defined(HAVE_BCACHE)
|
||||||
|
@ -59,14 +59,12 @@ SRCS+= altera_jtag_uart.c \
|
|||||||
# Since we don't have a backward compatibility issue, default to this on BERI.
|
# Since we don't have a backward compatibility issue, default to this on BERI.
|
||||||
CFLAGS+= -DBOOT_PROMPT_123
|
CFLAGS+= -DBOOT_PROMPT_123
|
||||||
|
|
||||||
CFLAGS+= -DLOADER_DISK_SUPPORT
|
LOADER_MSDOS_SUPPORT?= yes
|
||||||
CFLAGS+= -DLOADER_UFS_SUPPORT
|
LOADER_UFS_SUPPORT?= yes
|
||||||
CFLAGS+= -DLOADER_GZIP_SUPPORT
|
LOADER_CD9660_SUPPORT?= no
|
||||||
CFLAGS+= -DLOADER_BZIP2_SUPPORT
|
LOADER_EXT2FS_SUPPORT?= no
|
||||||
|
LOADER_GZIP_SUPPORT?= yes
|
||||||
#CFLAGS+= -DLOADER_NET_SUPPORT
|
LOADER_BZIP2_SUPPORT?= yes
|
||||||
#CFLAGS+= -DLOADER_NFS_SUPPORT
|
|
||||||
#CFLAGS+= -DLOADER_TFTP_SUPPORT
|
|
||||||
|
|
||||||
# Always add MI sources
|
# Always add MI sources
|
||||||
.include "../../../loader.mk"
|
.include "../../../loader.mk"
|
||||||
|
@ -15,64 +15,17 @@ UBLDR_LOADADDR?= 0xffffffff80800000
|
|||||||
# Architecture-specific loader code
|
# Architecture-specific loader code
|
||||||
SRCS= start.S conf.c vers.c
|
SRCS= start.S conf.c vers.c
|
||||||
|
|
||||||
.if !defined(LOADER_NO_DISK_SUPPORT)
|
|
||||||
LOADER_DISK_SUPPORT?= yes
|
|
||||||
.else
|
|
||||||
LOADER_DISK_SUPPORT= no
|
|
||||||
.endif
|
|
||||||
LOADER_MSDOS_SUPPORT?= yes
|
|
||||||
LOADER_UFS_SUPPORT?= yes
|
|
||||||
LOADER_CD9660_SUPPORT?= no
|
LOADER_CD9660_SUPPORT?= no
|
||||||
LOADER_EXT2FS_SUPPORT?= no
|
LOADER_EXT2FS_SUPPORT?= no
|
||||||
.if ${MK_NAND} != "no"
|
LOADER_MSDOS_SUPPORT?= yes
|
||||||
LOADER_NANDFS_SUPPORT?= yes
|
LOADER_UFS_SUPPORT?= yes
|
||||||
.else
|
|
||||||
LOADER_NANDFS_SUPPORT?= no
|
|
||||||
.endif
|
|
||||||
LOADER_NET_SUPPORT?= yes
|
LOADER_NET_SUPPORT?= yes
|
||||||
LOADER_NFS_SUPPORT?= yes
|
LOADER_NFS_SUPPORT?= yes
|
||||||
LOADER_TFTP_SUPPORT?= no
|
LOADER_TFTP_SUPPORT?= no
|
||||||
LOADER_GZIP_SUPPORT?= no
|
LOADER_GZIP_SUPPORT?= no
|
||||||
LOADER_BZIP2_SUPPORT?= no
|
LOADER_BZIP2_SUPPORT?= no
|
||||||
.if ${MK_FDT} != "no"
|
LOADER_FDT_SUPPORT= ${MK_FDT}
|
||||||
LOADER_FDT_SUPPORT= yes
|
|
||||||
.else
|
|
||||||
LOADER_FDT_SUPPORT= no
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if ${LOADER_DISK_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_DISK_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_MSDOS_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_MSDOS_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_UFS_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_UFS_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_CD9660_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_CD9660_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_EXT2FS_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_EXT2FS_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_NANDFS_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_NANDFS_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_GZIP_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_GZIP_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_BZIP2_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_BZIP2_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_NET_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_NET_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_NFS_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_NFS_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_TFTP_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_TFTP_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_FDT_SUPPORT} == "yes"
|
.if ${LOADER_FDT_SUPPORT} == "yes"
|
||||||
CFLAGS+= -I${.CURDIR}/../../fdt
|
CFLAGS+= -I${.CURDIR}/../../fdt
|
||||||
CFLAGS+= -I${.OBJDIR}/../../fdt
|
CFLAGS+= -I${.OBJDIR}/../../fdt
|
||||||
|
@ -14,10 +14,10 @@ SRCS= conf.c metadata.c vers.c main.c ppc64_elf_freebsd.c
|
|||||||
SRCS+= host_syscall.S hostcons.c hostdisk.c kerneltramp.S kbootfdt.c
|
SRCS+= host_syscall.S hostcons.c hostdisk.c kerneltramp.S kbootfdt.c
|
||||||
SRCS+= ucmpdi2.c
|
SRCS+= ucmpdi2.c
|
||||||
|
|
||||||
LOADER_DISK_SUPPORT?= yes
|
|
||||||
LOADER_UFS_SUPPORT?= yes
|
|
||||||
LOADER_CD9660_SUPPORT?= yes
|
LOADER_CD9660_SUPPORT?= yes
|
||||||
|
LOADER_MSDOS_SUPPORT?= no
|
||||||
LOADER_EXT2FS_SUPPORT?= yes
|
LOADER_EXT2FS_SUPPORT?= yes
|
||||||
|
LOADER_UFS_SUPPORT?= yes
|
||||||
LOADER_NET_SUPPORT?= yes
|
LOADER_NET_SUPPORT?= yes
|
||||||
LOADER_NFS_SUPPORT?= yes
|
LOADER_NFS_SUPPORT?= yes
|
||||||
LOADER_TFTP_SUPPORT?= no
|
LOADER_TFTP_SUPPORT?= no
|
||||||
@ -25,33 +25,6 @@ LOADER_GZIP_SUPPORT?= yes
|
|||||||
LOADER_FDT_SUPPORT= yes
|
LOADER_FDT_SUPPORT= yes
|
||||||
LOADER_BZIP2_SUPPORT?= no
|
LOADER_BZIP2_SUPPORT?= no
|
||||||
|
|
||||||
.if ${LOADER_DISK_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_DISK_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_UFS_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_UFS_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_CD9660_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_CD9660_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_EXT2FS_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_EXT2FS_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_GZIP_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_GZIP_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_BZIP2_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_BZIP2_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_NET_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_NET_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_NFS_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_NFS_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_TFTP_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_TFTP_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_FDT_SUPPORT} == "yes"
|
.if ${LOADER_FDT_SUPPORT} == "yes"
|
||||||
CFLAGS+= -I${.CURDIR}/../../fdt
|
CFLAGS+= -I${.CURDIR}/../../fdt
|
||||||
CFLAGS+= -I${.OBJDIR}/../../fdt
|
CFLAGS+= -I${.OBJDIR}/../../fdt
|
||||||
|
@ -13,10 +13,10 @@ INSTALLFLAGS= -b
|
|||||||
SRCS= conf.c metadata.c vers.c start.c
|
SRCS= conf.c metadata.c vers.c start.c
|
||||||
SRCS+= ucmpdi2.c
|
SRCS+= ucmpdi2.c
|
||||||
|
|
||||||
LOADER_DISK_SUPPORT?= yes
|
|
||||||
LOADER_UFS_SUPPORT?= yes
|
|
||||||
LOADER_CD9660_SUPPORT?= yes
|
LOADER_CD9660_SUPPORT?= yes
|
||||||
LOADER_EXT2FS_SUPPORT?= no
|
LOADER_EXT2FS_SUPPORT?= no
|
||||||
|
LOADER_MSDOS_SUPPORT?= no
|
||||||
|
LOADER_UFS_SUPPORT?= yes
|
||||||
LOADER_NET_SUPPORT?= yes
|
LOADER_NET_SUPPORT?= yes
|
||||||
LOADER_NFS_SUPPORT?= yes
|
LOADER_NFS_SUPPORT?= yes
|
||||||
LOADER_TFTP_SUPPORT?= no
|
LOADER_TFTP_SUPPORT?= no
|
||||||
@ -24,33 +24,6 @@ LOADER_GZIP_SUPPORT?= yes
|
|||||||
LOADER_BZIP2_SUPPORT?= no
|
LOADER_BZIP2_SUPPORT?= no
|
||||||
LOADER_FDT_SUPPORT?= yes
|
LOADER_FDT_SUPPORT?= yes
|
||||||
|
|
||||||
.if ${LOADER_DISK_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_DISK_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_UFS_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_UFS_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_CD9660_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_CD9660_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_EXT2FS_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_EXT2FS_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_GZIP_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_GZIP_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_BZIP2_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_BZIP2_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_NET_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_NET_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_NFS_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_NFS_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_TFTP_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_TFTP_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_FDT_SUPPORT} == "yes"
|
.if ${LOADER_FDT_SUPPORT} == "yes"
|
||||||
SRCS+= ofwfdt.c
|
SRCS+= ofwfdt.c
|
||||||
CFLAGS+= -I${.CURDIR}/../../fdt
|
CFLAGS+= -I${.CURDIR}/../../fdt
|
||||||
|
@ -15,7 +15,6 @@ SRCS+= lv1call.S ps3cons.c font.h ps3mmu.c ps3net.c ps3repo.c \
|
|||||||
ps3stor.c ps3disk.c ps3cdrom.c
|
ps3stor.c ps3disk.c ps3cdrom.c
|
||||||
SRCS+= ucmpdi2.c
|
SRCS+= ucmpdi2.c
|
||||||
|
|
||||||
LOADER_DISK_SUPPORT?= yes
|
|
||||||
LOADER_UFS_SUPPORT?= yes
|
LOADER_UFS_SUPPORT?= yes
|
||||||
LOADER_CD9660_SUPPORT?= yes
|
LOADER_CD9660_SUPPORT?= yes
|
||||||
LOADER_EXT2FS_SUPPORT?= yes
|
LOADER_EXT2FS_SUPPORT?= yes
|
||||||
@ -26,33 +25,6 @@ LOADER_GZIP_SUPPORT?= yes
|
|||||||
LOADER_FDT_SUPPORT?= no
|
LOADER_FDT_SUPPORT?= no
|
||||||
LOADER_BZIP2_SUPPORT?= no
|
LOADER_BZIP2_SUPPORT?= no
|
||||||
|
|
||||||
.if ${LOADER_DISK_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_DISK_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_UFS_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_UFS_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_CD9660_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_CD9660_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_EXT2FS_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_EXT2FS_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_GZIP_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_GZIP_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_BZIP2_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_BZIP2_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_NET_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_NET_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_NFS_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_NFS_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_TFTP_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_TFTP_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_FDT_SUPPORT} == "yes"
|
.if ${LOADER_FDT_SUPPORT} == "yes"
|
||||||
CFLAGS+= -I${.CURDIR}/../../fdt
|
CFLAGS+= -I${.CURDIR}/../../fdt
|
||||||
CFLAGS+= -I${.OBJDIR}/../../fdt
|
CFLAGS+= -I${.OBJDIR}/../../fdt
|
||||||
@ -60,7 +32,6 @@ CFLAGS+= -DLOADER_FDT_SUPPORT
|
|||||||
LIBFDT= ${.OBJDIR}/../../fdt/libfdt.a
|
LIBFDT= ${.OBJDIR}/../../fdt/libfdt.a
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
|
||||||
CFLAGS+= -mcpu=powerpc64
|
CFLAGS+= -mcpu=powerpc64
|
||||||
|
|
||||||
# Always add MI sources
|
# Always add MI sources
|
||||||
|
@ -12,11 +12,6 @@ MAN=
|
|||||||
SRCS= start.S conf.c vers.c
|
SRCS= start.S conf.c vers.c
|
||||||
SRCS+= ucmpdi2.c
|
SRCS+= ucmpdi2.c
|
||||||
|
|
||||||
.if !defined(LOADER_NO_DISK_SUPPORT)
|
|
||||||
LOADER_DISK_SUPPORT?= yes
|
|
||||||
.else
|
|
||||||
LOADER_DISK_SUPPORT= no
|
|
||||||
.endif
|
|
||||||
LOADER_UFS_SUPPORT?= yes
|
LOADER_UFS_SUPPORT?= yes
|
||||||
LOADER_CD9660_SUPPORT?= no
|
LOADER_CD9660_SUPPORT?= no
|
||||||
LOADER_EXT2FS_SUPPORT?= no
|
LOADER_EXT2FS_SUPPORT?= no
|
||||||
@ -25,39 +20,8 @@ LOADER_NFS_SUPPORT?= yes
|
|||||||
LOADER_TFTP_SUPPORT?= no
|
LOADER_TFTP_SUPPORT?= no
|
||||||
LOADER_GZIP_SUPPORT?= no
|
LOADER_GZIP_SUPPORT?= no
|
||||||
LOADER_BZIP2_SUPPORT?= no
|
LOADER_BZIP2_SUPPORT?= no
|
||||||
.if ${MK_FDT} != "no"
|
LOADER_FDT_SUPPORT= ${MK_FDT}
|
||||||
LOADER_FDT_SUPPORT= yes
|
|
||||||
.else
|
|
||||||
LOADER_FDT_SUPPORT= no
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if ${LOADER_DISK_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_DISK_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_UFS_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_UFS_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_CD9660_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_CD9660_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_EXT2FS_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_EXT2FS_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_GZIP_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_GZIP_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_BZIP2_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_BZIP2_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_NET_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_NET_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_NFS_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_NFS_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_TFTP_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_TFTP_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_FDT_SUPPORT} == "yes"
|
.if ${LOADER_FDT_SUPPORT} == "yes"
|
||||||
CFLAGS+= -I${.CURDIR}/../../fdt
|
CFLAGS+= -I${.CURDIR}/../../fdt
|
||||||
CFLAGS+= -I${.OBJDIR}/../../fdt
|
CFLAGS+= -I${.OBJDIR}/../../fdt
|
||||||
|
@ -15,6 +15,8 @@ SRCS= locore.S main.c metadata.c vers.c
|
|||||||
LOADER_DISK_SUPPORT?= yes
|
LOADER_DISK_SUPPORT?= yes
|
||||||
LOADER_UFS_SUPPORT?= yes
|
LOADER_UFS_SUPPORT?= yes
|
||||||
LOADER_CD9660_SUPPORT?= yes
|
LOADER_CD9660_SUPPORT?= yes
|
||||||
|
LOADER_EXT2FS_SUPPORT?= no
|
||||||
|
LOADER_MSDOS_SUPPORT?= no
|
||||||
LOADER_ZFS_SUPPORT?= no
|
LOADER_ZFS_SUPPORT?= no
|
||||||
LOADER_NET_SUPPORT?= yes
|
LOADER_NET_SUPPORT?= yes
|
||||||
LOADER_NFS_SUPPORT?= yes
|
LOADER_NFS_SUPPORT?= yes
|
||||||
@ -26,36 +28,12 @@ LOADER_DEBUG?= no
|
|||||||
.if ${LOADER_DEBUG} == "yes"
|
.if ${LOADER_DEBUG} == "yes"
|
||||||
CFLAGS+= -DLOADER_DEBUG
|
CFLAGS+= -DLOADER_DEBUG
|
||||||
.endif
|
.endif
|
||||||
.if ${LOADER_DISK_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_DISK_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_UFS_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_UFS_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_CD9660_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_CD9660_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_ZFS_SUPPORT} == "yes"
|
.if ${LOADER_ZFS_SUPPORT} == "yes"
|
||||||
CFLAGS+= -DLOADER_ZFS_SUPPORT
|
CFLAGS+= -DLOADER_ZFS_SUPPORT
|
||||||
CFLAGS+= -I${.CURDIR}/../../zfs
|
CFLAGS+= -I${.CURDIR}/../../zfs
|
||||||
CFLAGS+= -I${.CURDIR}/../../../cddl/boot/zfs
|
CFLAGS+= -I${.CURDIR}/../../../cddl/boot/zfs
|
||||||
LIBZFSBOOT= ${.OBJDIR}/../../zfs/libzfsboot.a
|
LIBZFSBOOT= ${.OBJDIR}/../../zfs/libzfsboot.a
|
||||||
.endif
|
.endif
|
||||||
.if ${LOADER_GZIP_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_GZIP_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_BZIP2_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_BZIP2_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_NET_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_NET_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_NFS_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_NFS_SUPPORT
|
|
||||||
.endif
|
|
||||||
.if ${LOADER_TFTP_SUPPORT} == "yes"
|
|
||||||
CFLAGS+= -DLOADER_TFTP_SUPPORT
|
|
||||||
.endif
|
|
||||||
|
|
||||||
# Always add MI sources
|
# Always add MI sources
|
||||||
.include "../../loader.mk"
|
.include "../../loader.mk"
|
||||||
|
@ -13,11 +13,6 @@ SRCS+= module.c net.c reboot.c time.c
|
|||||||
|
|
||||||
CFLAGS+= -ffreestanding -msoft-float
|
CFLAGS+= -ffreestanding -msoft-float
|
||||||
|
|
||||||
.if !defined(LOADER_NO_DISK_SUPPORT)
|
|
||||||
SRCS+= disk.c
|
|
||||||
CFLAGS+= -DLOADER_DISK_SUPPORT
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if ${MK_FDT} != "no"
|
.if ${MK_FDT} != "no"
|
||||||
LOADER_FDT_SUPPORT= yes
|
LOADER_FDT_SUPPORT= yes
|
||||||
.else
|
.else
|
||||||
|
@ -5,6 +5,11 @@ MAN=
|
|||||||
.include <src.opts.mk>
|
.include <src.opts.mk>
|
||||||
MK_SSP= no
|
MK_SSP= no
|
||||||
|
|
||||||
|
LOADER_MSDOS_SUPPORT?= yes
|
||||||
|
LOADER_UFS_SUPPORT?= yes
|
||||||
|
LOADER_CD9660_SUPPORT?= no
|
||||||
|
LOADER_EXT2FS_SUPPORT?= no
|
||||||
|
|
||||||
SHLIB_NAME= userboot.so
|
SHLIB_NAME= userboot.so
|
||||||
MK_CTF= no
|
MK_CTF= no
|
||||||
STRIP=
|
STRIP=
|
||||||
|
Loading…
Reference in New Issue
Block a user