Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: HelloWorld_CCA01M1 HelloWorld_CCA02M1 CI-data-logger-server HelloWorld_CCA02M1 ... more
This is a fork of the events subdirectory of https://github.com/ARMmbed/mbed-os.
Note, you must import this library with import name: events!!!
Diff: tools/toolchains/gcc.py
- Revision:
- 6393:b4fa50caddef
- Parent:
- 6386:292843bb388f
- Child:
- 6400:0fe3a305252d
--- a/tools/toolchains/gcc.py Wed May 11 16:15:15 2016 +0100
+++ b/tools/toolchains/gcc.py Wed May 11 16:44:31 2016 +0100
@@ -175,7 +175,7 @@
cmd.extend(self.get_dep_option(object))
cmd.extend(["-o", object, source])
-
+
# Call cmdline hook
cmd = self.hook.get_cmdline_compiler(cmd)
@@ -194,13 +194,13 @@
name, _ = splitext(basename(l))
libs.append("-l%s" % name[3:])
libs.extend(["-l%s" % l for l in self.sys_libs])
-
+
# Build linker command
map_file = splitext(output)[0] + ".map"
cmd = self.ld + ["-o", output, "-Wl,-Map=%s" % map_file] + objects + ["-Wl,--start-group"] + libs + ["-Wl,--end-group"]
if mem_map:
cmd.extend(['-T', mem_map])
-
+
for L in lib_dirs:
cmd.extend(['-L', L])
cmd.extend(libs)
@@ -215,7 +215,7 @@
cmd_list = []
for c in cmd[1:]:
if c:
- cmd_list.append(('"%s"' % c) if not c.startswith('-') else c)
+ cmd_list.append(('"%s"' % c) if not c.startswith('-') else c)
string = " ".join(cmd_list).replace("\\", "/")
f.write(string)
@@ -228,7 +228,7 @@
with open(archive_files, "wb") as f:
o_list = []
for o in objects:
- o_list.append('"%s"' % o)
+ o_list.append('"%s"' % o)
string = " ".join(o_list).replace("\\", "/")
f.write(string)
@@ -268,7 +268,7 @@
self.cc += ["-DMBED_RTOS_SINGLE_THREAD"]
self.cppc += ["-DMBED_RTOS_SINGLE_THREAD"]
- if target.name in ["LPC1768", "LPC4088", "LPC4088_DM", "LPC4330", "UBLOX_C027", "LPC2368"]:
+ if target.name in ["LPC1768", "LPC4088", "LPC4088_DM", "LPC4330", "UBLOX_C027", "LPC2368", "ARM_BEETLE_SOC"]:
self.ld.extend(["-u _printf_float", "-u _scanf_float"])
elif target.name in ["RZ_A1H", "VK_RZ_A1H", "ARCH_MAX", "DISCO_F407VG", "DISCO_F429ZI", "DISCO_F469NI", "NUCLEO_F401RE", "NUCLEO_F410RB", "NUCLEO_F411RE", "NUCLEO_F446RE", "ELMO_F411RE", "MTS_MDOT_F411RE", "MTS_DRAGONFLY_F411RE", "DISCO_F746NG"]:
self.ld.extend(["-u_printf_float", "-u_scanf_float"])
@@ -291,4 +291,3 @@
if target.name in ["LPC1768", "LPC4088", "LPC4088_DM", "LPC4330", "UBLOX_C027", "LPC2368"]:
self.ld.extend(["-u _printf_float", "-u _scanf_float"])
self.ld += ["-nostdlib"]
-