
fdt_region APIs are not part of libfdt. They are U-Boot extension for the verified boot. Split the declarations related to fdt_region out of <fdt_region.h>. This allows <linux/libfdt.h> to become a simple wrapper file, like Linux does.
Signed-off-by: Masahiro Yamada masahiroy@kernel.org ---
I am resending this after two years since v1.
My previous attempt sank by this comment: http://patchwork.ozlabs.org/project/uboot/patch/1521623017-29312-6-git-send-...
Two years have passed, but I still do not see such code in upstream DTC.
Changes in v2: - Rebase
common/fdt_region.c | 1 + common/image-fit-sig.c | 1 + include/fdt_region.h | 304 +++++++++++++++++++++++++++++++++++++++++ include/linux/libfdt.h | 299 ---------------------------------------- tools/fdtgrep.c | 1 + tools/image-host.c | 1 + 6 files changed, 308 insertions(+), 299 deletions(-) create mode 100644 include/fdt_region.h
Applied to u-boot-dm, thanks!