Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Fadecandy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
scanlime
Fadecandy
Commits
c24136a5
Commit
c24136a5
authored
11 years ago
by
Micah Elizabeth Scott
Browse files
Options
Downloads
Patches
Plain Diff
Build firmware in DFU image format
parent
8418310f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
firmware/.gitignore
+1
-1
1 addition, 1 deletion
firmware/.gitignore
firmware/Makefile
+10
-11
10 additions, 11 deletions
firmware/Makefile
with
11 additions
and
12 deletions
firmware/.gitignore
+
1
−
1
View file @
c24136a5
*.elf
*.hex
*.o
*.a
*.d
*.dfu
# IDA Pro
*.id0
...
...
This diff is collapsed.
Click to expand it.
firmware/Makefile
+
10
−
11
View file @
c24136a5
#######################################################
# Environment setup
# Teensy loader tools (for 'make install')
TEENSY_TOOLSPATH
=
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools
# toolchain
DFU_SUFFIX
=
dfu-suffix
DFU_UTIL
=
dfu-util
CC
=
arm-none-eabi-gcc
CXX
=
arm-none-eabi-g++
OBJCOPY
=
arm-none-eabi-objcopy
...
...
@@ -55,24 +54,24 @@ LIBS = -lm
OBJS
:=
$(
C_FILES:.c
=
.o
)
$(
CPP_FILES:.cpp
=
.o
)
all
:
$(TARGET).
hex
all
:
$(TARGET).
dfu
$(TARGET).elf
:
$(OBJS) $(LDSCRIPT)
$(
CC
)
$(
LDFLAGS
)
-o
$@
$(
OBJS
)
$(
LIBS
)
%.
hex
:
%.elf
%.
dfu
:
%.elf
$(
SIZE
)
$<
$(
OBJCOPY
)
-O
ihex
-R
.eeprom
$<
$@
$(
OBJCOPY
)
-O
binary
$<
$@
$(
DFU_SUFFIX
)
-a
$@
install
:
$(TARGET).dfu
$(
DFU_UTIL
)
-D
$<
# compiler generated dependency info
-include
$(OBJS:.o=.d)
clean
:
rm
-f
*
.d
*
.o
$(
TARGET
)
.elf
$(
TARGET
)
.hex
install-teensy
:
$(TARGET).hex
$(
abspath
$(
TEENSY_TOOLSPATH
))
/teensy_post_compile
-file
=
$(
TARGET
)
-path
=
$(
shell
pwd
)
-tools
=
$(
abspath
$(
TOOLSPATH
))
python ../tools/teensy-bootloader-mode.py
rm
-f
*
.d
*
.o
$(
TARGET
)
.elf
$(
TARGET
)
.dfu
objdump
:
$(TARGET).elf
$(
OBJDUMP
)
-d
$<
...
...
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