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.