aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Salter2014-02-04 10:11:10 -0600
committerMark Brown2014-08-12 07:22:45 -0500
commita7d43c3d6f103c145437d75265c1e91918d205c3 (patch)
treeb92f0f7a5b534c4c9a923a01c3b07f8e22a6ff8e
parent0cbd5ff23b51aed014bd0027517fcf9833f13eae (diff)
downloadkernel-video-a7d43c3d6f103c145437d75265c1e91918d205c3.tar.gz
kernel-video-a7d43c3d6f103c145437d75265c1e91918d205c3.tar.xz
kernel-video-a7d43c3d6f103c145437d75265c1e91918d205c3.zip
lib: add fdt_empty_tree.c
CONFIG_LIBFDT support does not include fdt_empty_tree.c which is needed by arm64 EFI stub. Add it to libfdt_files. Signed-off-by: Mark Salter <msalter@redhat.com> Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com> (cherry picked from commit adaf5687846c25613d58c0a2f5d9e024547cdbec) Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--lib/Makefile3
-rw-r--r--lib/fdt_empty_tree.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 48140e3ba73..befe5554a34 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -147,7 +147,8 @@ obj-$(CONFIG_GENERIC_NET_UTILS) += net_utils.o
147 147
148obj-$(CONFIG_STMP_DEVICE) += stmp_device.o 148obj-$(CONFIG_STMP_DEVICE) += stmp_device.o
149 149
150libfdt_files = fdt.o fdt_ro.o fdt_wip.o fdt_rw.o fdt_sw.o fdt_strerror.o 150libfdt_files = fdt.o fdt_ro.o fdt_wip.o fdt_rw.o fdt_sw.o fdt_strerror.o \
151 fdt_empty_tree.o
151$(foreach file, $(libfdt_files), \ 152$(foreach file, $(libfdt_files), \
152 $(eval CFLAGS_$(file) = -I$(src)/../scripts/dtc/libfdt)) 153 $(eval CFLAGS_$(file) = -I$(src)/../scripts/dtc/libfdt))
153lib-$(CONFIG_LIBFDT) += $(libfdt_files) 154lib-$(CONFIG_LIBFDT) += $(libfdt_files)
diff --git a/lib/fdt_empty_tree.c b/lib/fdt_empty_tree.c
new file mode 100644
index 00000000000..5d30c58150a
--- /dev/null
+++ b/lib/fdt_empty_tree.c
@@ -0,0 +1,2 @@
1#include <linux/libfdt_env.h>
2#include "../scripts/dtc/libfdt/fdt_empty_tree.c"