File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change
1
+ # Select the board to build for: if not given on the command line,
2
+ # then default to PYBV10.
3
+ BOARD ?= PYBV10
4
+ ifeq ($(wildcard boards/$(BOARD ) /.) ,)
5
+ $(error Invalid BOARD specified)
6
+ endif
7
+
8
+ # If the build directory is not given, make it reflect the board name.
9
+ BUILD ?= build-$(BOARD )
10
+
1
11
include ../py/mkenv.mk
2
12
3
13
# qstr definitions (must come before including py.mk)
@@ -32,10 +42,6 @@ INC += -I$(CC3K_DIR)
32
42
CFLAGS_CORTEX_M4 = -mthumb -mtune=cortex-m4 -mabi=aapcs-linux -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fsingle-precision-constant -Wdouble-promotion
33
43
CFLAGS = $(INC ) -Wall -Werror -ansi -std=gnu99 $(CFLAGS_CORTEX_M4 ) $(COPT )
34
44
35
- BOARD ?= PYBV10
36
- ifeq ($(wildcard boards/$(BOARD ) /.) ,)
37
- $(error Invalid BOARD specified)
38
- endif
39
45
CFLAGS += -Iboards/$(BOARD )
40
46
41
47
# Debugging/Optimization
You can’t perform that action at this time.
0 commit comments