From: Rob Herring rob.herring@calxeda.com
Add a make rule to compile dt blobs for ARM.
Signed-off-by: Rob Herring rob.herring@calxeda.com --- arch/arm/Makefile | 3 +++ arch/arm/boot/Makefile | 6 ++++++ 2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index b49dea6..566763f 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -284,6 +284,9 @@ zImage Image xipImage bootpImage uImage: vmlinux zinstall install: vmlinux $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@
+%.dtb: + $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@ + # We use MRPROPER_FILES and CLEAN_FILES now archclean: $(Q)$(MAKE) $(clean)=$(boot) diff --git a/arch/arm/boot/Makefile b/arch/arm/boot/Makefile index dcf323d..bb63922 100644 --- a/arch/arm/boot/Makefile +++ b/arch/arm/boot/Makefile @@ -13,6 +13,8 @@
MKIMAGE := $(srctree)/scripts/mkuboot.sh
+DTC_FLAGS := -p 1024 + ifneq ($(MACHINE),) include $(srctree)/$(MACHINE)/Makefile.boot endif @@ -59,6 +61,10 @@ $(obj)/zImage: $(obj)/compressed/vmlinux FORCE
endif
+# Rule to build device tree blobs +$(obj)/%.dtb: $(src)/dts/%.dts + $(call cmd,dtc) + quiet_cmd_uimage = UIMAGE $@ cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A arm -O linux -T kernel \ -C none -a $(LOADADDR) -e $(STARTADDR) \
Grant,
On 03/10/2011 01:46 PM, Rob Herring wrote:
From: Rob Herringrob.herring@calxeda.com
Add a make rule to compile dt blobs for ARM.
Signed-off-by: Rob Herringrob.herring@calxeda.com
Can you pick this one up in your ARM tree.
Rob
On Mon, Mar 14, 2011 at 06:34:53PM -0500, Rob Herring wrote:
Grant,
On 03/10/2011 01:46 PM, Rob Herring wrote:
From: Rob Herringrob.herring@calxeda.com
Add a make rule to compile dt blobs for ARM.
Signed-off-by: Rob Herringrob.herring@calxeda.com
Can you pick this one up in your ARM tree.
+1
It's handy.
2011/3/15 Rob Herring robherring2@gmail.com:
Grant,
On 03/10/2011 01:46 PM, Rob Herring wrote:
From: Rob Herringrob.herring@calxeda.com
Add a make rule to compile dt blobs for ARM.
Signed-off-by: Rob Herringrob.herring@calxeda.com
Can you pick this one up in your ARM tree.
Test result on i.MX51 babbage board:
gcl/linux-2.6$ make babbage.dtb ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- DTC arch/arm/boot/babbage.dtb DTC: dts->dtb on file "arch/arm/boot/dts/babbage.dts"
Tested-by: Jason Liu jason.hui@linaro.org
Jason
Rob
linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
On Mon, Mar 14, 2011 at 06:34:53PM -0500, Rob Herring wrote:
Grant,
On 03/10/2011 01:46 PM, Rob Herring wrote:
From: Rob Herringrob.herring@calxeda.com
Add a make rule to compile dt blobs for ARM.
Signed-off-by: Rob Herringrob.herring@calxeda.com
Can you pick this one up in your ARM tree.
Done. Will be pushed out alter tonight.
g.