fix: correct the docker-compose command. (#691)

Co-authored-by: Anna Prosvetova <anna@prosvetova.me>
Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
DF 2021-09-10 08:33:21 +08:00 committed by GitHub
parent f385340b2e
commit 9c39290f12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,13 +67,13 @@ One liner: `./flash_core1_main.sh`
```
3. Prepare the container:
```sh
docker compose up -d
docker-compose up -d
```
## Compile bootloader
```sh
docker compose exec dev make -j$(nproc) -C bootloader TARGET=f6
docker-compose exec dev make -j$(nproc) -C bootloader TARGET=f6
```
Bootloader compilation results:
@ -85,7 +85,7 @@ Bootloader compilation results:
## Compile firmware
```sh
docker compose exec dev make -j$(nproc) -C firmware TARGET=f6
docker-compose exec dev make -j$(nproc) -C firmware TARGET=f6
```
Firmware compilation results:
@ -102,14 +102,14 @@ That's exactly how we generate our `full` builds.
1. Concatenate HEX files:
```sh
docker compose exec dev srec_cat \
docker-compose exec dev srec_cat \
bootloader/.obj/f6/bootloader.hex -Intel \
firmware/.obj/f6/firmware.hex -Intel \
-o firmware/.obj/f6/full.hex -Intel
```
2. Convert HEX to DFU:
```sh
docker compose exec dev hex2dfu \
docker-compose exec dev hex2dfu \
-i firmware/.obj/f6/full.hex \
-o firmware/.obj/f6/full.dfu \
-l "Flipper Zero F6"