bboydt / scons-dfu

A SCons tool for creating DFU files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

scons-dfu 📥

A SCons tool for creating DFU files.

How to use

  1. Add dfu.py into your SCons tools (i.e. site_scons/site_tools/).
    or
    Add this repo as a submodule to your repo and add its path to toolpath in your environment.
  2. Include the tool in your environment and configure flags. See the tool files for construction variable names.
env = Environment(tools = ['dfu', ...], DFUSUFFIXFLAGS = "-p <pid> -v <vid>", ...)
  1. Build a DFU file!
firmware_dfu = env.DfuPrefix("firmware.dfu", "firmware.bin")
# or
firmware_dfu = env.DfuSuffix("firmware.dfu", "firmware.bin")

About

A SCons tool for creating DFU files.


Languages

Language:Python 100.0%