diff options
author | Mohammed, Afzal <afzal@ti.com> | 2013-06-24 04:13:45 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2013-06-24 10:11:21 -0400 |
commit | 22fe3b89695d0d53ed7f7ccd295b7063dfec42d3 (patch) | |
tree | 454bc0a8b397644a4ea2b657a1242613b413f351 /arch/arm/mach-omap2/Makefile | |
parent | 4de1236010c4649420a6fd87051ddc3e1fa5cb91 (diff) |
ARM: OMAP2+: AM43x: resolve SMP related build error
If AM43x and SMP is selected, OMAP4 & OMAP5 deselected, build error as
follows,
arch/arm/mach-omap2/built-in.o: In function `scu_gp_set':
arch/arm/mach-omap2/sleep44xx.S:131: undefined reference to `omap4_get_scu_base'
arch/arm/mach-omap2/sleep44xx.S:132: undefined reference to `scu_power_mode'
arch/arm/mach-omap2/built-in.o: In function `scu_gp_clear':
arch/arm/mach-omap2/sleep44xx.S:227: undefined reference to `omap4_get_scu_base'
arch/arm/mach-omap2/sleep44xx.S:229: undefined reference to `scu_power_mode'
Resolve it by building sleep44xx.S only for OMAP4 & OMAP5.
Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-omap2/Makefile')
-rw-r--r-- | arch/arm/mach-omap2/Makefile | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile index ec2e128074d8..abf2eff81fa9 100644 --- a/arch/arm/mach-omap2/Makefile +++ b/arch/arm/mach-omap2/Makefile | |||
@@ -35,10 +35,9 @@ obj-$(CONFIG_SOC_HAS_OMAP2_SDRC) += sdrc.o | |||
35 | 35 | ||
36 | smp-$(CONFIG_SMP) += omap-smp.o omap-headsmp.o | 36 | smp-$(CONFIG_SMP) += omap-smp.o omap-headsmp.o |
37 | smp-$(CONFIG_HOTPLUG_CPU) += omap-hotplug.o | 37 | smp-$(CONFIG_HOTPLUG_CPU) += omap-hotplug.o |
38 | omap-4-5-common = omap4-common.o omap-wakeupgen.o \ | 38 | omap-4-5-common = omap4-common.o omap-wakeupgen.o |
39 | sleep44xx.o | 39 | obj-$(CONFIG_ARCH_OMAP4) += $(omap-4-5-common) $(smp-y) sleep44xx.o |
40 | obj-$(CONFIG_ARCH_OMAP4) += $(omap-4-5-common) $(smp-y) | 40 | obj-$(CONFIG_SOC_OMAP5) += $(omap-4-5-common) $(smp-y) sleep44xx.o |
41 | obj-$(CONFIG_SOC_OMAP5) += $(omap-4-5-common) $(smp-y) | ||
42 | obj-$(CONFIG_SOC_AM43XX) += $(omap-4-5-common) | 41 | obj-$(CONFIG_SOC_AM43XX) += $(omap-4-5-common) |
43 | 42 | ||
44 | plus_sec := $(call as-instr,.arch_extension sec,+sec) | 43 | plus_sec := $(call as-instr,.arch_extension sec,+sec) |