Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Arduino Core for SAMD21 CPU
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
josc941e
Arduino Core for SAMD21 CPU
Commits
18e6d4ca
Commit
18e6d4ca
authored
9 years ago
by
Cristian Maglie
Browse files
Options
Downloads
Patches
Plain Diff
Revert wrongly committed file
parent
7bbafe53
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bootloaders/zero/Makefile
+6
-6
6 additions, 6 deletions
bootloaders/zero/Makefile
with
6 additions
and
6 deletions
bootloaders/zero/Makefile
+
6
−
6
View file @
18e6d4ca
ARM_GCC_PATH
=
/home/megabug/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin
IDE_PATH
=
"../../../../.."
ARM_GCC_PATH
=
$(
IDE_PATH
)
/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/bin
CC
=
$(
ARM_GCC_PATH
)
/arm-none-eabi-gcc
OBJCOPY
=
$(
ARM_GCC_PATH
)
/arm-none-eabi-objcopy
CFLAGS
=
-mthumb
-mcpu
=
cortex-m0plus
-Wall
-c
-g
-Os
-w
-std
=
gnu99
-ffunction-sections
-fdata-sections
-nostdlib
--param
max-inline-insns-single
=
500
LDFLAGS
=
-mthumb
-mcpu
=
cortex-m0plus
-Wall
-Wl
,--cref
-Wl
,--check-sections
-Wl
,--gc-sections
-Wl
,--unresolved-symbols
=
report-all
-Wl
,--warn-common
-Wl
,--warn-section-align
-Wl
,--warn-unresolved-symbols
BLD_EXTA_FLAGS
=
-D__SAMD21G18A__
BUILD_PATH
=
build
INCLUDES
=
-I
/home/megabug/.arduino15/packages/arduino/tools/CMSIS/4.0.0-atmel/CMSIS/Include/
-I
/home/megabug/.arduino15/packages/arduino/tools/CMSIS/4.0.0-atmel
/Device/ATMEL/
-I
./drivers/
-I
./utils/
-I
./utils/preprocessor/
-I
./utils/interrupt
INCLUDES
=
-I
$(
IDE_PATH
)
/hardware/tools/CMSIS/CMSIS/Include/
-I
$(
IDE_PATH
)
/hardware/tools/CMSIS
/Device/ATMEL/
-I
./drivers/
-I
./utils/
-I
./utils/preprocessor/
-I
./utils/interrupt
SOURCES
=
main.c sam_ba_monitor.c startup_samd21.c usart_sam_ba.c drivers/cdc_enumerate.c drivers/uart_driver.c utils/interrupt/interrupt_sam_nvic.c
OBJECTS
=
$(
addprefix
$(
BUILD_PATH
)
/,
$(
SOURCES:.c
=
.o
))
NAME
=
samd21_sam_ba
_genuino
NAME
=
samd21_sam_ba
EXECUTABLE
=
$(
NAME
)
.bin
SLASH
=
/
...
...
@@ -19,11 +19,11 @@ all: $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE)
:
$(OBJECTS)
$(
CC
)
-L
$(
BUILD_PATH
)
$(
LDFLAGS
)
-Os
-Wl
,--gc-sections
-save-temps
-Tsamd21j18a_flash
.ld
-Wl
,-Map,
$(
BUILD_PATH
)
/
$(
NAME
)
.map
--specs
=
nano.specs
--specs
=
nosys.specs
-o
$(
BUILD_PATH
)
/
$(
NAME
)
.elf
$(
OBJECTS
)
-Wl
,--start-group
-lm
-Wl
,--end-group
$(
OBJCOPY
)
-O
binary
$(
BUILD_PATH
)
/
$(
NAME
)
.elf
$@
$(
ARM_GCC_PATH
)
/arm-none-eabi-objcopy
-O
binary
$(
BUILD_PATH
)
/
$(
NAME
)
.elf
$@
$(BUILD_PATH)/%.o
:
%.c
-
@mkdir
-p
$(
@D
)
$(
CC
)
$(
CFLAGS
)
$(
BLD_EXTA_FLAGS
)
$(
INCLUDES
)
$<
-o
$@
clean
:
rm
$(
EXECUTABLE
)
$(
subst /,
\,
$(
OBJECTS
))
$(
subst /,
\,
$(
BUILD_PATH
)
/
$(
NAME
)
.
*
)
del
$(
EXECUTABLE
)
$(
subst /,
\,
$(
OBJECTS
))
$(
subst /,
\,
$(
BUILD_PATH
)
/
$(
NAME
)
.
*
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment