From 392c874409c1ece12354792b8dafa8bfd1a0bb9b Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sun, 22 Oct 2017 22:49:51 +0000 Subject: Move fdt and uboot defines into common uboot.mk. Sponsored by: Netflix --- sys/boot/uboot.mk | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 sys/boot/uboot.mk (limited to 'sys/boot/uboot.mk') 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 -- cgit v1.2.3