From 974e11e3f1b59d3b27a4bae7299fac2b3019d445 Mon Sep 17 00:00:00 2001 From: Robert Norton <1412774+rmn30@users.noreply.github.com> Date: Wed, 22 Jan 2025 11:46:44 +0000 Subject: [PATCH] Update sdk/xmake.lua Co-authored-by: Nathaniel Wesley Filardo --- sdk/xmake.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/xmake.lua b/sdk/xmake.lua index c7feda38..827d6128 100644 --- a/sdk/xmake.lua +++ b/sdk/xmake.lua @@ -571,8 +571,8 @@ rule("firmware") local code_start = format("0x%x", board.instruction_memory.start); -- Put the data either at the specified address if given, or directly after code local data_start = board.data_memory and format("0x%x", board.data_memory.start) or '.'; - local rwdata_ldscript = "build/" .. target:name() .. "-firmware.rwdata.ldscript"; - local rocode_ldscript = "build/" .. target:name() .. "-firmware.rocode.ldscript" + local rwdata_ldscript = path.join(config.buildir(), target:name() .. "-firmware.rwdata.ldscript") + local rocode_ldscript = path.join(config.buildir(), target:name() .. "-firmware.rocode.ldscript") if not board.data_memory or (board.instruction_memory.start < board.data_memory.start) then -- If we're not explicilty given a data address or it's lower than the code address -- then code needs to go first in the linker script.