libfdt: change fdt.h to a wrapper of scripts/dtc/libfdt/*
[oweals/u-boot.git] / lib / libfdt / Makefile
index 6fe79e0b06e9c422b6bfcfffd8fdd968872960dc..6ef8290f4e09a0cda981db10427084dcd6d4be9a 100644 (file)
@@ -5,8 +5,15 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-COBJS-libfdt += fdt.o fdt_ro.o fdt_rw.o fdt_strerror.o fdt_sw.o fdt_wip.o \
-       fdt_empty_tree.o fdt_addresses.o
+obj-y += \
+       fdt.o \
+       fdt_ro.o \
+       fdt_rw.o \
+       fdt_strerror.o \
+       fdt_sw.o \
+       fdt_wip.o \
+       fdt_empty_tree.o \
+       fdt_addresses.o \
+       fdt_region.o
 
-obj-$(CONFIG_OF_LIBFDT) += $(COBJS-libfdt)
-obj-$(CONFIG_FIT) += $(COBJS-libfdt)
+obj-$(CONFIG_OF_LIBFDT_OVERLAY) += fdt_overlay.o