freebsd-dev/stand/uboot.mk
Justin Hibbits d3e1307bf5 Unify metadata load files for arm, mips, powerpc, sparc64
Summary:
All metadata.c files are very similar, with only trivial changes.  Unify them
into a single common file, with minor special-casing where needed.

Reviewed By: imp
Differential Revision: https://reviews.freebsd.org/D13978
2018-02-13 03:44:50 +00:00

22 lines
392 B
Makefile

# $FreeBSD$
SRCS+= main.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 ${MACHINE_CPUARCH} == "arm"
SRCS+= metadata.c
.endif
.include "${BOOTSRC}/fdt.mk"
.if ${MK_FDT} == "yes"
LIBUBOOT_FDT= ${BOOTOBJ}/uboot/fdt/libuboot_fdt.a
.endif