1 # SPDX-License-Identifier: GPL-2.0+ 2 # 3 # (C) Copyright 2000-2006 4 # Wolfgang Denk, DENX Software Engineering, wd (at] denx.de. 5 6 extra-y = start.o 7 obj-y = cpu.o cache.o 8 9 ifdef CONFIG_SPL_BUILD 10 ifdef CONFIG_SPL_NO_CPU_SUPPORT_CODE 11 extra-y := 12 endif 13 endif 14 15 obj-$(CONFIG_ARMADA100) += armada100/ 16 obj-$(if $(filter lpc32xx,$(SOC)),y) += lpc32xx/ 17 obj-$(CONFIG_MX25) += mx25/ 18 obj-$(CONFIG_MX27) += mx27/ 19 obj-$(if $(filter mxs,$(SOC)),y) += mxs/ 20 obj-$(if $(filter spear,$(SOC)),y) += spear/ 21 22 # some files can only build in ARM or THUMB2, not THUMB1 23 24 ifdef CONFIG_$(SPL_)SYS_THUMB_BUILD 25 ifndef CONFIG_HAS_THUMB2 26 27 CFLAGS_cpu.o := -marm 28 CFLAGS_cache.o := -marm 29 30 endif 31 endif 32