[PATCH 2/4] x86/of: Add building device tree blob(s) into image.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: dirk.brandewie
Date: Monday, December 6, 2010 - 10:36 am

From: Dirk Brandewie <dirk.brandewie@gmail.com>

This patch adds linking device tree blob into vmlinux. DTB's are
added by adding the blob object name to list of objects to be linked
into the image.

Signed-off-by: Dirk Brandewie <dirk.brandewie@gmail.com>
---
 arch/x86/platform/ce4100/Makefile |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/arch/x86/platform/ce4100/Makefile b/arch/x86/platform/ce4100/Makefile
index 91fc929..3b49187 100644
--- a/arch/x86/platform/ce4100/Makefile
+++ b/arch/x86/platform/ce4100/Makefile
@@ -1 +1,11 @@
 obj-$(CONFIG_X86_INTEL_CE)	+= ce4100.o
+clean-files := *dtb.S
+
+ifdef CONFIG_X86_OF
+###
+# device tree blob
+obj-$(CONFIG_X86_INTEL_CE) += ce4100.dtb.o
+
+$(obj)/%.dtb: $(src)/%.dts
+	$(call if_changed,dtc)
+endif
-- 
1.7.2.3

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 2/4] x86/of: Add building device tree blob(s) into ..., dirk.brandewie, (Mon Dec 6, 10:36 am)
[PATCH 3/4] of/powerpc: Use generic rule to build dtb's, dirk.brandewie, (Mon Dec 6, 10:36 am)
[PATCH 4/4] microblaze/of: Use generic rule to build dtb's, dirk.brandewie, (Mon Dec 6, 10:36 am)