Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
tools-mirror
Micropython
提交
273ba28c
M
Micropython
项目概览
tools-mirror
/
Micropython
12 个月 前同步成功
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
Micropython
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
273ba28c
编写于
6月 23, 2023
作者:
D
Damien George
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tools/autobuild: Update auto-build code to build esp32 port with IDF v5.
Signed-off-by:
N
Damien George
<
damien@micropython.org
>
上级
6a9db521
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
5 addition
and
41 deletion
+5
-41
tools/autobuild/autobuild.sh
tools/autobuild/autobuild.sh
+4
-11
tools/autobuild/build-boards.sh
tools/autobuild/build-boards.sh
+1
-30
未找到文件。
tools/autobuild/autobuild.sh
浏览文件 @
273ba28c
...
...
@@ -4,8 +4,7 @@
#
# Requirements:
# - All toolchains must be in path (arm-none-eabi-gcc, xtensa-lx106-elf)
# - IDF_PATH_V42 must be set
# - IDF_PATH_V44 must be set
# - IDF_PATH_V50 must be set
# - MICROPY_AUTOBUILD_MICROPYTHON_REPO must be set to location of micropython repository
# - MICROPY_AUTOBUILD_MAKE must be set to the make command to use, eg "make -j2"
#
...
...
@@ -13,13 +12,8 @@
# - MICROPY_AUTOBUILD_REMOTE_MACHINE can be set to a remote ssh machine to copy files to
# - MICROPY_AUTOBUILD_REMOTE_DIR can be set to destination directory on remote machine
if
[
!
-d
"
$IDF_PATH_V42
"
]
;
then
echo
"must set IDF_PATH_V42"
exit
1
fi
if
[
!
-d
"
$IDF_PATH_V44
"
]
;
then
echo
"must set IDF_PATH_V44"
if
[
!
-d
"
$IDF_PATH_V50
"
]
;
then
echo
"must set IDF_PATH_V50"
exit
1
fi
...
...
@@ -70,8 +64,7 @@ ${AUTODIR}/build-cc3200-latest.sh ${FW_TAG} ${LOCAL_FIRMWARE}
cd
../esp8266
${
AUTODIR
}
/build-esp8266-latest.sh
${
FW_TAG
}
${
LOCAL_FIRMWARE
}
cd
../esp32
(
source
${
IDF_PATH_V42
}
/export.sh
&&
build_esp32_boards
${
FW_TAG
}
${
LOCAL_FIRMWARE
}
)
(
source
${
IDF_PATH_V44
}
/export.sh
&&
build_esp32_boards
${
FW_TAG
}
${
LOCAL_FIRMWARE
}
)
(
source
${
IDF_PATH_V50
}
/export.sh
&&
build_esp32_boards
${
FW_TAG
}
${
LOCAL_FIRMWARE
}
)
cd
../mimxrt
build_mimxrt_boards
${
FW_TAG
}
${
LOCAL_FIRMWARE
}
cd
../nrf
...
...
tools/autobuild/build-boards.sh
浏览文件 @
273ba28c
...
...
@@ -62,36 +62,7 @@ function build_boards {
}
function
build_esp32_boards
{
# check/get parameters
if
[
$#
!=
2
]
;
then
echo
"usage:
$0
<fw-tag> <dest-dir>"
return
1
fi
fw_tag
=
$1
dest_dir
=
$2
# check we are in the correct directory
if
[
!
-r
modesp32.c
]
;
then
echo
"must be in esp32 directory"
return
1
fi
# build the boards, based on the IDF version
for
board_json
in
$(
find boards/
-name
board.json |
sort
)
;
do
mcu
=
$(
cat
$board_json
| python3
-c
"import json,sys; print(json.load(sys.stdin).get('mcu', 'unknown'))"
)
if
idf.py
--version
|
grep
-q
v4.2
;
then
if
[
$mcu
=
esp32
]
;
then
# build standard esp32-based boards with IDF v4.2
build_board
$board_json
$fw_tag
$dest_dir
bin elf map
fi
else
if
[
$mcu
!=
esp32
]
;
then
# build esp32-s2/s3/c3 based boards with IDF v4.4+
build_board
$board_json
$fw_tag
$dest_dir
bin elf map uf2
fi
fi
done
build_boards modesp32.c
$1
$2
bin elf map uf2
}
function
build_mimxrt_boards
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录