From 4f023b965573f246eb24bae94cb5dc218c18a03f 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 e15f76ca2887..3d801e66b6d5 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -206,7 +206,9 @@ machine-$(CONFIG_ARCH_QCOM) += qcom machine-$(CONFIG_ARCH_RDA) += rda machine-$(CONFIG_ARCH_REALTEK) += realtek machine-$(CONFIG_ARCH_REALVIEW) += realview +ifndef CONFIG_ARM_PSCI machine-$(CONFIG_ARCH_ROCKCHIP) += rockchip +endif machine-$(CONFIG_ARCH_RPC) += rpc machine-$(CONFIG_PLAT_SAMSUNG) += s3c machine-$(CONFIG_ARCH_S5PV210) += s5pv210