6780e684d4
libfdt highlights since 1.4.3: - fdt_property_placeholder added to create a property without specifying its value at creation time - stringlist helper functions added to libfdt - Improved overlay support - Various internal cleanup Also switch stand/fdt over to using libfdt for overlay support with this update. Our current overlay implementation works only for limited use cases with overlays generated only by some specific versions of our dtc(1). Swap it out for the libfdt implementation, which supports any properly generated overlay being applied to a properly generated base. This will be followed up fairly soon with an update to dtc(1) in tree to properly generate overlays. MFC note: the <stdlib.h> include this update introduces in libfdt_env.h is apparently not necessary in the context we use this in. It's not immediately clear to me the motivation for it being introduced, but it came in with overlay support. I've left it in for the sake of accuracy and because it's not harmful here on HEAD, but MFC'ing this to stable/11 will require wrapping the #include in an `#ifndef _STANDALONE` block or else it will cause build failures. Tested on: Banana Pi-M3 (ARMv7) Tested on: Pine64 (aarch64) Tested on: PowerPC [nwhitehorn] Reviewed by: manu, nwhitehorn MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D13893
23 lines
432 B
Makefile
23 lines
432 B
Makefile
# $FreeBSD$
|
|
|
|
.include <bsd.init.mk>
|
|
|
|
.PATH: ${SYSDIR}/contrib/libfdt/
|
|
|
|
LIB= fdt
|
|
INTERNALLIB=
|
|
|
|
# Vendor sources of libfdt.
|
|
SRCS+= fdt.c fdt_ro.c fdt_wip.c fdt_sw.c fdt_rw.c fdt_strerror.c \
|
|
fdt_empty_tree.c fdt_addresses.c fdt_overlay.c
|
|
|
|
# Loader's fdt commands extension sources.
|
|
SRCS+= fdt_loader_cmd.c
|
|
|
|
CFLAGS+= -I${SYSDIR}/contrib/libfdt/ -I${LDRSRC}
|
|
|
|
CFLAGS+= -Wformat -Wall
|
|
|
|
.include <bsd.stand.mk>
|
|
.include <bsd.lib.mk>
|