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 | 5e5e23a | 2015-02-20 17:04:06 +0900 | [diff] [blame^] | 9 | # TODO: rename CONFIG_KIRKWOOD -> CONFIG_ARCH_KIRKWOOD |
| 10 | machine-$(CONFIG_KIRKWOOD) += kirkwood |
Masahiro Yamada | ed1632a | 2015-02-20 17:04:04 +0900 | [diff] [blame] | 11 | # TODO: rename CONFIG_TEGRA -> CONFIG_ARCH_TEGRA |
| 12 | machine-$(CONFIG_TEGRA) += tegra |
Masahiro Yamada | 0841ab4 | 2015-02-20 17:04:02 +0900 | [diff] [blame] | 13 | |
| 14 | machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y)) |
| 15 | |
| 16 | libs-y += $(machdirs) |
| 17 | |
Daniel Schwierzeck | 17def7d | 2014-11-21 23:51:33 +0100 | [diff] [blame] | 18 | head-y := arch/arm/cpu/$(CPU)/start.o |
| 19 | |
| 20 | ifeq ($(CONFIG_SPL_BUILD),y) |
| 21 | ifneq ($(CONFIG_SPL_START_S_PATH),) |
| 22 | head-y := $(CONFIG_SPL_START_S_PATH:"%"=%)/start.o |
| 23 | endif |
| 24 | endif |
| 25 | |
| 26 | libs-y += arch/arm/cpu/$(CPU)/ |
| 27 | libs-y += arch/arm/cpu/ |
| 28 | libs-y += arch/arm/lib/ |
| 29 | |
| 30 | ifeq ($(CONFIG_SPL_BUILD),y) |
| 31 | ifneq (,$(CONFIG_MX23)$(CONFIG_MX35)$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35)) |
| 32 | libs-y += arch/arm/imx-common/ |
| 33 | endif |
| 34 | else |
| 35 | ifneq (,$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35 mxs vf610)) |
| 36 | libs-y += arch/arm/imx-common/ |
| 37 | endif |
| 38 | endif |
| 39 | |
| 40 | ifneq (,$(filter $(SOC), armada-xp kirkwood)) |
| 41 | libs-y += arch/arm/mvebu-common/ |
| 42 | endif |
Masahiro Yamada | 0841ab4 | 2015-02-20 17:04:02 +0900 | [diff] [blame] | 43 | |
| 44 | # deprecated |
| 45 | -include $(machdirs)/config.mk |