Changeset View
Changeset View
Standalone View
Standalone View
stand/uboot/Makefile
Show All 9 Lines | |||||
LOADER_GZIP_SUPPORT?= no | LOADER_GZIP_SUPPORT?= no | ||||
LOADER_BZIP2_SUPPORT?= no | LOADER_BZIP2_SUPPORT?= no | ||||
LOADER_DISK_SUPPORT?= yes | LOADER_DISK_SUPPORT?= yes | ||||
.include <bsd.init.mk> | .include <bsd.init.mk> | ||||
.include "${.CURDIR}/arch/${MACHINE_CPUARCH}/Makefile.inc" | .include "${.CURDIR}/arch/${MACHINE_CPUARCH}/Makefile.inc" | ||||
.if ${MK_PIE} == "yes" | LOADER_UBLDR_BIN?= yes | ||||
.if ${LOADER_UBLDR_BIN} != "no" | |||||
FILES+= ubldr ubldr.bin | FILES+= ubldr ubldr.bin | ||||
OBJS+= ${SRCS:N*.h:R:S/$/.o/g} | |||||
.else | .else | ||||
PROG= ubldr | PROG= ubldr | ||||
.endif | .endif | ||||
NEWVERSWHAT= "U-Boot loader" ${MACHINE_ARCH} | NEWVERSWHAT= "U-Boot loader" ${MACHINE_ARCH} | ||||
BINDIR= /boot/uboot | BINDIR= /boot/uboot | ||||
INSTALLFLAGS= -b | INSTALLFLAGS= -b | ||||
WARNS?= 1 | WARNS?= 1 | ||||
Show All 39 Lines | |||||
CFLAGS+= -I${LDRSRC} | CFLAGS+= -I${LDRSRC} | ||||
# libfdt headers | # libfdt headers | ||||
CFLAGS+= -I${FDTSRC} | CFLAGS+= -I${FDTSRC} | ||||
.ifdef(BOOT_DISK_DEBUG) | .ifdef(BOOT_DISK_DEBUG) | ||||
# Make the disk code more talkative | # Make the disk code more talkative | ||||
CFLAGS+= -DDISK_DEBUG | CFLAGS+= -DDISK_DEBUG | ||||
.endif | |||||
.if ${LOADER_UBLDR_BIN} != "no" | |||||
OBJS+= ${SRCS:N*.h:R:S/$/.o/g} | |||||
ubldr ubldr.bin ubldr.pie: ${OBJS} | |||||
.endif | .endif | ||||
DPADD= ${LDR_INTERP} ${LIBFDT} ${LIBSA} | DPADD= ${LDR_INTERP} ${LIBFDT} ${LIBSA} | ||||
LDADD= ${LDR_INTERP} ${LIBFDT} ${LIBSA} | LDADD= ${LDR_INTERP} ${LIBFDT} ${LIBSA} | ||||
.include <bsd.prog.mk> | .include <bsd.prog.mk> |