diff options
author | Tim Becker <tim@presseverykey.com> | 2022-07-11 09:43:20 +0200 |
---|---|---|
committer | Tim Becker <tim@presseverykey.com> | 2022-07-12 07:53:30 +0200 |
commit | 820f3c52b2fed7a31e5180e71bd28e18132455a5 (patch) | |
tree | 276da2ce2c490de8c7b6b5269fd63e9f7c26711c | |
parent | 9219c0b1c44f6a5aa7850bee0bdc9f5d412e95c0 (diff) | |
download | mch2022-820f3c52b2fed7a31e5180e71bd28e18132455a5.tar.gz mch2022-820f3c52b2fed7a31e5180e71bd28e18132455a5.tar.bz2 mch2022-820f3c52b2fed7a31e5180e71bd28e18132455a5.zip |
updated components, modified Makefile to not always run idf-install; just run prepare once.
-rw-r--r-- | Makefile | 7 | ||||
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | update_components.sh | 20 |
3 files changed, 26 insertions, 5 deletions
@@ -6,7 +6,7 @@ SHELL := /usr/bin/env bash .PHONY: prepare clean build flash erase monitor menuconfig -all: prepare build +all: install prepare: git submodule update --init --recursive @@ -18,12 +18,9 @@ clean: build: source "$(IDF_PATH)/export.sh" && idf.py build -install: prepare build +install: build python3 tools/webusb_push.py "Template App" build/main.bin --run -erase: - source "$(IDF_PATH)/export.sh" && idf.py erase-flash -p $(PORT) - monitor: source "$(IDF_PATH)/export.sh" && idf.py monitor -p $(PORT) @@ -25,6 +25,10 @@ following table for details. | components/spi-ili9341 | MIT | Nicolai Electronics | | components/ws2812 | Unlicense / Public domain | None | + +Source the `update_components.sh` to update all the submodules to their +corresponding tips. + ## How to make ```sh git clone --recursive https://github.com/badgeteam/mch2022-template-app diff --git a/update_components.sh b/update_components.sh new file mode 100644 index 0000000..f898777 --- /dev/null +++ b/update_components.sh @@ -0,0 +1,20 @@ + +BASE=`pwd` +for component in appfs bus-i2c i2c-bno055 mch2022-bsp mch2022-rp2040 sdcard spi-ice40 spi-ili9341 ws2812; do + cd $BASE/components/$component + git checkout master + git pull + cd $BASE +done + +for component in i2c-bme680 pax-codecs pax-graphics pax-keyboard; do + cd $BASE/components/$component + git checkout main + git pull + cd $BASE +done + +cd $BASE/tools +git checkout master +git pull +cd $BASE |