ARM: OMAP2+: Fix build when using split object directories
authorDave Gerlach <d-gerlach@ti.com>
Wed, 11 Apr 2018 21:15:43 +0000 (16:15 -0500)
committerTony Lindgren <tony@atomide.com>
Wed, 18 Apr 2018 17:07:13 +0000 (10:07 -0700)
commit5692fceebeb7f11c07e2a990f7711a01ae437de2
treea7a49eef9d98f4eda7fb47bde9edeeaefc85be6b
parent60cc43fc888428bb2f18f08997432d426a243338
ARM: OMAP2+: Fix build when using split object directories

The sleep33xx and sleep43xx files should not depend on a header file
generated in drivers/memory. Remove this dependency and instead allow
both drivers/memory and arch/arm/mach-omap2 to generate all macros
needed in headers local to their own paths.

This fixes an issue where the build fail will when using O= to set a
split object directory and arch/arm/mach-omap2 is built before
drivers/memory with the following error:

.../drivers/memory/emif-asm-offsets.c:1:0: fatal error: can't open
drivers/memory/emif-asm-offsets.s for writing: No such file or directory
compilation terminated.

Fixes: 41d9d44d7258 ("ARM: OMAP2+: pm33xx-core: Add platform code needed for PM")
Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/Makefile
arch/arm/mach-omap2/pm-asm-offsets.c
arch/arm/mach-omap2/sleep33xx.S
arch/arm/mach-omap2/sleep43xx.S
drivers/memory/emif-asm-offsets.c
include/linux/ti-emif-sram.h