From 4c9a6fd1667534b603da79cd0c75c2259a28167d Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Thu, 24 May 2018 14:15:04 +0800 Subject: [PATCH] ARM: rockchip: no build mach-rockchip when CONFIG_ARM_PSCI There is not need to build mach-rockchip when PSCI is enabled. Save about 5K text, 7K data and fix compilation error for THUMB2_KERNEL. Change-Id: Ieb17867592d7d49a8b983dc5c7e8d1d1df14d864 Signed-off-by: Tao Huang --- arch/arm/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 020c5712a4c1..f0fc541891a8 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -203,7 +203,9 @@ machine-$(CONFIG_ARCH_PICOXCELL) += picoxcell machine-$(CONFIG_ARCH_PXA) += pxa machine-$(CONFIG_ARCH_QCOM) += qcom machine-$(CONFIG_ARCH_REALVIEW) += realview +ifndef CONFIG_ARM_PSCI machine-$(CONFIG_ARCH_ROCKCHIP) += rockchip +endif machine-$(CONFIG_ARCH_RPC) += rpc machine-$(CONFIG_ARCH_S3C24XX) += s3c24xx machine-$(CONFIG_ARCH_S3C64XX) += s3c64xx