Skip to content

Commit

Permalink
Update sdk/xmake.lua
Browse files Browse the repository at this point in the history
Co-authored-by: Nathaniel Wesley Filardo <[email protected]>
  • Loading branch information
rmn30 and nwf authored Jan 22, 2025
1 parent bed499a commit 974e11e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 974e11e

Please sign in to comment.