xref: /openbmc/linux/arch/mips/cavium-octeon/Makefile (revision 68651ff6)
15b3b1688SDavid Daney#
25b3b1688SDavid Daney# Makefile for the Cavium Octeon specific kernel interface routines
35b3b1688SDavid Daney# under Linux.
45b3b1688SDavid Daney#
55b3b1688SDavid Daney# This file is subject to the terms and conditions of the GNU General Public
65b3b1688SDavid Daney# License.  See the file "COPYING" in the main directory of this archive
75b3b1688SDavid Daney# for more details.
85b3b1688SDavid Daney#
9512254baSDavid Daney# Copyright (C) 2005-2009 Cavium Networks
105b3b1688SDavid Daney#
115b3b1688SDavid Daney
127ed18152SDavid DaneyCFLAGS_octeon-platform.o = -I$(src)/../../../scripts/dtc/libfdt
137ed18152SDavid DaneyCFLAGS_setup.o = -I$(src)/../../../scripts/dtc/libfdt
147ed18152SDavid Daney
1569f3a7deSRalf Baechleobj-y := cpu.o setup.o serial.o octeon-platform.o octeon-irq.o csrc-octeon.o
16*68651ff6SRalf Baechleobj-y += dma-octeon.o
175b3b1688SDavid Daneyobj-y += octeon-memcpy.o
18f6e1db1bSRalf Baechleobj-y += executive/
195b3b1688SDavid Daney
20*68651ff6SRalf Baechleobj-$(CONFIG_MTD)		      += flash_setup.o
215b3b1688SDavid Daneyobj-$(CONFIG_SMP)		      += smp.o
220e49caf6SVenkat Subbiahobj-$(CONFIG_OCTEON_ILM)	      += oct_ilm.o
23736b1c9cSDavid Daney
24736b1c9cSDavid DaneyDTS_FILES = octeon_3xxx.dts octeon_68xx.dts
25736b1c9cSDavid DaneyDTB_FILES = $(patsubst %.dts, %.dtb, $(DTS_FILES))
26736b1c9cSDavid Daney
27736b1c9cSDavid Daneyobj-y += $(patsubst %.dts, %.dtb.o, $(DTS_FILES))
28736b1c9cSDavid Daney
29736b1c9cSDavid Daney# Let's keep the .dtb files around in case we want to look at them.
30736b1c9cSDavid Daney.SECONDARY:  $(addprefix $(obj)/, $(DTB_FILES))
31736b1c9cSDavid Daney
32736b1c9cSDavid Daneyclean-files += $(DTB_FILES) $(patsubst %.dtb, %.dtb.S, $(DTB_FILES))
33