diff options
author | Aurelien Jacquiot <a-jacquiot@ti.com> | 2011-10-04 10:54:51 -0400 |
---|---|---|
committer | Mark Salter <msalter@redhat.com> | 2011-10-06 19:47:25 -0400 |
commit | c278400c52c14203894c5dc0d63cf385239d8329 (patch) | |
tree | a3f82945b3ebb49b058e99cefdafca65732b041a /arch/c6x/boot | |
parent | e66d3c490c7a45daa49c1ae9cc5fe0687d14b823 (diff) |
C6X: build infrastructure
Original port to early 2.6 kernel using TI COFF toolchain.
Brought up to date by Mark Salter <msalter@redhat.com>
Signed-off-by: Aurelien Jacquiot <a-jacquiot@ti.com>
Signed-off-by: Mark Salter <msalter@redhat.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/c6x/boot')
-rw-r--r-- | arch/c6x/boot/Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/c6x/boot/Makefile b/arch/c6x/boot/Makefile new file mode 100644 index 000000000000..ecca820e6041 --- /dev/null +++ b/arch/c6x/boot/Makefile | |||
@@ -0,0 +1,30 @@ | |||
1 | # | ||
2 | # Makefile for bootable kernel images | ||
3 | # | ||
4 | |||
5 | OBJCOPYFLAGS_vmlinux.bin := -O binary | ||
6 | $(obj)/vmlinux.bin: vmlinux FORCE | ||
7 | $(call if_changed,objcopy) | ||
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 cmd,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 | ||
28 | $(call if_changed,objcopy) | ||
29 | |||
30 | clean-files := $(obj)/*.dtb | ||