aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot/libfdt/Makefile.libfdt
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2007-12-10 14:28:39 +1100
committerPaul Mackerras <paulus@samba.org>2007-12-11 13:46:13 +1100
commit1cade99497c881a8c719df561d1bdc96831ff040 (patch)
treed90f0f9c667c5379f79244d117f4c95299180a05 /arch/powerpc/boot/libfdt/Makefile.libfdt
parent[POWERPC] EEH: Avoid a possible NULL pointer dereference (diff)
downloadlinux-dev-1cade99497c881a8c719df561d1bdc96831ff040.tar.xz
linux-dev-1cade99497c881a8c719df561d1bdc96831ff040.zip
[POWERPC] Merge libfdt upstream source
This incorporates a copy of dtc libfdt into the kernel source, in arch/powerpc/boot/libfdt. This only imports the upstream sources verbatim, later patches are needed to actually link it into the kernel Makefiles. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/boot/libfdt/Makefile.libfdt')
-rw-r--r--arch/powerpc/boot/libfdt/Makefile.libfdt14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/powerpc/boot/libfdt/Makefile.libfdt b/arch/powerpc/boot/libfdt/Makefile.libfdt
new file mode 100644
index 000000000000..82f9c6a8287b
--- /dev/null
+++ b/arch/powerpc/boot/libfdt/Makefile.libfdt
@@ -0,0 +1,14 @@
+# Makefile.libfdt
+#
+# This is not a complete Makefile of itself. Instead, it is designed to
+# be easily embeddable into other systems of Makefiles.
+#
+LIBFDT_SRCS = fdt.c fdt_ro.c fdt_wip.c fdt_sw.c fdt_rw.c fdt_strerror.c
+LIBFDT_INCLUDES = fdt.h libfdt.h
+LIBFDT_EXTRA = libfdt_internal.h
+LIBFDT_LIB = libfdt/libfdt.a
+
+LIBFDT_OBJS = $(LIBFDT_SRCS:%.c=%.o)
+
+$(LIBFDT_objdir)/$(LIBFDT_LIB): $(addprefix $(LIBFDT_objdir)/,$(LIBFDT_OBJS))
+