Changeset View
Changeset View
Standalone View
Standalone View
sys/boot/arm/uboot/Makefile
Show All 32 Lines | |||||
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" | .if ${MK_FDT} != "no" | ||||
LOADER_FDT_SUPPORT= yes | LOADER_FDT_SUPPORT= yes | ||||
.else | .else | ||||
LOADER_FDT_SUPPORT= no | LOADER_FDT_SUPPORT= no | ||||
.endif | .endif | ||||
.if ${MK_ZFS} != "no" | |||||
LOADER_ZFS_SUPPORT= yes | |||||
.else | |||||
LOADER_ZFS_SUPPORT= no | |||||
.endif | |||||
.if ${LOADER_DISK_SUPPORT} == "yes" | .if ${LOADER_DISK_SUPPORT} == "yes" | ||||
CFLAGS+= -DLOADER_DISK_SUPPORT | CFLAGS+= -DLOADER_DISK_SUPPORT | ||||
.endif | .endif | ||||
.if ${LOADER_UFS_SUPPORT} == "yes" | .if ${LOADER_UFS_SUPPORT} == "yes" | ||||
CFLAGS+= -DLOADER_UFS_SUPPORT | CFLAGS+= -DLOADER_UFS_SUPPORT | ||||
.endif | .endif | ||||
.if ${LOADER_CD9660_SUPPORT} == "yes" | .if ${LOADER_CD9660_SUPPORT} == "yes" | ||||
Show All 23 Lines | |||||
.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 | ||||
CFLAGS+= -DLOADER_FDT_SUPPORT | CFLAGS+= -DLOADER_FDT_SUPPORT | ||||
LIBUBOOT_FDT= ${.OBJDIR}/../../uboot/fdt/libuboot_fdt.a | LIBUBOOT_FDT= ${.OBJDIR}/../../uboot/fdt/libuboot_fdt.a | ||||
LIBFDT= ${.OBJDIR}/../../fdt/libfdt.a | LIBFDT= ${.OBJDIR}/../../fdt/libfdt.a | ||||
.endif | .endif | ||||
.if ${LOADER_ZFS_SUPPORT} == "yes" | |||||
CFLAGS+= -DLOADER_ZFS_SUPPORT | |||||
LIBZFSBOOT= ${.OBJDIR}/../../zfs/libzfsboot.a | |||||
CFLAGS+= -I${.CURDIR}/../../zfs | |||||
CFLAGS+= -I${.CURDIR}/../../../cddl/boot/zfs | |||||
.endif | |||||
CFLAGS+= -DNETIF_OPEN_CLOSE_ONCE | CFLAGS+= -DNETIF_OPEN_CLOSE_ONCE | ||||
.if ${MK_FORTH} != "no" | .if ${MK_FORTH} != "no" | ||||
# Enable BootForth | # Enable BootForth | ||||
BOOT_FORTH= yes | BOOT_FORTH= yes | ||||
CFLAGS+= -DBOOT_FORTH -I${.CURDIR}/../../ficl -I${.CURDIR}/../../ficl/arm | CFLAGS+= -DBOOT_FORTH -I${.CURDIR}/../../ficl -I${.CURDIR}/../../ficl/arm | ||||
LIBFICL= ${.OBJDIR}/../../ficl/libficl.a | LIBFICL= ${.OBJDIR}/../../ficl/libficl.a | ||||
.endif | .endif | ||||
Show All 21 Lines | |||||
CFLAGS+= -I${.OBJDIR}/../../uboot/lib | CFLAGS+= -I${.OBJDIR}/../../uboot/lib | ||||
# where to get libstand from | # where to get libstand from | ||||
CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/ | CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/ | ||||
# clang doesn't understand %D as a specifier to printf | # clang doesn't understand %D as a specifier to printf | ||||
NO_WERROR.clang= | NO_WERROR.clang= | ||||
DPADD= ${LIBFICL} ${LIBUBOOT} ${LIBFDT} ${LIBUBOOT_FDT} ${LIBSTAND} | DPADD= ${LIBFICL} ${LIBUBOOT} ${LIBFDT} ${LIBUBOOT_FDT} ${LIBZFSBOOT} ${LIBSTAND} | ||||
LDADD= ${LIBFICL} ${LIBUBOOT} ${LIBFDT} ${LIBUBOOT_FDT} -lstand | LDADD= ${LIBFICL} ${LIBUBOOT} ${LIBFDT} ${LIBUBOOT_FDT} ${LIBZFSBOOT} -lstand | ||||
OBJS+= ${SRCS:N*.h:R:S/$/.o/g} | OBJS+= ${SRCS:N*.h:R:S/$/.o/g} | ||||
vers.c: ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version | vers.c: ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version | ||||
sh ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version ${NEWVERSWHAT} | sh ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version ${NEWVERSWHAT} | ||||
loader.help: help.common help.uboot ${.CURDIR}/../../fdt/help.fdt | loader.help: help.common help.uboot ${.CURDIR}/../../fdt/help.fdt | ||||
cat ${.ALLSRC} | \ | cat ${.ALLSRC} | \ | ||||
Show All 33 Lines |