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