[core] Use GCC 10.3.1 with -Os for all families
This commit is contained in:
@@ -9,6 +9,8 @@ extern "C" {
|
||||
|
||||
extern int uart_print_port;
|
||||
|
||||
void __sync_synchronize(void) {}
|
||||
|
||||
} // extern "C"
|
||||
|
||||
beken_thread_t mainThread;
|
||||
|
||||
@@ -43,13 +43,13 @@ env.Append(
|
||||
"-mthumb",
|
||||
"-mthumb-interwork",
|
||||
"-g",
|
||||
"-O2",
|
||||
"-Os",
|
||||
"-fdata-sections",
|
||||
"-ffunction-sections",
|
||||
"-fno-inline-functions",
|
||||
"-fno-strict-aliasing",
|
||||
"-fsigned-char",
|
||||
"-Wno-comment",
|
||||
"-Werror=implicit-function-declaration",
|
||||
],
|
||||
CFLAGS=[
|
||||
"-std=gnu99",
|
||||
@@ -57,6 +57,7 @@ env.Append(
|
||||
"-Wall",
|
||||
"-Wno-format",
|
||||
"-Wno-unknown-pragmas",
|
||||
"-Werror=implicit-function-declaration",
|
||||
],
|
||||
CXXFLAGS=[
|
||||
"-std=gnu++11",
|
||||
@@ -64,6 +65,8 @@ env.Append(
|
||||
"-fno-exceptions",
|
||||
"-fno-rtti",
|
||||
"-Wno-literal-suffix",
|
||||
"-Wno-psabi",
|
||||
"-Wno-return-type",
|
||||
],
|
||||
CPPDEFINES=[
|
||||
# LibreTuya configuration
|
||||
@@ -364,6 +367,8 @@ env.AddLibrary(
|
||||
CCFLAGS=[
|
||||
"-Wno-unused-variable",
|
||||
"-Wno-implicit-function-declaration",
|
||||
"-Wno-incompatible-pointer-types",
|
||||
"-Wno-int-conversion",
|
||||
],
|
||||
CFLAGS=["-<-Wall>"],
|
||||
),
|
||||
|
||||
@@ -16,9 +16,10 @@ env.Append(
|
||||
"-mfpu=fpv4-sp-d16",
|
||||
"-g2",
|
||||
"-w",
|
||||
"-O2",
|
||||
"-Os",
|
||||
"-fdata-sections",
|
||||
"-ffunction-sections",
|
||||
"-fno-inline-functions",
|
||||
"-fmessage-length=0",
|
||||
"-fno-common",
|
||||
"-fno-short-enums",
|
||||
|
||||
@@ -44,9 +44,7 @@
|
||||
"optional": true,
|
||||
"version": "https://github.com/libretuya/framework-realtek-amb1#v2022.06.21",
|
||||
"toolchains": {
|
||||
"any": "gccarmnoneeabi@~1.50201.0",
|
||||
"arm": "gccarmnoneeabi@~1.100301.0",
|
||||
"linux_x86_64": "gccarmnoneeabi@~1.100301.0"
|
||||
"any": "gccarmnoneeabi@~1.100301.0"
|
||||
},
|
||||
"libraries": {
|
||||
"lwip": [
|
||||
@@ -67,8 +65,7 @@
|
||||
"optional": true,
|
||||
"version": "https://github.com/libretuya/framework-beken-bdk#v2021.06.07",
|
||||
"toolchains": {
|
||||
"any":"gccarmnoneeabi@~1.40804.0",
|
||||
"arm": "gccarmnoneeabi@~1.40803.0"
|
||||
"any":"gccarmnoneeabi@~1.100301.0"
|
||||
},
|
||||
"libraries": {
|
||||
"lwip": [
|
||||
|
||||
Reference in New Issue
Block a user