forked from Minki/linux
90b335fbbc
All architectures that use cmd_dtc do so in almost the same way. Create a central build rule to avoid duplication. The one difference is that most current uses of dtc build $(obj)/%.dtb from $(src)/dts/%.dts rather than building the .dtb in the same directory as the .dts file. This difference will be eliminated arch-by-arch in future patches. MIPS is the exception here; it already uses the exact same rule as the new common rule, so the duplicate is removed in this patch to avoid any conflict. arch/mips changes courtesy of Ralf Baechle. Update Documentation/kbuild to remove the explicit call to cmd_dtc from the example, now that the rule exists in a centralized location. Cc: Arnd Bergmann <arnd@arndb.de> Cc: linux-arm-kernel@lists.infradead.org Cc: Olof Johansson <olof@lixom.net> Cc: Russell King <linux@arm.linux.org.uk> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Cc: Jonas Bonn <jonas@southpole.se> Cc: linux@lists.openrisc.net Cc: Aurelien Jacquiot <a-jacquiot@ti.com> Cc: linux-c6x-dev@linux-c6x.org Cc: Mark Salter <msalter@redhat.com> Cc: Michal Simek <monstr@monstr.eu> Cc: microblaze-uclinux@itee.uq.edu.au Cc: Chris Zankel <chris@zankel.net> Cc: linux-xtensa@linux-xtensa.org Cc: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Rob Herring <rob.herring@calxeda.com>
31 lines
963 B
Makefile
31 lines
963 B
Makefile
#
|
|
# 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.
|
|
#
|
|
# Copyright (C) 2005-2009 Cavium Networks
|
|
#
|
|
|
|
CFLAGS_octeon-platform.o = -I$(src)/../../../scripts/dtc/libfdt
|
|
CFLAGS_setup.o = -I$(src)/../../../scripts/dtc/libfdt
|
|
|
|
obj-y := cpu.o setup.o serial.o octeon-platform.o octeon-irq.o csrc-octeon.o
|
|
obj-y += dma-octeon.o flash_setup.o
|
|
obj-y += octeon-memcpy.o
|
|
obj-y += executive/
|
|
|
|
obj-$(CONFIG_SMP) += smp.o
|
|
|
|
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))
|