diff options
author | Mark Salter | 2014-02-04 10:11:10 -0600 |
---|---|---|
committer | Mark Brown | 2014-08-12 07:22:45 -0500 |
commit | a7d43c3d6f103c145437d75265c1e91918d205c3 (patch) | |
tree | b92f0f7a5b534c4c9a923a01c3b07f8e22a6ff8e | |
parent | 0cbd5ff23b51aed014bd0027517fcf9833f13eae (diff) | |
download | kernel-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/Makefile | 3 | ||||
-rw-r--r-- | lib/fdt_empty_tree.c | 2 |
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 | ||
148 | obj-$(CONFIG_STMP_DEVICE) += stmp_device.o | 148 | obj-$(CONFIG_STMP_DEVICE) += stmp_device.o |
149 | 149 | ||
150 | libfdt_files = fdt.o fdt_ro.o fdt_wip.o fdt_rw.o fdt_sw.o fdt_strerror.o | 150 | libfdt_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)) |
153 | lib-$(CONFIG_LIBFDT) += $(libfdt_files) | 154 | lib-$(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" | ||