ARM: imx: v7_cpu_resume() is needed by imx6sl build
authorShawn Guo <shawn.guo@linaro.org>
Thu, 31 Oct 2013 08:37:12 +0000 (16:37 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Mon, 11 Nov 2013 14:58:43 +0000 (22:58 +0800)
commit5d48217210a0ae4a08953b7e3db95ed5a992673d
tree5ba3e2a21009e39bc6780e8018d03ba19a4f67c3
parent2c11b57a8a8d83ffa91aebb12c90488c8802e6f3
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>
arch/arm/mach-imx/Makefile