Commit 19fbd6b2 authored by Stephen Warren's avatar Stephen Warren Committed by Rob Herring

openrisc: use new common dtc rule

The current rules have the .dtb files build in a different directory
from the .dts files. This patch changes openrisc to use the generic dtb
rule which builds .dtb files in the same directory as the source .dts.

This requires renaming arch/openrisc/boot/Makefile to
arch/openrisc/boot/dts/Makefile, and updating arch/openrisc/Makefile to
call the new Makefile.

Cc: Jonas Bonn <jonas@southpole.se>
Cc: linux@lists.openrisc.net
Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
Signed-off-by: default avatarRob Herring <rob.herring@calxeda.com>
parent 70f915a2
...@@ -50,6 +50,6 @@ BUILTIN_DTB := y ...@@ -50,6 +50,6 @@ BUILTIN_DTB := y
else else
BUILTIN_DTB := n BUILTIN_DTB := n
endif endif
core-$(BUILTIN_DTB) += arch/openrisc/boot/ core-$(BUILTIN_DTB) += arch/openrisc/boot/dts/
all: vmlinux all: vmlinux
ifneq '$(CONFIG_OPENRISC_BUILTIN_DTB)' '""' ifneq '$(CONFIG_OPENRISC_BUILTIN_DTB)' '""'
BUILTIN_DTB := $(patsubst "%",%,$(CONFIG_OPENRISC_BUILTIN_DTB)).dtb.o BUILTIN_DTB := $(patsubst "%",%,$(CONFIG_OPENRISC_BUILTIN_DTB)).dtb.o
else else
...@@ -10,6 +8,3 @@ obj-y += $(BUILTIN_DTB) ...@@ -10,6 +8,3 @@ obj-y += $(BUILTIN_DTB)
clean-files := *.dtb.S clean-files := *.dtb.S
#DTC_FLAGS ?= -p 1024 #DTC_FLAGS ?= -p 1024
$(obj)/%.dtb: $(src)/dts/%.dts FORCE
$(call if_changed_dep,dtc)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment