blob: bc96e2908f14436616083cf3706fd0dddf718d6a [file] [log] [blame]
David Daney5b3b1682009-01-08 16:46:40 -08001#
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 Daney512254b2009-09-16 14:54:18 -07009# Copyright (C) 2005-2009 Cavium Networks
David Daney5b3b1682009-01-08 16:46:40 -080010#
11
David Daney7ed18152012-07-05 18:12:38 +020012CFLAGS_octeon-platform.o = -I$(src)/../../../scripts/dtc/libfdt
13CFLAGS_setup.o = -I$(src)/../../../scripts/dtc/libfdt
14
Ralf Baechle69f3a7d2009-11-24 01:24:58 +000015obj-y := cpu.o setup.o serial.o octeon-platform.o octeon-irq.o csrc-octeon.o
David Daney5b3b1682009-01-08 16:46:40 -080016obj-y += dma-octeon.o flash_setup.o
17obj-y += octeon-memcpy.o
Ralf Baechlef6e1db12010-08-05 13:25:54 +010018obj-y += executive/
David Daney5b3b1682009-01-08 16:46:40 -080019
20obj-$(CONFIG_SMP) += smp.o
David Daney736b1c92012-07-05 18:12:38 +020021
22DTS_FILES = octeon_3xxx.dts octeon_68xx.dts
23DTB_FILES = $(patsubst %.dts, %.dtb, $(DTS_FILES))
24
25obj-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
33clean-files += $(DTB_FILES) $(patsubst %.dtb, %.dtb.S, $(DTB_FILES))