-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
All targets (such as bootloader, bootloader-develop and firmware) are defined in the CMake build system. Due to limitations to CMake we need one build directory per compiler: * build will contain everything compiled for ARM. * build-build will contain everything compiled for the *build* machine. When creating the build directory it is now possible to choose "profile" or "CMAKE_BUILD_TYPE". By default we use "RelWithDebInfo". "Debug" will create binaries with less optimizations to simplify debugging. All dependencies are "vendored" into "external" so CMake does not need to fetch sources over the network. Some of them are git submodules and must therefore be initialized with `git submodule update --init`. Address and Undefined behavior santizing is enabled by default when building for the build machine, which means that all unit tests will use those features.
- Loading branch information
Showing
61 changed files
with
1,042 additions
and
1,025 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,11 @@ | ||
build | ||
build-vagrant | ||
version.h | ||
/build/ | ||
/build-*/ | ||
NOTES.md | ||
.vagrant | ||
.DS_Store | ||
.ycm* | ||
*.o | ||
.vagrant/ | ||
*.pyc | ||
*.sw* | ||
*.bak | ||
*.bin | ||
!*.c | ||
.mypy_cache/ | ||
|
||
# gnu global | ||
/src/GPATH | ||
/src/GRTAGS | ||
/src/GTAGS | ||
|
||
.vimrc | ||
external/* | ||
!external/cryptoauthlib | ||
!external/ctaes | ||
!external/FatFs | ||
!external/sha3 | ||
!external/bignum | ||
!external/base32 | ||
!external/CMakeLists.txt | ||
src/generated | ||
py/bitbox02/generated | ||
py/.mypy_cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,9 +71,9 @@ Plug in both the J-Link hardware and the BitBox02 device into USB ports on your | |
|
||
Build the firmware: | ||
``` | ||
git clone https://github.com/shiftdevices/firmware_v2 && cd firmware_v2 | ||
git clone --recurse-submodules https://github.com/shiftdevices/firmware_v2 && cd firmware_v2 | ||
# or via ssh | ||
git clone [email protected]:shiftdevices/firmware_v2.git && cd firmware_v2 | ||
git clone --recurse-submodules [email protected]:shiftdevices/firmware_v2.git && cd firmware_v2 | ||
make firmware # requires a GNU ARM toolchain for cross-compiling | ||
``` | ||
|
||
|
Oops, something went wrong.