Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小毕学习代码
arduino-esp32
提交
fff17830
A
arduino-esp32
项目概览
小毕学习代码
/
arduino-esp32
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
arduino-esp32
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
fff17830
编写于
8月 14, 2018
作者:
I
Ivan Kravets
提交者:
Me No Dev
8月 14, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Switch to isolated build flags per framework (#1748)
上级
cb53ec48
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
53 addition
and
23 deletion
+53
-23
tools/platformio-build.py
tools/platformio-build.py
+53
-23
未找到文件。
tools/platformio-build.py
浏览文件 @
fff17830
...
...
@@ -34,17 +34,25 @@ platform = env.PioPlatform()
FRAMEWORK_DIR
=
platform
.
get_package_dir
(
"framework-arduinoespressif32"
)
assert
isdir
(
FRAMEWORK_DIR
)
env
.
Prepend
(
CPPDEFINES
=
[
(
"ARDUINO"
,
10805
),
"ARDUINO_ARCH_ESP32"
,
(
"ARDUINO_VARIANT"
,
'
\\
"%s
\\
"'
%
env
.
BoardConfig
().
get
(
"build.variant"
).
replace
(
'"'
,
""
)),
(
"ARDUINO_BOARD"
,
'
\\
"%s
\\
"'
%
env
.
BoardConfig
().
get
(
"name"
).
replace
(
'"'
,
""
))
],
env
.
Append
(
ASFLAGS
=
[
"-x"
,
"assembler-with-cpp"
],
CFLAGS
=
[
"-Wno-old-style-declaration"
],
CFLAGS
=
[
"-std=gnu99"
,
"-Wno-old-style-declaration"
],
CCFLAGS
=
[
"-Os"
,
"-Wall"
,
"-nostdlib"
,
"-Wpointer-arith"
,
"-Wno-error=unused-but-set-variable"
,
"-Wno-error=unused-variable"
,
"-mlongcalls"
,
"-ffunction-sections"
,
"-fdata-sections"
,
"-fstrict-volatile-bitfields"
,
"-Wno-error=deprecated-declarations"
,
"-Wno-error=unused-function"
,
"-Wno-unused-parameter"
,
...
...
@@ -53,6 +61,40 @@ env.Prepend(
"-fexceptions"
],
CXXFLAGS
=
[
"-fno-rtti"
,
"-fno-exceptions"
,
"-std=gnu++11"
],
LINKFLAGS
=
[
"-nostdlib"
,
"-Wl,-static"
,
"-u"
,
"call_user_start_cpu0"
,
"-Wl,--undefined=uxTopUsedPriority"
,
"-Wl,--gc-sections"
,
"-Wl,-EL"
,
"-T"
,
"esp32.common.ld"
,
"-T"
,
"esp32.rom.ld"
,
"-T"
,
"esp32.peripherals.ld"
,
"-T"
,
"esp32.rom.spiram_incompatible_fns.ld"
,
"-u"
,
"ld_include_panic_highint_hdl"
,
"-u"
,
"__cxa_guard_dummy"
,
"-u"
,
"__cxx_fatal_exception"
],
CPPDEFINES
=
[
"ESP32"
,
"ESP_PLATFORM"
,
(
"F_CPU"
,
"$BOARD_F_CPU"
),
"HAVE_CONFIG_H"
,
(
"MBEDTLS_CONFIG_FILE"
,
'
\\
"mbedtls/esp_config.h
\\
"'
),
(
"ARDUINO"
,
10805
),
"ARDUINO_ARCH_ESP32"
,
(
"ARDUINO_VARIANT"
,
'
\\
"%s
\\
"'
%
env
.
BoardConfig
().
get
(
"build.variant"
).
replace
(
'"'
,
""
)),
(
"ARDUINO_BOARD"
,
'
\\
"%s
\\
"'
%
env
.
BoardConfig
().
get
(
"name"
).
replace
(
'"'
,
""
))
],
CPPPATH
=
[
join
(
FRAMEWORK_DIR
,
"tools"
,
"sdk"
,
"include"
,
"config"
),
join
(
FRAMEWORK_DIR
,
"tools"
,
"sdk"
,
"include"
,
"bluedroid"
),
...
...
@@ -98,32 +140,20 @@ env.Prepend(
join
(
FRAMEWORK_DIR
,
"tools"
,
"sdk"
,
"include"
,
"wpa_supplicant"
),
join
(
FRAMEWORK_DIR
,
"cores"
,
env
.
BoardConfig
().
get
(
"build.core"
))
],
LIBPATH
=
[
join
(
FRAMEWORK_DIR
,
"tools"
,
"sdk"
,
"lib"
),
join
(
FRAMEWORK_DIR
,
"tools"
,
"sdk"
,
"ld"
)
],
LIBS
=
[
"gcc"
,
"openssl"
,
"btdm_app"
,
"fatfs"
,
"wps"
,
"coexist"
,
"wear_levelling"
,
"esp_http_client"
,
"hal"
,
"newlib"
,
"driver"
,
"bootloader_support"
,
"pp"
,
"mesh"
,
"smartconfig"
,
"jsmn"
,
"wpa"
,
"ethernet"
,
"phy"
,
"app_trace"
,
"console"
,
"ulp"
,
"wpa_supplicant"
,
"freertos"
,
"bt"
,
"micro-ecc"
,
"cxx"
,
"xtensa-debug-module"
,
"mdns"
,
"vfs"
,
"soc"
,
"core"
,
"sdmmc"
,
"coap"
,
"tcpip_adapter"
,
"c_nano"
,
"esp-tls"
,
"rtc"
,
"spi_flash"
,
"wpa2"
,
"esp32"
,
"app_update"
,
"nghttp"
,
"spiffs"
,
"espnow"
,
"nvs_flash"
,
"esp_adc_cal"
,
"log"
,
"smartconfig_ack"
,
"expat"
,
"m"
,
"c"
,
"heap"
,
"mbedtls"
,
"lwip"
,
"net80211"
,
"pthread"
,
"json"
,
"stdc++"
]
)
],
env
.
Append
(
LIBSOURCE_DIRS
=
[
join
(
FRAMEWORK_DIR
,
"libraries"
)
],
LINKFLAGS
=
[
"-Wl,-EL"
,
"-T"
,
"esp32.common.ld"
,
"-T"
,
"esp32.rom.ld"
,
"-T"
,
"esp32.peripherals.ld"
,
"-T"
,
"esp32.rom.spiram_incompatible_fns.ld"
,
"-u"
,
"ld_include_panic_highint_hdl"
,
"-u"
,
"__cxa_guard_dummy"
,
"-u"
,
"__cxx_fatal_exception"
],
FLASH_EXTRA_IMAGES
=
[
(
"0x1000"
,
join
(
FRAMEWORK_DIR
,
"tools"
,
"sdk"
,
"bin"
,
"bootloader_${BOARD_FLASH_MODE}_${__get_board_f_flash(__env__)}.bin"
)),
(
"0x8000"
,
join
(
env
.
subst
(
"$BUILD_DIR"
),
"partitions.bin"
)),
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录