mirror of
https://github.com/kamilsss655/uv-k5-firmware-custom
synced 2024-11-22 02:08:48 +00:00
update readme
This commit is contained in:
parent
d7c27d0360
commit
92261a4b81
34
README.md
34
README.md
@ -178,32 +178,14 @@ You can get it from: https://releases.llvm.org/download.html
|
|||||||
If you have docker installed you can use [compile-with-docker.bat](./compile-with-docker.bat) (Windows) or [compile-with-docker.sh](./compile-with-docker.sh) (Linux/Mac), the output files are created in `compiled-firmware` folder. This method gives significantly smaller binaries, I've seen differences up to 1kb, so it can fit more functionalities this way. The challenge can be (or not) installing docker itself.
|
If you have docker installed you can use [compile-with-docker.bat](./compile-with-docker.bat) (Windows) or [compile-with-docker.sh](./compile-with-docker.sh) (Linux/Mac), the output files are created in `compiled-firmware` folder. This method gives significantly smaller binaries, I've seen differences up to 1kb, so it can fit more functionalities this way. The challenge can be (or not) installing docker itself.
|
||||||
|
|
||||||
|
|
||||||
To compile directly in windows:
|
1. To compile:
|
||||||
|
```
|
||||||
1. Open windows command line and run:
|
make docker
|
||||||
```
|
```
|
||||||
winget install -e -h git.git Python.Python.3.8 GnuWin32.Make
|
2. To compile and flash:
|
||||||
winget install -e -h Arm.GnuArmEmbeddedToolchain -v "10 2021.10"
|
```
|
||||||
```
|
make run
|
||||||
2. Close command line, open a new one and run:
|
```
|
||||||
```
|
|
||||||
pip install --user --upgrade pip
|
|
||||||
pip install crcmod
|
|
||||||
mkdir c:\projects & cd /D c:/projects
|
|
||||||
git clone https://github.com/egzumer/uv-k5-firmware-custom.git
|
|
||||||
```
|
|
||||||
3. From now on you can build the firmware by going to `c:\projects\uv-k5-firmware-custom` and running `win_make.bat` or by running a command line:
|
|
||||||
```
|
|
||||||
cd /D c:\projects\uv-k5-firmware-custom
|
|
||||||
win_make.bat
|
|
||||||
```
|
|
||||||
4. To reset the repository and pull new changes run (!!! it will delete all your changes !!!):
|
|
||||||
```
|
|
||||||
cd /D c:\projects\uv-k5-firmware-custom
|
|
||||||
git reset --hard & git clean -fd & git pull
|
|
||||||
```
|
|
||||||
|
|
||||||
I've left some notes in the win_make.bat file to maybe help with stuff.
|
|
||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user