-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The current rules have the .dtb files build in a different directory from the .dts files. This patch changes microblaze to use the generic dtb rule which builds .dtb files in the same directory as the source .dts. This requires moving parts of arch/microblaze/boot/Makefile into newly created arch/microblaze/boot/dts/Makefile, and updating arch/microblaze/Makefile to call the new Makefile. linked_dtb.S is also moved into boot/dts/ since it's used by rules that were moved. Cc: Michal Simek <monstr@monstr.eu> Cc: microblaze-uclinux@itee.uq.edu.au Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Rob Herring <rob.herring@calxeda.com>
- Loading branch information
Stephen Warren
authored and
Rob Herring
committed
Dec 3, 2012
1 parent
1020e29
commit 300db34
Showing
5 changed files
with
26 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# | ||
# arch/microblaze/boot/Makefile | ||
# | ||
|
||
obj-y += linked_dtb.o | ||
|
||
# Ensure system.dtb exists | ||
$(obj)/linked_dtb.o: $(obj)/system.dtb | ||
|
||
# Generate system.dtb from $(DTB).dtb | ||
ifneq ($(DTB),system) | ||
$(obj)/system.dtb: $(obj)/$(DTB).dtb | ||
$(call if_changed,cp) | ||
endif | ||
|
||
quiet_cmd_cp = CP $< $@$2 | ||
cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false) | ||
|
||
# Rule to build device tree blobs | ||
DTC_FLAGS := -p 1024 | ||
|
||
clean-files += *.dtb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.section __fdt_blob,"a" | ||
.incbin "arch/microblaze/boot/dts/system.dtb" |
This file was deleted.
Oops, something went wrong.