Skip to content

Commit 1fff5f1

Browse files
Brian BaltzNDG Builder
Brian Baltz
authored and
NDG Builder
committed
Updating compile command and driver lib for new toolchain
Signed-off-by: Brian Baltz <[email protected]>
1 parent f43789e commit 1fff5f1

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

platform.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -D
6868
recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}"
6969

7070
## Combine gc-sections, archives, and objects
71-
recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" "-L{build.path}" "-L{build.variant.path}" -Wl,--whole-archive "-l{build.variant_system_lib}" -Wl,--no-whole-archive -Wl,--start-group "-l{build.variant_system_lib}" -lc -lm -lgcc {object_files} "{build.path}/{archive_file}"
71+
recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" "-L{build.path}" "-L{build.variant.path}" -Wl,--whole-archive "-l{build.variant_system_lib}" -Wl,--no-whole-archive -Wl,--start-group "-l{build.variant_system_lib}" -lnsim -lc -lm -lgcc {object_files} "{build.path}/{archive_file}"
7272

7373
## Create output (.bin file)
7474
recipe.objcopy.bin.pattern="{compiler.path}{compiler.elf2bin.cmd}" {compiler.elf2bin.flags} {compiler.elf2hex.extra_flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.bin"

system/libarc32_arduino101/bootcode/init.S

+5
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2121
.globl _do_fault
2222
.type _do_fault,%function
2323

24+
.globl _exit_halt
25+
.type _exit_halt,%function
26+
2427
.globl _do_isr
2528
.type _do_isr,%function
2629

@@ -57,6 +60,7 @@ _do_reset:
5760
*/
5861
.balign 4
5962
_do_fault:
63+
_exit_halt:
6064
/* Set halt flag */
6165
flag 0x01
6266
nop
@@ -86,3 +90,4 @@ _do_isr:
8690
nop
8791

8892
rtie
93+
-3.67 KB
Binary file not shown.

0 commit comments

Comments
 (0)