diff options
Diffstat (limited to 'arch/c6x')
-rw-r--r-- | arch/c6x/Makefile | 2 | ||||
-rw-r--r-- | arch/c6x/boot/Makefile | 20 | ||||
-rw-r--r-- | arch/c6x/boot/dts/Makefile | 20 | ||||
-rw-r--r-- | arch/c6x/boot/dts/linked_dtb.S | 2 | ||||
-rw-r--r-- | arch/c6x/boot/linked_dtb.S | 2 |
5 files changed, 23 insertions, 23 deletions
diff --git a/arch/c6x/Makefile b/arch/c6x/Makefile index a9eb9597e03c..e72eb3417239 100644 --- a/arch/c6x/Makefile +++ b/arch/c6x/Makefile | |||
@@ -41,7 +41,7 @@ DTB:=$(subst dtbImage.,,$(filter dtbImage.%, $(MAKECMDGOALS))) | |||
41 | export DTB | 41 | export DTB |
42 | 42 | ||
43 | ifneq ($(DTB),) | 43 | ifneq ($(DTB),) |
44 | core-y += $(boot)/ | 44 | core-y += $(boot)/dts/ |
45 | endif | 45 | endif |
46 | 46 | ||
47 | # With make 3.82 we cannot mix normal and wildcard targets | 47 | # With make 3.82 we cannot mix normal and wildcard targets |
diff --git a/arch/c6x/boot/Makefile b/arch/c6x/boot/Makefile index 6891257d514c..8734abee548e 100644 --- a/arch/c6x/boot/Makefile +++ b/arch/c6x/boot/Makefile | |||
@@ -6,25 +6,5 @@ OBJCOPYFLAGS_vmlinux.bin := -O binary | |||
6 | $(obj)/vmlinux.bin: vmlinux FORCE | 6 | $(obj)/vmlinux.bin: vmlinux FORCE |
7 | $(call if_changed,objcopy) | 7 | $(call if_changed,objcopy) |
8 | 8 | ||
9 | DTC_FLAGS ?= -p 1024 | ||
10 | |||
11 | ifneq ($(DTB),) | ||
12 | obj-y += linked_dtb.o | ||
13 | endif | ||
14 | |||
15 | $(obj)/%.dtb: $(src)/dts/%.dts FORCE | ||
16 | $(call if_changed_dep,dtc) | ||
17 | |||
18 | quiet_cmd_cp = CP $< $@$2 | ||
19 | cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false) | ||
20 | |||
21 | # Generate builtin.dtb from $(DTB).dtb | ||
22 | $(obj)/builtin.dtb: $(obj)/$(DTB).dtb | ||
23 | $(call if_changed,cp) | ||
24 | |||
25 | $(obj)/linked_dtb.o: $(obj)/builtin.dtb | ||
26 | |||
27 | $(obj)/dtbImage.%: vmlinux | 9 | $(obj)/dtbImage.%: vmlinux |
28 | $(call if_changed,objcopy) | 10 | $(call if_changed,objcopy) |
29 | |||
30 | clean-files := $(obj)/*.dtb | ||
diff --git a/arch/c6x/boot/dts/Makefile b/arch/c6x/boot/dts/Makefile new file mode 100644 index 000000000000..c7528b02d061 --- /dev/null +++ b/arch/c6x/boot/dts/Makefile | |||
@@ -0,0 +1,20 @@ | |||
1 | # | ||
2 | # Makefile for device trees | ||
3 | # | ||
4 | |||
5 | DTC_FLAGS ?= -p 1024 | ||
6 | |||
7 | ifneq ($(DTB),) | ||
8 | obj-y += linked_dtb.o | ||
9 | endif | ||
10 | |||
11 | quiet_cmd_cp = CP $< $@$2 | ||
12 | cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false) | ||
13 | |||
14 | # Generate builtin.dtb from $(DTB).dtb | ||
15 | $(obj)/builtin.dtb: $(obj)/$(DTB).dtb | ||
16 | $(call if_changed,cp) | ||
17 | |||
18 | $(obj)/linked_dtb.o: $(obj)/builtin.dtb | ||
19 | |||
20 | clean-files := *.dtb | ||
diff --git a/arch/c6x/boot/dts/linked_dtb.S b/arch/c6x/boot/dts/linked_dtb.S new file mode 100644 index 000000000000..cf347f1d16ce --- /dev/null +++ b/arch/c6x/boot/dts/linked_dtb.S | |||
@@ -0,0 +1,2 @@ | |||
1 | .section __fdt_blob,"a" | ||
2 | .incbin "arch/c6x/boot/dts/builtin.dtb" | ||
diff --git a/arch/c6x/boot/linked_dtb.S b/arch/c6x/boot/linked_dtb.S deleted file mode 100644 index 57a4454eaec3..000000000000 --- a/arch/c6x/boot/linked_dtb.S +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | .section __fdt_blob,"a" | ||
2 | .incbin "arch/c6x/boot/builtin.dtb" | ||