1 Star 1 Fork 2

谢锋/Grbl_Esp32

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build-machine.py 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
bdring 提交于 2020-07-20 16:40 . Devt merge to Master (#487)
#!/usr/bin/env python
# Compile Grbl_ESP32 for each of the machines defined in Machines/ .
# Add-on files are built on top of a single base.
# This is useful for automated testing, to make sure you haven't broken something
# The output is filtered so that the only lines you see are a single
# success or failure line for each build, plus any preceding lines that
# contain the word "error". If you need to see everything, for example to
# see the details of an errored build, include -v on the command line.
from __future__ import print_function
from builder import buildMachine
import os, sys
extraArgs=None
verbose = '-v' in sys.argv or '-q' not in sys.argv
if '-v' in sys.argv:
sys.argv.remove('-v')
if '-q' in sys.argv:
sys.argv.remove('-q')
if '-u' in sys.argv:
sys.argv.remove('-u')
extraArgs = '--target=upload'
exitCode = 255
if len(sys.argv) == 2:
exitCode = buildMachine(sys.argv[1], verbose=verbose, extraArgs=extraArgs)
else:
print("Usage: ./build-machine.py [-q] [-u] machine_name.h")
print(' Build for the given machine regardless of machine.h')
print(' -q suppresses most messages')
print(' -u uploads to the target after compilation')
sys.exit(exitCode)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xiefeng3321/Grbl_Esp32.git
git@gitee.com:xiefeng3321/Grbl_Esp32.git
xiefeng3321
Grbl_Esp32
Grbl_Esp32
main

搜索帮助