David Daney | 5b3b168 | 2009-01-08 16:46:40 -0800 | [diff] [blame] | 1 | # |
| 2 | # Makefile for the Cavium Octeon specific kernel interface routines |
| 3 | # under Linux. |
| 4 | # |
| 5 | # This file is subject to the terms and conditions of the GNU General Public |
| 6 | # License. See the file "COPYING" in the main directory of this archive |
| 7 | # for more details. |
| 8 | # |
David Daney | 512254b | 2009-09-16 14:54:18 -0700 | [diff] [blame] | 9 | # Copyright (C) 2005-2009 Cavium Networks |
David Daney | 5b3b168 | 2009-01-08 16:46:40 -0800 | [diff] [blame] | 10 | # |
| 11 | |
David Daney | 7ed1815 | 2012-07-05 18:12:38 +0200 | [diff] [blame] | 12 | CFLAGS_octeon-platform.o = -I$(src)/../../../scripts/dtc/libfdt |
| 13 | CFLAGS_setup.o = -I$(src)/../../../scripts/dtc/libfdt |
| 14 | |
Ralf Baechle | 69f3a7d | 2009-11-24 01:24:58 +0000 | [diff] [blame] | 15 | obj-y := cpu.o setup.o serial.o octeon-platform.o octeon-irq.o csrc-octeon.o |
David Daney | 5b3b168 | 2009-01-08 16:46:40 -0800 | [diff] [blame] | 16 | obj-y += dma-octeon.o flash_setup.o |
| 17 | obj-y += octeon-memcpy.o |
Ralf Baechle | f6e1db1 | 2010-08-05 13:25:54 +0100 | [diff] [blame] | 18 | obj-y += executive/ |
David Daney | 5b3b168 | 2009-01-08 16:46:40 -0800 | [diff] [blame] | 19 | |
| 20 | obj-$(CONFIG_SMP) += smp.o |
David Daney | 736b1c9 | 2012-07-05 18:12:38 +0200 | [diff] [blame] | 21 | |
| 22 | DTS_FILES = octeon_3xxx.dts octeon_68xx.dts |
| 23 | DTB_FILES = $(patsubst %.dts, %.dtb, $(DTS_FILES)) |
| 24 | |
| 25 | obj-y += $(patsubst %.dts, %.dtb.o, $(DTS_FILES)) |
| 26 | |
| 27 | $(obj)/%.dtb: $(src)/%.dts FORCE |
| 28 | $(call if_changed_dep,dtc) |
| 29 | |
| 30 | # Let's keep the .dtb files around in case we want to look at them. |
| 31 | .SECONDARY: $(addprefix $(obj)/, $(DTB_FILES)) |
| 32 | |
| 33 | clean-files += $(DTB_FILES) $(patsubst %.dtb, %.dtb.S, $(DTB_FILES)) |