blob: 4e952043c922177590a01540af71304ae51dc120 [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
David Daneyfde17992013-06-19 20:37:28 +000015obj-y := cpu.o setup.o octeon-platform.o octeon-irq.o csrc-octeon.o
Ralf Baechle68651ff2013-06-13 02:26:34 +020016obj-y += dma-octeon.o
David Daney5b3b1682009-01-08 16:46:40 -080017obj-y += octeon-memcpy.o
Ralf Baechlef6e1db12010-08-05 13:25:54 +010018obj-y += executive/
David Daney5b3b1682009-01-08 16:46:40 -080019
Ralf Baechle68651ff2013-06-13 02:26:34 +020020obj-$(CONFIG_MTD) += flash_setup.o
Ralf Baechle70342282013-01-22 12:59:30 +010021obj-$(CONFIG_SMP) += smp.o
Venkat Subbiah0e49caf2012-12-02 00:51:26 +000022obj-$(CONFIG_OCTEON_ILM) += oct_ilm.o
David Daney736b1c92012-07-05 18:12:38 +020023
24DTS_FILES = octeon_3xxx.dts octeon_68xx.dts
25DTB_FILES = $(patsubst %.dts, %.dtb, $(DTS_FILES))
26
27obj-y += $(patsubst %.dts, %.dtb.o, $(DTS_FILES))
28
David Daney736b1c92012-07-05 18:12:38 +020029# Let's keep the .dtb files around in case we want to look at them.
30.SECONDARY: $(addprefix $(obj)/, $(DTB_FILES))
31
32clean-files += $(DTB_FILES) $(patsubst %.dtb, %.dtb.S, $(DTB_FILES))