aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Salter <msalter@redhat.com>2014-02-04 11:11:10 -0500
committerMark Brown <broonie@linaro.org>2014-07-24 21:08:48 +0100
commitfc40eed01c76797b6f71c982a782cef2d6ab48a6 (patch)
tree49ae2b75d4c1b8efed7281e81729d826bbb45b4a
parenta0e28c9fb2fbb2234dd0cb0eeb9d3f63160d8a53 (diff)
downloadlinux-linaro-stable-v3.10/topic/libfdt.tar.gz
lib: add fdt_empty_tree.cv3.10/topic/libfdt
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 c55a037..1dcad1b 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -139,7 +139,8 @@ obj-$(CONFIG_GENERIC_STRNLEN_USER) += strnlen_user.o
obj-$(CONFIG_STMP_DEVICE) += stmp_device.o
-libfdt_files = fdt.o fdt_ro.o fdt_wip.o fdt_rw.o fdt_sw.o fdt_strerror.o
+libfdt_files = fdt.o fdt_ro.o fdt_wip.o fdt_rw.o fdt_sw.o fdt_strerror.o \
+ fdt_empty_tree.o
$(foreach file, $(libfdt_files), \
$(eval CFLAGS_$(file) = -I$(src)/../scripts/dtc/libfdt))
lib-$(CONFIG_LIBFDT) += $(libfdt_files)
diff --git a/lib/fdt_empty_tree.c b/lib/fdt_empty_tree.c
new file mode 100644
index 0000000..5d30c58
--- /dev/null
+++ b/lib/fdt_empty_tree.c
@@ -0,0 +1,2 @@
+#include <linux/libfdt_env.h>
+#include "../scripts/dtc/libfdt/fdt_empty_tree.c"