diff --git a/tools/export/atmelstudio.py b/tools/export/atmelstudio.py index 7b69d201184..96e713a9cec 100644 --- a/tools/export/atmelstudio.py +++ b/tools/export/atmelstudio.py @@ -71,6 +71,7 @@ def generate(self): 'solution_uuid': solution_uuid.upper(), 'project_uuid': project_uuid.upper() } + ctx.update(self.progen_flags) target = self.target.lower() self.gen_file('atmelstudio6_2.atsln.tmpl', ctx, '%s.atsln' % self.program_name) self.gen_file('atmelstudio6_2.cppproj.tmpl', ctx, '%s.cppproj' % self.program_name) diff --git a/tools/export/atmelstudio6_2.cppproj.tmpl b/tools/export/atmelstudio6_2.cppproj.tmpl index 98696b30b58..8af32129936 100644 --- a/tools/export/atmelstudio6_2.cppproj.tmpl +++ b/tools/export/atmelstudio6_2.cppproj.tmpl @@ -60,7 +60,7 @@ Optimize for size (-Os) True True - -std=gnu99 -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections -fomit-frame-pointer -MMD -MP + {{c_flags|join(" ")}} {{common_flags|join(" ")}} -MMD -MP NDEBUG @@ -77,7 +77,7 @@ Optimize for size (-Os) True True - -std=gnu++98 -fno-rtti -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections -fomit-frame-pointer -MMD -MP + {{cxx_flags|join(" ")}} {{common_flags|join(" ")}} -MMD -MP libm @@ -88,7 +88,7 @@ True - {% for p in library_paths %}-L../{{p}} {% endfor %} {% for f in object_files %}../{{f}} {% endfor %} {% for lib in libraries %}-l{{lib}} {% endfor %} -T../{{linker_script}} -Wl,--gc-sections --specs=nano.specs -u _printf_float -u _scanf_float -Wl,--wrap,main -Wl,--cref -lstdc++ -lsupc++ -lm -lgcc -Wl,--start-group -lc -lc -lnosys -Wl,--end-group + {% for p in library_paths %}-L../{{p}} {% endfor %} {% for f in object_files %}../{{f}} {% endfor %} {% for lib in libraries %}-l{{lib}} {% endfor %} -T../{{linker_script}} {{ld_flags|join(" ")}} {{common_flags|join(" ")}} {% for i in include_paths %}../{{i}} @@ -123,7 +123,7 @@ True Maximum (-g3) True - -std=gnu99 -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections -fomit-frame-pointer -MMD -MP + {{c_flags|join(" ")}} {{common_flags|join(" ")}} -MMD -MP DEBUG @@ -141,7 +141,7 @@ True Maximum (-g3) True - -std=gnu++98 -fno-rtti -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections -fomit-frame-pointer -MMD -MP + {{cxx_flags|join(" ")}} {{common_flags|join(" ")}} -MMD -MP libm @@ -152,7 +152,7 @@ True - {% for p in library_paths %}-L../{{p}} {% endfor %} {% for f in object_files %}../{{f}} {% endfor %} {% for lib in libraries %}-l{{lib}} {% endfor %} -T../{{linker_script}} -Wl,--gc-sections --specs=nano.specs -u _printf_float -u _scanf_float -Wl,--wrap,main -Wl,--cref -lstdc++ -lsupc++ -lm -lgcc -Wl,--start-group -lc -lc -lnosys -Wl,--end-group + {% for p in library_paths %}-L../{{p}} {% endfor %} {% for f in object_files %}../{{f}} {% endfor %} {% for lib in libraries %}-l{{lib}} {% endfor %} -T../{{linker_script}} {{ld_flags|join(" ")}} {{common_flags|join(" ")}} Default (-g) @@ -173,4 +173,4 @@ {% endfor %} - \ No newline at end of file + diff --git a/tools/export/codered.py b/tools/export/codered.py index c502096fe30..6685dadc609 100644 --- a/tools/export/codered.py +++ b/tools/export/codered.py @@ -53,5 +53,6 @@ def generate(self): 'libraries': libraries, 'symbols': self.get_symbols() } + ctx.update(self.progen_flags) self.gen_file('codered_%s_project.tmpl' % self.target.lower(), ctx, '.project') self.gen_file('codered_%s_cproject.tmpl' % self.target.lower(), ctx, '.cproject') diff --git a/tools/export/codered_cproject_common.tmpl b/tools/export/codered_cproject_common.tmpl index b71f1315560..344782ff34f 100644 --- a/tools/export/codered_cproject_common.tmpl +++ b/tools/export/codered_cproject_common.tmpl @@ -34,7 +34,7 @@ {% endfor %} - - - -