diff options
Diffstat (limited to 'sys/boot/uboot.mk')
-rw-r--r-- | sys/boot/uboot.mk | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sys/boot/uboot.mk b/sys/boot/uboot.mk new file mode 100644 index 000000000000..d8871bb47456 --- /dev/null +++ b/sys/boot/uboot.mk @@ -0,0 +1,20 @@ +# $FreeBSD$ + +SRCS+= main.c metadata.c + +.PATH: ${UBOOTSRC}/common + +CFLAGS+= -I${UBOOTSRC}/common + +# U-Boot standalone support library +LIBUBOOT= ${BOOTOBJ}/uboot/lib/libuboot.a +CFLAGS+= -I${UBOOTSRC}/lib +CFLAGS+= -I${BOOTOBJ}/uboot/lib + +.if ${LOADER_FDT_SUPPORT} == "yes" +CFLAGS+= -I${FDTSRC} +CFLAGS+= -I${BOOTOBJ}/fdt +CFLAGS+= -DLOADER_FDT_SUPPORT +LIBUBOOT_FDT= ${BOOTOBJ}/uboot/fdt/libuboot_fdt.a +LIBFDT= ${BOOTOBJ}/fdt/libfdt.a +.endif |