summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Becker <tim@presseverykey.com>2022-07-11 09:43:20 +0200
committerTim Becker <tim@presseverykey.com>2022-07-12 07:53:30 +0200
commit820f3c52b2fed7a31e5180e71bd28e18132455a5 (patch)
tree276da2ce2c490de8c7b6b5269fd63e9f7c26711c
parent9219c0b1c44f6a5aa7850bee0bdc9f5d412e95c0 (diff)
downloadmch2022-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--Makefile7
-rw-r--r--README.md4
-rw-r--r--update_components.sh20
3 files changed, 26 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 3d67d92..2edab9b 100644
--- a/Makefile
+++ b/Makefile
@@ -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)
diff --git a/README.md b/README.md
index 0836a45..37e7a2d 100644
--- a/README.md
+++ b/README.md
@@ -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