Makefile 1022 字节
Newer Older
1 2 3 4 5 6 7 8
#
# Makefile for the Cavium Octeon specific kernel interface routines
# under Linux.
#
# This file is subject to the terms and conditions of the GNU General Public
# License.  See the file "COPYING" in the main directory of this archive
# for more details.
#
9
# Copyright (C) 2005-2009 Cavium Networks
10 11
#

12 13 14
CFLAGS_octeon-platform.o = -I$(src)/../../../scripts/dtc/libfdt
CFLAGS_setup.o = -I$(src)/../../../scripts/dtc/libfdt

R
Ralf Baechle 已提交
15
obj-y := cpu.o setup.o serial.o octeon-platform.o octeon-irq.o csrc-octeon.o
16
obj-y += dma-octeon.o
17
obj-y += octeon-memcpy.o
18
obj-y += executive/
19

20
obj-$(CONFIG_MTD)		      += flash_setup.o
R
Ralf Baechle 已提交
21
obj-$(CONFIG_SMP)		      += smp.o
22
obj-$(CONFIG_OCTEON_ILM)	      += oct_ilm.o
23 24 25 26 27 28 29 30 31 32

DTS_FILES = octeon_3xxx.dts octeon_68xx.dts
DTB_FILES = $(patsubst %.dts, %.dtb, $(DTS_FILES))

obj-y += $(patsubst %.dts, %.dtb.o, $(DTS_FILES))

# Let's keep the .dtb files around in case we want to look at them.
.SECONDARY:  $(addprefix $(obj)/, $(DTB_FILES))

clean-files += $(DTB_FILES) $(patsubst %.dtb, %.dtb.S, $(DTB_FILES))