Skip to content

Commit 951751b

Browse files
Update docs
1 parent 4f48f3e commit 951751b

File tree

3 files changed

+63
-45
lines changed

3 files changed

+63
-45
lines changed

docs/building/esp32.md

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@ Build MicroPythonOS for ESP32 microcontrollers, such as [supported hardware](../
66

77
Clone the required repositories:
88

9-
```bash
9+
```
1010
mkdir ~/MicroPythonOS
1111
cd ~/MicroPythonOS
1212
1313
git clone https://github.com/MicroPythonOS/MicroPythonOS.git
1414
git clone https://github.com/MicroPythonOS/freezeFS
1515
git clone https://github.com/MicroPythonOS/secp256k1-embedded-ecdh
1616
git clone https://github.com/MicroPythonOS/lvgl_micropython
17+
1718
echo " espressif/esp32-camera:
18-
git: https://github.com/cnadler86/esp32-camera.git" > lvgl_micropython/lib/micropython/ports/esp32/main/idf_component.yml
19+
git: https://github.com/MicroPythonOS/esp32-camera" >> lvgl_micropython/lib/micropython/ports/esp32/main/idf_component.yml
1920
2021
git clone https://github.com/cnadler86/micropython-camera-API
2122
pushd micropython-camera-API/
@@ -26,29 +27,33 @@ popd
2627

2728
## Build Process
2829

29-
1. **Navigate to the Repository**:
30+
1. **Navigate to the main repository**:
3031

3132
```
3233
cd ~/MicroPythonOS/MicroPythonOS
3334
```
3435
3536
2. **Build for Production** (includes preinstalled files):
3637
37-
```bash
38+
```
3839
./scripts/build_lvgl_micropython.sh esp32 prod waveshare-esp32-s3-touch-lcd-2
3940
```
4041
4142
or, depending on the device you're building for:
4243
43-
```bash
44+
```
4445
./scripts/build_lvgl_micropython.sh esp32 prod fri3d-2024
4546
```
4647
47-
3. **Build for Development** (no preinstalled files):
48+
3. **Build for Development** (no preinstalled/frozen files):
4849
49-
```bash
50+
```
5051
./scripts/build_lvgl_micropython.sh esp32 dev fri3d-2024
51-
# or
52+
```
53+
54+
or, depending on the device you're building for:
55+
56+
```
5257
./scripts/build_lvgl_micropython.sh esp32 dev waveshare-esp32-s3-touch-lcd-2
5358
```
5459
@@ -58,17 +63,18 @@ popd
5863
5964
2. Flash the firmware:
6065
61-
```bash
66+
```
6267
./scripts/flash_over_usb.sh
6368
```
6469
65-
3. For a development build, fill the filesystem manually:
70+
3. For a development build, fill the filesystem with files manually:
6671
67-
```bash
72+
```
6873
./scripts/install.sh
6974
```
7075
7176
## Notes
7277
78+
- A "dev" build without frozen files is quite a bit slower when starting apps because all the libraries need to be compiled at runtime.
7379
- Ensure your ESP32 is compatible (see [Supported Hardware](../getting-started/supported-hardware.md)).
7480
- Refer to [Release Checklist](release-checklist.md) for creating a production release.

docs/building/release-checklist.md

Lines changed: 45 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,54 @@
22

33
Follow these steps to create a new release of MicroPythonOS.
44

5-
1. **Update Version Numbers**:
5+
**Update Changelog**:
6+
7+
Document changes in `CHANGELOG.md`.
8+
9+
**Update Version Numbers**:
10+
611
- Increment `CURRENT_OS_VERSION` in `internal_filesystem/lib/mpos/info.py`.
712
- Update version numbers for modified apps:
8-
```bash
9-
git diff --stat 0.0.4 internal_filesystem/ # Check changes since last release
10-
git diff 0.0.4 -- internal_filesystem/apps/*/META-INF/* # Check app manifests
11-
git diff 0.0.4 -- internal_filesystem/builtin/apps/*/META-INF/* # Check built-in app manifests
12-
```
13-
14-
2. **Update Changelog**:
15-
- Document changes in `CHANGELOG`.
16-
17-
3. **Commit and Tag**:
18-
- Commit all changes.
19-
- Tag the main repository and external repositories (e.g., LightningPiggy):
20-
```bash
21-
git tag -a vX.Y.Z -m "Release vX.Y.Z"
22-
git push --tags
23-
```
24-
25-
4. **Build and Release**:
26-
- Bundle apps:
27-
```bash
28-
./scripts/bundle_apps.sh
29-
```
30-
- Build for production:
31-
```bash
32-
./scripts/build_lvgl_micropython.sh esp32 prod
33-
```
34-
- Release to update and install servers:
35-
```bash
36-
./scripts/release_to_updates.sh
37-
./scripts/release_to_install.sh
38-
```
13+
14+
```bash
15+
git diff --stat 0.0.4 internal_filesystem/ # Check changes since last release
16+
git diff 0.0.4 -- internal_filesystem/apps/*/META-INF/* # Check app manifests
17+
git diff 0.0.4 -- internal_filesystem/builtin/apps/*/META-INF/* # Check built-in app manifests
18+
```
19+
20+
**Commit and push** all changes, also in external repositories (e.g., [LightningPiggy](https://github.com/LightningPiggy/LightningPiggyApp)):
21+
22+
**Bundle and publish apps**:
23+
24+
```bash
25+
./scripts/bundle_apps.sh
26+
pushd ../apps/
27+
git add apps/
28+
git commit -a
29+
git push
30+
```
31+
32+
**Build for all supported devices**
33+
34+
```bash
35+
./scripts/build_all.sh
36+
```
37+
38+
**Release to GitHub**
39+
40+
- Upload ``` ../build_outputs/ ``` to a [new GitHub release](https://github.com/MicroPythonOS/MicroPythonOS/releases/new)
41+
- Add the CHANGELOG.md
42+
- Tag the code with the new release
43+
44+
**Copy the builds to the [install](https://github.com/MicroPythonOS/install) and [updates](https://github.com/MicroPythonOS/updates) repositories**:
45+
46+
This is a manual action, but check out these old scripts for inspiration:
47+
```bash
48+
scripts/release_to_updates.sh
49+
scripts/release_to_install.sh
50+
```
3951

4052
## Notes
4153

42-
- Ensure all repositories are synchronized before tagging.
54+
- Ensure all repositories are pushed before tagging.
4355
- Verify builds on target hardware (see [Building for ESP32](esp32.md)).

docs/getting-started/supported-hardware.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ MicroPythonOS runs on a variety of platforms, from microcontrollers to desktops.
44

55
## ESP32 Microcontrollers
66

7-
- [Fri3d Camp 2024 Badge](https://fri3d.be/badge/2024/)
87
- [Waveshare ESP32-S3-Touch-LCD-2](https://www.waveshare.com/wiki/ESP32-S3-Touch-LCD-2): Fully Supported
8+
- [Fri3d Camp 2024 Badge](https://fri3d.be/badge/2024/): Good support but missing a bit of hardware support (IMU, Buzzer, Multi-Color LEDs, Communicator Add-On)
99

1010
## Desktop Computers
1111

0 commit comments

Comments
 (0)