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