linker: move where we define _LINKER and _ASMLANGUAGE
Move _LINKER and _ASMLANGUAGE to target.cmake because of how we pick the linker script that might be used. This way regardless of how or where a linker.ld gets included we will always set _LINKER & _ASMLANGUAGE (so any header that needs check based on those defines they can, specifically generated_dts_board.h) Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
c8e5ca3852
commit
00c7ce7942
14 changed files with 2 additions and 38 deletions
|
@ -11,9 +11,6 @@
|
|||
* Linker script for the Xtensa platform.
|
||||
*/
|
||||
|
||||
#define _LINKER
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <generated_dts_board.h>
|
||||
#include <autoconf.h>
|
||||
#include <linker/sections.h>
|
||||
|
|
|
@ -12,8 +12,6 @@
|
|||
*/
|
||||
|
||||
OUTPUT_ARCH(xtensa)
|
||||
#define _LINKER
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <generated_dts_board.h>
|
||||
#include "memory.h"
|
||||
|
|
|
@ -10,9 +10,6 @@
|
|||
* Linker script for the Xtensa platform.
|
||||
*/
|
||||
|
||||
#define _LINKER
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <autoconf.h>
|
||||
#include <linker/sections.h>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue