Skip to content

Commit df32eff

Browse files
committed
Add profiles for default, nanolib, and debug
1 parent ceda396 commit df32eff

File tree

3 files changed

+85
-0
lines changed

3 files changed

+85
-0
lines changed

tools/profiles/debug.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"GCC_ARM": {
3+
"common": ["-c", "-Wall", "-Wextra",
4+
"-Wno-unused-parameter", "-Wno-missing-field-initializers",
5+
"-fmessage-length=0", "-fno-exceptions", "-fno-builtin",
6+
"-ffunction-sections", "-fdata-sections", "-funsigned-char",
7+
"-MMD", "-fno-delete-null-pointer-checks",
8+
"-fomit-frame-pointer", "-O0", "-g"],
9+
"asm": ["-x", "assembler-with-cpp"],
10+
"c": ["-std=gnu99"],
11+
"cxx": ["-std=gnu++98", "-fno-rtti", "-Wvla"],
12+
"ld": ["-Wl,--gc-sections", "-Wl,--wrap,main", "-Wl,--wrap,_malloc_r",
13+
"-Wl,--wrap,_free_r", "-Wl,--wrap,_realloc_r",
14+
"-Wl,--wrap,_calloc_r", "-Wl,--wrap,exit", "-Wl,--wrap,atexit"]
15+
},
16+
"ARM": {
17+
"common": ["-c", "--gnu", "-Otime", "--split_sections",
18+
"--apcs=interwork", "--brief_diagnostics", "--restrict",
19+
"--multibyte_chars", "-O0", "-g"],
20+
"asm": [],
21+
"c": ["--md", "--no_depend_system_headers", "--c99", "-D__ASSERT_MSG"],
22+
"cxx": ["--cpp", "--no_rtti", "--no_vla"],
23+
"ld": []
24+
},
25+
"IAR": {
26+
"common": [
27+
"--no_wrap_diagnostics", "non-native end of line sequence", "-e",
28+
"--diag_suppress=Pa050,Pa084,Pa093,Pa082", "-On", "-r"],
29+
"asm": [],
30+
"c": ["--vla"],
31+
"cxx": ["--guard_calls", "--no_static_destruction"],
32+
"ld": ["--skip_dynamic_initialization", "--threaded_lib"]
33+
}
34+
}

tools/profiles/default.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"GCC_ARM": {
3+
"common": ["-c", "-Wall", "-Wextra",
4+
"-Wno-unused-parameter", "-Wno-missing-field-initializers",
5+
"-fmessage-length=0", "-fno-exceptions", "-fno-builtin",
6+
"-ffunction-sections", "-fdata-sections", "-funsigned-char",
7+
"-MMD", "-fno-delete-null-pointer-checks",
8+
"-fomit-frame-pointer", "-Os"],
9+
"asm": ["-x", "assembler-with-cpp"],
10+
"c": ["-std=gnu99"],
11+
"cxx": ["-std=gnu++98", "-fno-rtti", "-Wvla"],
12+
"ld": ["-Wl,--gc-sections", "-Wl,--wrap,main", "-Wl,--wrap,_malloc_r",
13+
"-Wl,--wrap,_free_r", "-Wl,--wrap,_realloc_r",
14+
"-Wl,--wrap,_calloc_r", "-Wl,--wrap,exit", "-Wl,--wrap,atexit"]
15+
},
16+
"ARM": {
17+
"common": ["-c", "--gnu", "-Otime", "--split_sections",
18+
"--apcs=interwork", "--brief_diagnostics", "--restrict",
19+
"--multibyte_chars", "-O3"],
20+
"asm": [],
21+
"c": ["--md", "--no_depend_system_headers", "--c99", "-D__ASSERT_MSG"],
22+
"cxx": ["--cpp", "--no_rtti", "--no_vla"],
23+
"ld": []
24+
},
25+
"IAR": {
26+
"common": [
27+
"--no_wrap_diagnostics", "-e",
28+
"--diag_suppress=Pa050,Pa084,Pa093,Pa082", "-Oh"],
29+
"asm": [],
30+
"c": ["--vla"],
31+
"cxx": ["--guard_calls", "--no_static_destruction"],
32+
"ld": ["--skip_dynamic_initialization", "--threaded_lib"]
33+
}
34+
}

tools/profiles/nanolib.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"GCC_ARM": {
3+
"common": ["-c", "-Wall", "-Wextra",
4+
"-Wno-unused-parameter", "-Wno-missing-field-initializers",
5+
"-fmessage-length=0", "-fno-exceptions", "-fno-builtin",
6+
"-ffunction-sections", "-fdata-sections", "-funsigned-char",
7+
"-MMD", "-fno-delete-null-pointer-checks",
8+
"-fomit-frame-pointer", "-Os", "-DMBED_RTOS_SINGLE_THREAD"],
9+
"asm": ["-x", "assembler-with-cpp"],
10+
"c": ["-std=gnu99"],
11+
"cxx": ["-std=gnu++98", "-fno-rtti", "-Wvla"],
12+
"ld": ["-Wl,--gc-sections", "-Wl,--wrap,main", "-Wl,--wrap,_malloc_r",
13+
"-Wl,--wrap,_free_r", "-Wl,--wrap,_realloc_r",
14+
"-Wl,--wrap,_calloc_r", "-Wl,--wrap,exit", "-Wl,--wrap,atexit",
15+
"--specs=nano.specs"]
16+
}
17+
}

0 commit comments

Comments
 (0)