diff --git a/README.md b/README.md index 3d68cf1..07bc82c 100644 --- a/README.md +++ b/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. -To compile directly in windows: - -1. Open windows command line and run: - ``` - winget install -e -h git.git Python.Python.3.8 GnuWin32.Make - winget install -e -h Arm.GnuArmEmbeddedToolchain -v "10 2021.10" - ``` -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. +1. To compile: +``` +make docker +``` +2. To compile and flash: +``` +make run +``` ## Credits