mirror of
https://github.com/free-dmo/free-dmo-stm32
synced 2024-08-30 18:12:20 +00:00
Check if SKU is defined before running full makefile
This commit is contained in:
parent
ef27ac0eb9
commit
885071e0c0
5
Makefile
5
Makefile
@ -4,6 +4,11 @@ TARGET = freedmo
|
||||
#DEBUG = 1
|
||||
OPT = -std=c99 -Wall -Os -DDMO_SKU_$(DMO_SKU)
|
||||
|
||||
######################################
|
||||
# Check for SKU variable
|
||||
######################################
|
||||
$(if $(DMO_SKU),,$(error DMO_SKU environment variable must be defined))
|
||||
|
||||
######################################
|
||||
# source
|
||||
######################################
|
||||
|
@ -76,7 +76,7 @@ To compile the firmware from source, perform the following steps:
|
||||
- Windows/macOS/Other Linux:
|
||||
- https://developer.arm.com/downloads/-/gnu-rm
|
||||
- Open the Makefile and modify the first line `GCC_PATH` to point to the GNU ARM embedded toolchain `bin` folder (e.g. `GCC_PATH = ../gcc-arm-none-eabi-10.3-2021.07/bin`)
|
||||
2. Run `make` to compile the firmware
|
||||
2. Run `make DMO_SKU={Desired SKU to compile}` to compile the firmware
|
||||
|
||||
A `freedmo.bin` file will be created in the `build` folder.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user