summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn Guo2013-10-31 09:37:12 +0100
committerShawn Guo2013-11-11 15:58:43 +0100
commit5d48217210a0ae4a08953b7e3db95ed5a992673d (patch)
tree5ba3e2a21009e39bc6780e8018d03ba19a4f67c3
parentARM: imx: improve mxc_restart() on the SRC bit writes (diff)
downloadkernel-qcow2-linux-5d48217210a0ae4a08953b7e3db95ed5a992673d.tar.gz
kernel-qcow2-linux-5d48217210a0ae4a08953b7e3db95ed5a992673d.tar.xz
kernel-qcow2-linux-5d48217210a0ae4a08953b7e3db95ed5a992673d.zip
ARM: imx: v7_cpu_resume() is needed by imx6sl build
Building a kernel with the following options, CONFIG_SMP=n CONFIG_PM=y CONFIG_SOC_IMX6SL=y CONFIG_SOC_IMX6Q=n we will see the build error below. arch/arm/mach-imx/built-in.o: In function `imx6q_pm_enter': platform-spi_imx.c:(.text+0x2648): undefined reference to `v7_cpu_resume' make[1]: *** [vmlinux] Error 1 This is because that v7_cpu_resume() implemented in headsmp.S is also needed by imx6sl build. Let's build headsmp.S for CONFIG_SOC_IMX6SL as well. Reported-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
-rw-r--r--arch/arm/mach-imx/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile
index bbe1f5bb799c..1789e2b31903 100644
--- a/arch/arm/mach-imx/Makefile
+++ b/arch/arm/mach-imx/Makefile
@@ -102,8 +102,8 @@ obj-$(CONFIG_SOC_IMX6SL) += clk-imx6sl.o mach-imx6sl.o
ifeq ($(CONFIG_PM),y)
obj-$(CONFIG_SOC_IMX6Q) += pm-imx6q.o headsmp.o
-# i.MX6SL reuses pm-imx6q.c
-obj-$(CONFIG_SOC_IMX6SL) += pm-imx6q.o
+# i.MX6SL reuses i.MX6Q code
+obj-$(CONFIG_SOC_IMX6SL) += pm-imx6q.o headsmp.o
endif
# i.MX5 based machines