Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
780ba22b
Commit
780ba22b
authored
Feb 12, 2014
by
Damien George
Browse files
stm: Copy COPT style from unix port.
parent
648d9e64
Changes
1
Hide whitespace changes
Inline
Side-by-side
stm/Makefile
View file @
780ba22b
...
...
@@ -18,7 +18,7 @@ DFU=../tools/dfu.py
CROSS_COMPILE
=
arm-none-eabi-
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
CFLAGS
=
-I
.
-I
$(PY_SRC)
-I
$(CMSIS_DIR)
-I
$(STMPERIPH_DIR)
-I
$(STMUSB_DIR)
-Wall
-ansi
-std
=
gnu99
$(CFLAGS_CORTEX_M4)
CFLAGS
=
-I
.
-I
$(PY_SRC)
-I
$(CMSIS_DIR)
-I
$(STMPERIPH_DIR)
-I
$(STMUSB_DIR)
-Wall
-ansi
-std
=
gnu99
$(CFLAGS_CORTEX_M4)
$(COPT)
CFLAGS
+=
-I
$(STMUSBD_DIR)
CFLAGS
+=
-I
$(STMUSBH_DIR)
CFLAGS
+=
-I
$(FATFS_DIR)
...
...
@@ -26,9 +26,10 @@ CFLAGS += -I$(FATFS_DIR)
#Debugging/Optimization
ifeq
($(DEBUG), 1)
CFLAGS
+=
-O0
-ggdb
CFLAGS
+=
-g
COPT
=
-O0
else
C
FLAGS
+=
-Os
-DNDEBUG
C
OPT
+=
-Os
-DNDEBUG
endif
LDFLAGS
=
--nostdlib
-T
stm32f405.ld
-Map
=
$
(
@:.elf
=
.map
)
--cref
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment