diff options
| author | Peng Fan <[email protected]> | 2022-07-26 16:40:32 +0800 |
|---|---|---|
| committer | Stefano Babic <[email protected]> | 2022-07-26 11:29:00 +0200 |
| commit | 2f5ee7f8129be1c98eabcf46ddcbf55f6e119b21 (patch) | |
| tree | 53e0f382d1af109f00a78243986762dceb57945c | |
| parent | 658ff9d035f558676dfcad091fbb985f4d15bad6 (diff) | |
arm: makefile: cleanup mach-imx usage
All the SoCs use mach-imx has CONFIG_MACH_IMX selected, so
the macro could be the gate to build arch/arm/mach-imx to simplify
the rules.
Signed-off-by: Peng Fan <[email protected]>
| -rw-r--r-- | arch/arm/Makefile | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index a37603035d8..1f4a1d57883 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -92,6 +92,8 @@ machine-$(CONFIG_ARCH_ZYNQ) += zynq machine-$(CONFIG_ARCH_ZYNQMP) += zynqmp machine-$(CONFIG_ARCH_ZYNQMP_R5) += zynqmp-r5 +machine-$(CONFIG_MACH_IMX) += imx + machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y)) PLATFORM_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs)) @@ -110,16 +112,6 @@ libs-y += arch/arm/cpu/$(CPU)/ libs-y += arch/arm/cpu/ libs-y += arch/arm/lib/ -ifeq ($(CONFIG_SPL_BUILD),y) -ifneq (,$(CONFIG_MX23)$(CONFIG_MX28)$(filter $(SOC), mx25 mx5 mx6 mx7 mx35 imx8m imx8 imx8ulp imxrt)) -libs-y += arch/arm/mach-imx/ -endif -else -ifneq (,$(filter $(SOC), mx25 mx27 mx5 mx6 mx7 mx7ulp mx31 mx35 mxs imx8m imx8 imx8ulp imxrt vf610)) -libs-y += arch/arm/mach-imx/ -endif -endif - ifneq (,$(filter $(SOC), kirkwood)) libs-y += arch/arm/mach-mvebu/ endif |
