Skip to content

Commit

Permalink
Add dependency on pigweed (project-chip#1264)
Browse files Browse the repository at this point in the history
* Add dependency on pigweed

Pigweed is a open source project containing libraries and tools for
embedded development. It provides a package management system that
downloads versioned development tools including ARM GCC, cmake, GN,
ninja, openocd, and python on Linux, Mac, & Windows. These packages are
hosted by Google in CIPD, which is part of Chrome's open source
infrastructure.

Using the tools provided by pigweed is not required, but having the
option of using a reproducible development environment is useful,
especially for new developers.

Usage:
  source bootstrap.sh  # first time and after an update
  source activate.sh  # setup environment from prior bootstrap

* Add CHIP branding to bootstrap

Co-authored-by: Keir Mierle <[email protected]>
  • Loading branch information
mspang and keir authored Jun 26, 2020
1 parent ca6a3d9 commit 871ce0b
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .chip-banner.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
▄███▒ ░▓█ ░▓█ ░▓█▓ ▒█████▄
██▒ ▀█▒ ▒█ ▒█ ░█▒ ▒█░ █░
█▓░ ▒██████ ░█▒ ▒█▄▄▄█░
▓█ █▒ ▒█ ▒█ ░█░ ▒█▀
░▓███▀ ░▓███░▓█▒ ░█░ ▒█

3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@
[submodule "examples/common/m5stack-tft/repo"]
path = examples/common/m5stack-tft/repo
url = https://github.com/jeremyjh/ESP32_TFT_library.git
[submodule "third_party/pigweed"]
path = third_party/pigweed
url = https://pigweed.googlesource.com/pigweed/pigweed
6 changes: 6 additions & 0 deletions activate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CHIP_ROOT="$(dirname "$0")"

export PW_BRANDING_BANNER="$CHIP_ROOT/.chip-banner.txt"
export PW_BRANDING_BANNER_COLOR="bold_white"

source "$CHIP_ROOT/third_party/pigweed/activate.sh"
8 changes: 8 additions & 0 deletions bootstrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CHIP_ROOT="$(dirname "$0")"

export PW_BRANDING_BANNER="$CHIP_ROOT/.chip-banner.txt"
export PW_BRANDING_BANNER_COLOR="bold_white"

git submodule update --init

source "$CHIP_ROOT/third_party/pigweed/bootstrap.sh"
1 change: 1 addition & 0 deletions third_party/pigweed
Submodule pigweed added at 16bde6

0 comments on commit 871ce0b

Please sign in to comment.