Skip to content

Commit e9cf586

Browse files
Cleanup build instructions
1 parent e4658a6 commit e9cf586

4 files changed

Lines changed: 48 additions & 51 deletions

File tree

docs/os-development/compiling.md

Lines changed: 39 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,49 @@
1-
## Compile the code
1+
## Download the code
2+
3+
Clone the repositories:
4+
5+
```
6+
git clone --recurse-submodules https://github.com/MicroPythonOS/MicroPythonOS.git
7+
cd MicroPythonOS/
8+
```
9+
10+
That will take a while, because it recursively clones MicroPython, LVGL, ESP-IDF and all their dependencies.
11+
12+
#### Optional: updating the code
213

3-
1. **Make sure you're in the main repository**:
14+
If you already have an old clone and you want to update it, the easiest is to just delete it and re-clone.
15+
16+
But if you need to save on bandwidth and time, you can instead do the following, which will *throw away all local modifications*:
17+
18+
```
19+
cd MicroPythonOS/
20+
git submodule foreach --recursive 'git clean -f; git checkout .'
21+
git pull --recurse-submodules
22+
```
23+
24+
## Compile the code
425

5-
```
6-
cd MicroPythonOS/
7-
```
26+
Use the build_mpos.sh script for convenience.
827

9-
2. **Start the Compilation**
28+
Usage:
1029

11-
Usage:
30+
```
31+
./scripts/build_mpos.sh <target system>
32+
```
1233

13-
<pre>
14-
```
15-
./scripts/build_mpos.sh <target system>
16-
```
17-
</pre>
34+
**Target systems**: `esp32`, `unix` (= Linux) and `macOS`
1835

19-
**Target systems**: `esp32`, `unix` (= Linux) and `macOS`
20-
21-
**Examples**:
36+
**Examples**:
2237

23-
<pre>
24-
```
25-
./scripts/build_mpos.sh esp32
26-
./scripts/build_mpos.sh unix
27-
./scripts/build_mpos.sh macOS
28-
```
29-
</pre>
38+
```
39+
./scripts/build_mpos.sh esp32
40+
./scripts/build_mpos.sh unix
41+
./scripts/build_mpos.sh macOS
42+
```
3043

31-
The resulting build file will be in `lvgl_micropython/build/`, for example:
44+
The resulting build file will be in `lvgl_micropython/build/`, for example:
3245

33-
- `lvgl_micropython/build/lvgl_micropy_unix`
34-
- `lvgl_micropython/build/lvgl_micropy_macOS`
35-
- `lvgl_micropython/build/lvgl_micropy_ESP32_GENERIC_S3-SPIRAM_OCT-16.bin`
46+
- `lvgl_micropython/build/lvgl_micropy_unix`
47+
- `lvgl_micropython/build/lvgl_micropy_macOS`
48+
- `lvgl_micropython/build/lvgl_micropy_ESP32_GENERIC_S3-SPIRAM_OCT-16.bin`
3649

docs/os-development/linux.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
11
# OS Development on Linux
22

3-
Most users can just use a pre-built binary from the [releases page](https://github.com/MicroPythonOS/MicroPythonOS/releases) and install it manually or using the [web installer](https://install.MicroPythonOS.com).
3+
Most users can simply use a pre-built binary from the [releases page](https://github.com/MicroPythonOS/MicroPythonOS/releases) and install it [manually](installing-on-esp32.md) or using the [web installer](https://install.MicroPythonOS.com).
44

5-
But if for some reason that one doesn't work, or you really want to modify things under the hood, you're in the right place here!
5+
But if you want to modify things under the hood, you're in the right place!
66

77
## Get the prerequisites
88

9-
Clone the repositories:
10-
11-
```
12-
git clone --recurse-submodules https://github.com/MicroPythonOS/MicroPythonOS.git
13-
```
14-
15-
That will take a while, because it recursively clones MicroPython, LVGL, ESP-IDF and all their dependencies.
16-
17-
While that's going on, make sure you have everything installed to compile code:
9+
Make sure you have everything installed to compile code:
1810

1911
```
2012
sudo apt update

docs/os-development/macos.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
11
# OS Development on MacOS
22

3-
If you're looking to install MicroPythonOS on a supported device, you can probably just use a pre-built binary from the [releases page](https://github.com/MicroPythonOS/MicroPythonOS/releases) and install it on the device, either manually or with the [web installer](https://install.MicroPythonOS.com).
3+
Most users can simply use a pre-built binary from the [releases page](https://github.com/MicroPythonOS/MicroPythonOS/releases) and install it [manually](installing-on-esp32.md) or using the [web installer](https://install.MicroPythonOS.com).
44

5-
But if for some reason that one doesn't work, or you really want to modify things under the hood, you're in the right place here!
5+
But if you want to modify things under the hood, you're in the right place!
66

77
## Get the prerequisites
88

9-
Clone the repositories:
10-
11-
```
12-
git clone --recurse-submodules https://github.com/MicroPythonOS/MicroPythonOS.git
13-
```
14-
15-
That will take a while, because it recursively clones MicroPython, LVGL, ESP-IDF and all their dependencies.
16-
17-
While that's going on, make sure you have everything installed to compile code:
9+
Make sure you have everything installed to compile code:
1810

1911
```
2012
xcode-select --install

docs/os-development/running-on-desktop.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515

1616
2. Make sure you have the software
1717

18-
If you built from source, then you will already have the software in lvgl_micropython/build/lvgl_micropy_*
18+
If you built from source, then you will already have the software in `lvgl_micropython/build/lvgl_micropy_*`
1919

20-
If you downloaded a pre-built binary (for example /Users/yourname/MicroPythonOS_amd64_MacOS_0.7.1.bin) then put it in the right location now:
20+
If you downloaded a pre-built binary (for example `/Users/yourname/MicroPythonOS_amd64_MacOS_0.7.1.bin`) then put it in the right location now:
2121

2222
<pre>
2323
```
@@ -38,7 +38,7 @@
3838

3939
### Notes on MacOS
4040

41-
If you get an error about a missing /opt/homebrew/opt/libffi/lib/libffi.8.dylib then fix that with: `brew install libffi`
41+
If you get an error about a missing `/opt/homebrew/opt/libffi/lib/libffi.8.dylib` then fix that with: `brew install libffi`
4242

4343
If you get an error about the code being unsigned, then allow it like this:
4444

0 commit comments

Comments
 (0)