Daniel Schwierzeck | e19db55 | 2014-11-21 23:51:33 +0100 | [diff] [blame] | 1 | # |
| 2 | # SPDX-License-Identifier: GPL-2.0+ |
| 3 | # |
| 4 | |
Masahiro Yamada | 01f1445 | 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 | 6201184 | 2015-02-20 17:04:03 +0900 | [diff] [blame] | 7 | machine-$(CONFIG_ARCH_AT91) += at91 |
Masahiro Yamada | 601fbec | 2015-02-20 17:04:05 +0900 | [diff] [blame] | 8 | machine-$(CONFIG_ARCH_DAVINCI) += davinci |
Masahiro Yamada | 72a8ff4 | 2015-02-20 17:04:08 +0900 | [diff] [blame] | 9 | machine-$(CONFIG_ARCH_HIGHBANK) += highbank |
Masahiro Yamada | 39a7234 | 2015-02-20 17:04:11 +0900 | [diff] [blame] | 10 | machine-$(CONFIG_ARCH_KEYSTONE) += keystone |
Masahiro Yamada | 56f86e3 | 2015-02-20 17:04:06 +0900 | [diff] [blame] | 11 | # TODO: rename CONFIG_KIRKWOOD -> CONFIG_ARCH_KIRKWOOD |
| 12 | machine-$(CONFIG_KIRKWOOD) += kirkwood |
Masahiro Yamada | 09f455d | 2015-02-20 17:04:04 +0900 | [diff] [blame] | 13 | # TODO: rename CONFIG_TEGRA -> CONFIG_ARCH_TEGRA |
Masahiro Yamada | ef917dd | 2015-02-20 17:04:07 +0900 | [diff] [blame] | 14 | machine-$(CONFIG_ARCH_NOMADIK) += nomadik |
Masahiro Yamada | 3e93b4e | 2015-02-20 17:04:09 +0900 | [diff] [blame] | 15 | # TODO: rename CONFIG_ORION5X -> CONFIG_ARCH_ORION5X |
| 16 | machine-$(CONFIG_ORION5X) += orion5x |
Masahiro Yamada | 09f455d | 2015-02-20 17:04:04 +0900 | [diff] [blame] | 17 | machine-$(CONFIG_TEGRA) += tegra |
Masahiro Yamada | 4c42557 | 2015-02-27 02:26:42 +0900 | [diff] [blame] | 18 | machine-$(CONFIG_ARCH_UNIPHIER) += uniphier |
Masahiro Yamada | 63637a4 | 2015-02-20 17:04:10 +0900 | [diff] [blame] | 19 | machine-$(CONFIG_ARCH_VERSATILE) += versatile |
Masahiro Yamada | 01f1445 | 2015-02-20 17:04:02 +0900 | [diff] [blame] | 20 | |
| 21 | machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y)) |
| 22 | |
Masahiro Yamada | 30ebf88 | 2015-02-20 17:04:19 +0900 | [diff] [blame] | 23 | PLATFORM_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs)) |
| 24 | |
Masahiro Yamada | 01f1445 | 2015-02-20 17:04:02 +0900 | [diff] [blame] | 25 | libs-y += $(machdirs) |
| 26 | |
Daniel Schwierzeck | e19db55 | 2014-11-21 23:51:33 +0100 | [diff] [blame] | 27 | head-y := arch/arm/cpu/$(CPU)/start.o |
| 28 | |
| 29 | ifeq ($(CONFIG_SPL_BUILD),y) |
| 30 | ifneq ($(CONFIG_SPL_START_S_PATH),) |
| 31 | head-y := $(CONFIG_SPL_START_S_PATH:"%"=%)/start.o |
| 32 | endif |
| 33 | endif |
| 34 | |
| 35 | libs-y += arch/arm/cpu/$(CPU)/ |
| 36 | libs-y += arch/arm/cpu/ |
| 37 | libs-y += arch/arm/lib/ |
| 38 | |
| 39 | ifeq ($(CONFIG_SPL_BUILD),y) |
| 40 | ifneq (,$(CONFIG_MX23)$(CONFIG_MX35)$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35)) |
| 41 | libs-y += arch/arm/imx-common/ |
| 42 | endif |
| 43 | else |
| 44 | ifneq (,$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35 mxs vf610)) |
| 45 | libs-y += arch/arm/imx-common/ |
| 46 | endif |
| 47 | endif |
| 48 | |
| 49 | ifneq (,$(filter $(SOC), armada-xp kirkwood)) |
| 50 | libs-y += arch/arm/mvebu-common/ |
| 51 | endif |
Masahiro Yamada | 01f1445 | 2015-02-20 17:04:02 +0900 | [diff] [blame] | 52 | |
| 53 | # deprecated |
| 54 | -include $(machdirs)/config.mk |