Merge pull request #292 from WesleyAC/error-when-no-color
Don't allow building without setting board color.
This commit is contained in:
commit
0263d9e0c7
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@ -6,6 +6,9 @@ on:
|
|||||||
branches-ignore:
|
branches-ignore:
|
||||||
- gh-pages
|
- gh-pages
|
||||||
|
|
||||||
|
env:
|
||||||
|
COLOR: BLUE
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
container:
|
container:
|
||||||
|
4
make.mk
4
make.mk
@ -207,6 +207,10 @@ ifeq ($(LED), BLUE)
|
|||||||
CFLAGS += -DWATCH_IS_BLUE_BOARD
|
CFLAGS += -DWATCH_IS_BLUE_BOARD
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifndef COLOR
|
||||||
|
$(error Set the COLOR variable to RED, BLUE, or GREEN depending on what board you have.)
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(COLOR), BLUE)
|
ifeq ($(COLOR), BLUE)
|
||||||
CFLAGS += -DWATCH_IS_BLUE_BOARD
|
CFLAGS += -DWATCH_IS_BLUE_BOARD
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user