Daniel Schwierzeck | 17def7d | 2014-11-21 23:51:33 +0100 | [diff] [blame] | 1 | # |
| 2 | # SPDX-License-Identifier: GPL-2.0+ |
| 3 | # |
| 4 | |
Masahiro Yamada | 0841ab4 | 2015-02-20 17:04:02 +0900 | [diff] [blame] | 5 | # Machine directory name. This list is sorted alphanumerically |
| 6 | # by CONFIG_* macro name. |
Masahiro Yamada | e77d1d9 | 2015-02-20 17:04:03 +0900 | [diff] [blame] | 7 | machine-$(CONFIG_ARCH_AT91) += at91 |
Masahiro Yamada | 3644548 | 2015-02-20 17:04:05 +0900 | [diff] [blame] | 8 | machine-$(CONFIG_ARCH_DAVINCI) += davinci |
Masahiro Yamada | 95ec48b | 2015-02-20 17:04:08 +0900 | [diff] [blame] | 9 | machine-$(CONFIG_ARCH_HIGHBANK) += highbank |
Masahiro Yamada | 5e5e23a | 2015-02-20 17:04:06 +0900 | [diff] [blame] | 10 | # TODO: rename CONFIG_KIRKWOOD -> CONFIG_ARCH_KIRKWOOD |
| 11 | machine-$(CONFIG_KIRKWOOD) += kirkwood |
Masahiro Yamada | ed1632a | 2015-02-20 17:04:04 +0900 | [diff] [blame] | 12 | # TODO: rename CONFIG_TEGRA -> CONFIG_ARCH_TEGRA |
Masahiro Yamada | 5d083e1 | 2015-02-20 17:04:07 +0900 | [diff] [blame] | 13 | machine-$(CONFIG_ARCH_NOMADIK) += nomadik |
Masahiro Yamada | 2253764 | 2015-02-20 17:04:09 +0900 | [diff] [blame^] | 14 | # TODO: rename CONFIG_ORION5X -> CONFIG_ARCH_ORION5X |
| 15 | machine-$(CONFIG_ORION5X) += orion5x |
Masahiro Yamada | ed1632a | 2015-02-20 17:04:04 +0900 | [diff] [blame] | 16 | machine-$(CONFIG_TEGRA) += tegra |
Masahiro Yamada | 0841ab4 | 2015-02-20 17:04:02 +0900 | [diff] [blame] | 17 | |
| 18 | machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y)) |
| 19 | |
| 20 | libs-y += $(machdirs) |
| 21 | |
Daniel Schwierzeck | 17def7d | 2014-11-21 23:51:33 +0100 | [diff] [blame] | 22 | head-y := arch/arm/cpu/$(CPU)/start.o |
| 23 | |
| 24 | ifeq ($(CONFIG_SPL_BUILD),y) |
| 25 | ifneq ($(CONFIG_SPL_START_S_PATH),) |
| 26 | head-y := $(CONFIG_SPL_START_S_PATH:"%"=%)/start.o |
| 27 | endif |
| 28 | endif |
| 29 | |
| 30 | libs-y += arch/arm/cpu/$(CPU)/ |
| 31 | libs-y += arch/arm/cpu/ |
| 32 | libs-y += arch/arm/lib/ |
| 33 | |
| 34 | ifeq ($(CONFIG_SPL_BUILD),y) |
| 35 | ifneq (,$(CONFIG_MX23)$(CONFIG_MX35)$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35)) |
| 36 | libs-y += arch/arm/imx-common/ |
| 37 | endif |
| 38 | else |
| 39 | ifneq (,$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35 mxs vf610)) |
| 40 | libs-y += arch/arm/imx-common/ |
| 41 | endif |
| 42 | endif |
| 43 | |
| 44 | ifneq (,$(filter $(SOC), armada-xp kirkwood)) |
| 45 | libs-y += arch/arm/mvebu-common/ |
| 46 | endif |
Masahiro Yamada | 0841ab4 | 2015-02-20 17:04:02 +0900 | [diff] [blame] | 47 | |
| 48 | # deprecated |
| 49 | -include $(machdirs)/config.mk |