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:
Kumar Gala 2019-11-01 11:38:36 -05:00 committed by Anas Nashif
commit 00c7ce7942
14 changed files with 2 additions and 38 deletions

View file

@ -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>

View file

@ -12,8 +12,6 @@
*/
OUTPUT_ARCH(xtensa)
#define _LINKER
#define _ASMLANGUAGE
#include <generated_dts_board.h>
#include "memory.h"

View file

@ -10,9 +10,6 @@
* Linker script for the Xtensa platform.
*/
#define _LINKER
#define _ASMLANGUAGE
#include <autoconf.h>
#include <linker/sections.h>