Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Mark Salter and committed by
Matt Fleming
adaf5687 e33655a3

+4 -1
+2 -1
lib/Makefile
··· 148 148 149 149 obj-$(CONFIG_STMP_DEVICE) += stmp_device.o 150 150 151 - libfdt_files = fdt.o fdt_ro.o fdt_wip.o fdt_rw.o fdt_sw.o fdt_strerror.o 151 + libfdt_files = fdt.o fdt_ro.o fdt_wip.o fdt_rw.o fdt_sw.o fdt_strerror.o \ 152 + fdt_empty_tree.o 152 153 $(foreach file, $(libfdt_files), \ 153 154 $(eval CFLAGS_$(file) = -I$(src)/../scripts/dtc/libfdt)) 154 155 lib-$(CONFIG_LIBFDT) += $(libfdt_files)
+2
lib/fdt_empty_tree.c
··· 1 + #include <linux/libfdt_env.h> 2 + #include "../scripts/dtc/libfdt/fdt_empty_tree.c"