Makefile revision 199767f8919635c4928607450d9e0abb932109ce
# $FreeBSD$
INSTALLFLAGS= -b
WARNS?= 1
# Address at which ubldr will be loaded.
# This varies for different boards and SOCs.
UBLDR_LOADADDR?= 0x1000000
# Architecture-specific loader code
.else
.if ${MK_NAND} != "no"
.else
.if ${MK_FDT} != "no"
.else
.if ${LOADER_DISK_SUPPORT} == "yes"
.if ${LOADER_UFS_SUPPORT} == "yes"
.if ${LOADER_CD9660_SUPPORT} == "yes"
.if ${LOADER_EXT2FS_SUPPORT} == "yes"
.if ${LOADER_NANDFS_SUPPORT} == "yes"
.if ${LOADER_GZIP_SUPPORT} == "yes"
.if ${LOADER_BZIP2_SUPPORT} == "yes"
.if ${LOADER_NET_SUPPORT} == "yes"
.if ${LOADER_NFS_SUPPORT} == "yes"
.if ${LOADER_TFTP_SUPPORT} == "yes"
.if ${LOADER_FDT_SUPPORT} == "yes"
.if ${MK_FORTH} != "no"
# Enable BootForth
# Always add MI sources
.include "${.CURDIR}/../../common/Makefile.inc"
CFLAGS+= -I.
# Pull in common loader code
.include "${.CURDIR}/../../uboot/common/Makefile.inc"
# U-Boot standalone support library
# where to get libstand from
# clang doesn't understand %D as a specifier to printf
echo "UBLDR_LOADADDR = ${UBLDR_LOADADDR};" >${.TARGET}
echo "UBLDR_LOADADDR = 0;" >${.TARGET}
.if !defined(LOADER_ONLY)
.include "${.CURDIR}/../../forth/Makefile.inc"
# Install loader.rc.
# Put sample menu.rc on disk but don't enable it by default.