aboutsummaryrefslogtreecommitdiff
path: root/drivers/of/Makefile
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2014-04-02 15:10:14 -0500
committerMark Brown <broonie@linaro.org>2014-07-24 21:08:48 +0100
commita0e28c9fb2fbb2234dd0cb0eeb9d3f63160d8a53 (patch)
tree821a93c7b1d29120c85b241179fdc622cde78f7e /drivers/of/Makefile
parentd6c2d4f195ac6f41838651c8b04ff0788c0f8adb (diff)
of/fdt: Convert FDT functions to use libfdt
The kernel FDT functions predate libfdt and are much more limited in functionality. Also, the kernel functions and libfdt functions are not compatible with each other because they have different definitions of node offsets. To avoid this incompatibility and in preparation to add more FDT parsing functions which will need libfdt, let's first convert the existing code to use libfdt. The FDT unflattening, top-level FDT scanning, and property retrieval functions are converted to use libfdt. The scanning code should be re-worked to be more efficient and understandable by using libfdt to find nodes directly by path or compatible strings. Signed-off-by: Rob Herring <robh@kernel.org> Tested-by: Michal Simek <michal.simek@xilinx.com> Tested-by: Grant Likely <grant.likely@linaro.org> Tested-by: Stephen Chivers <schivers@csc.com> (cherry picked from commit e6a6928c3ea1d0195ed75a091e345696b916c09b) Signed-off-by: Mark Brown <broonie@linaro.org> Conflicts: drivers/of/fdt.c
Diffstat (limited to 'drivers/of/Makefile')
-rw-r--r--drivers/of/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/of/Makefile b/drivers/of/Makefile
index 8098b4dd357f..2aaa7b90fc14 100644
--- a/drivers/of/Makefile
+++ b/drivers/of/Makefile
@@ -12,3 +12,5 @@ obj-$(CONFIG_OF_PCI) += of_pci.o
obj-$(CONFIG_OF_PCI_IRQ) += of_pci_irq.o
obj-$(CONFIG_OF_MTD) += of_mtd.o
obj-$(CONFIG_OF_RESERVED_MEM) += of_reserved_mem.o
+
+CFLAGS_fdt.o = -I$(src)/../../scripts/dtc/libfdt