Makefile 994 B

12345678910111213141516171819202122232425262728293031
  1. #
  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. #
  9. # Copyright (C) 2005-2009 Cavium Networks
  10. #
  11. CFLAGS_octeon-platform.o = -I$(src)/../../../scripts/dtc/libfdt
  12. CFLAGS_setup.o = -I$(src)/../../../scripts/dtc/libfdt
  13. obj-y := cpu.o setup.o serial.o octeon-platform.o octeon-irq.o csrc-octeon.o
  14. obj-y += dma-octeon.o flash_setup.o
  15. obj-y += octeon-memcpy.o
  16. obj-y += executive/
  17. obj-$(CONFIG_SMP) += smp.o
  18. obj-$(CONFIG_OCTEON_ILM) += oct_ilm.o
  19. DTS_FILES = octeon_3xxx.dts octeon_68xx.dts
  20. DTB_FILES = $(patsubst %.dts, %.dtb, $(DTS_FILES))
  21. obj-y += $(patsubst %.dts, %.dtb.o, $(DTS_FILES))
  22. # Let's keep the .dtb files around in case we want to look at them.
  23. .SECONDARY: $(addprefix $(obj)/, $(DTB_FILES))
  24. clean-files += $(DTB_FILES) $(patsubst %.dtb, %.dtb.S, $(DTB_FILES))