forked from rbarzic/nrf5x-dk-gcc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
76 lines (51 loc) · 1.39 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
PROJECT_NAME=test
C_SOURCE_FILES := $(wildcard src/*.c)
SRCS_AS :=
INC_PATHS := -I.
#DEVICE = NRF51
DEVICE = NRF52
#BOARD=BOARD_PCA10028
BOARD=BOARD_PCA10036
#CHIP=nRF51822-QFAA
#CHIP=nRF51822-CEAA
#CHIP=nRF51822-QFAB
#CHIP=nRF51822-CDAB
#CHIP=nRF51822-QFAC
#CHIP=nRF51822-CFAC
#CHIP=nRF51422-QFAA
#CHIP=nRF51422-CEAA
#CHIP=nRF51422-QFAB
#CHIP=nRF51422-CDAB
## nRF51-DK : CHIP=nRF51422-QFAC
#CHIP=nRF51422-QFAC
CHIP=nRF52832-QFAA
#SDK_TYPE=8.x.x
#SDK_VERSION=nRF51_SDK_8.1.0_b6ed55f
#SDK_URL=http://developer.nordicsemi.com/nRF51_SDK/nRF51_SDK_v8.x.x
SDK_TYPE=0.x.x
SDK_VERSION=nRF52_SDK_0.9.0_0c82e3e
SDK_URL=http://developer.nordicsemi.com/nRF52_SDK/nRF52_SDK_v0.x.x/
#SDK_TYPE=7.x.x
#SDK_VERSION=nRF51_SDK_7.2.0_cf547b5
#SDK_URL=http://developer.nordicsemi.com/nRF51_SDK/nRF51_SDK_v7.x.x
SDK_INSTALL_DIR=../../nordic
USE_SOFT_DEVICE=no
# list SDK modules used (see misc/SDK_Makefile.mk)
# Startup code
SDK_TOOLCHAIN_GCC=yes
SDK_DRIVERS_NRF_HAL=yes
# SDK for nRF52 has a different structure
# here are some lib/drivers that are almost always required
ifeq ($(DEVICE),NRF52)
SDK_DRIVERS_NRF_DELAY=yes
SDK_LIBRARIES_UTIL=yes
# Fixme below - only if no Soft Device used
SDK_DRIVERS_NRF_NRF_SOC_NOSD=yes
endif
# Don't touch lines below
include misc/nRF51_Devices.mk
include misc/nRF52_Devices.mk
-include misc/SDK_Makefile.mk
include misc/Main.mk
include misc/nrftools_jlink.mk
include misc/check.mk