summaryrefslogtreecommitdiffstats
path: root/arch/openrisc/cpu
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-10-10 08:11:18 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2022-10-11 16:46:25 +0200
commit97e721a5d6a94422115bcce6bf2d8e822284212f (patch)
treebac95f25f5213906d63b3f18cdad52e0cdd8bd47 /arch/openrisc/cpu
parenta857444f4326491297163ba7e53ca98fde2988d4 (diff)
downloadbarebox-97e721a5d6a94422115bcce6bf2d8e822284212f.tar.gz
barebox-97e721a5d6a94422115bcce6bf2d8e822284212f.tar.xz
lds: move OUTPUT_FORMAT/ARCH definition into header
In order to allow us having architecture-indepenent linker scripts, move the definition for the format and the architecture into the new <asm/barebox.lds.h> header file. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20221010061122.2084009-7-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/openrisc/cpu')
-rw-r--r--arch/openrisc/cpu/barebox.lds.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/openrisc/cpu/barebox.lds.S b/arch/openrisc/cpu/barebox.lds.S
index f6999a1134..3fae1af375 100644
--- a/arch/openrisc/cpu/barebox.lds.S
+++ b/arch/openrisc/cpu/barebox.lds.S
@@ -16,7 +16,7 @@
#include <config.h>
#include <asm/barebox.lds.h>
-OUTPUT_FORMAT("elf32-or1k", "elf32-or1k", "elf32-or1k")
+OUTPUT_FORMAT(BAREBOX_OUTPUT_FORMAT)
ENTRY(__reset)
__DYNAMIC = 0;