forked from wirenboard/wb-embedded-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (25 loc) · 853 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (25 loc) · 853 Bytes
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
#######################################
# MODEL defines list
#######################################
MODEL_LIST = MODEL_WB74
#######################################
# variabes
#######################################
SRC_DIR = src
INCLUDE_DIR = include system/common
SUBMODULES_DIR = libfixmath/libfixmath
#order important
LDSCRIPT = stm32g030x6_noboot.ld
LDSCRIPT += wbmcu_noboot_clean.ld
OPT = -Os
CPU_FAMILY = -mcpu=cortex-m0plus
CPU = STM32G030
HSE_VALUE = 8000000
STACK_SIZE = 512
# need to clear this or Debian builder will accumulate all the flags
# from the previous steps (make clean, for example) and it will be full of crap
CFLAGS=
LDFLAGS=
# Use debian/changelog to get version
VERSION_STRING = $(shell cat debian/changelog | head -n 1 | cut -d' ' -f2 | sed 's/.*[(]\(.*\)[)].*/\1/' | cut -d'~' -f1)
include system/build_common.mk