Jesse Vincent
2e4012fa71
disable an incorrect shellcheck check
6 years ago
Jesse Vincent
d97b2060ba
The previous factoring just didn't work
6 years ago
Jesse Vincent
8a33793a1c
Improve the 'port unwritable' error message
6 years ago
Jesse Vincent
3a3281cb54
Clean up our flashing and warning messages.
...
Refactor the 'no bootloader port' message to only show up once, rather
than twice
6 years ago
Gergely Nagy
00a6b6045b
License clarificataion & copyright headers
...
After talking with Jesse, this changes the license to GPLv3 (only), where
appropriate, and adds copyright headers to all files that were missing them.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
6 years ago
Alessio Di Mauro
4f20009782
Add double quotes to keep shellcheck happy
7 years ago
Alessio Di Mauro
22363ac572
Add a LIB_PROPERTIES_PATH option to the build system
...
Add a variable to specify where the "library.properties" file can be
found so that the build can include a user-define version number.
7 years ago
Gergely Nagy
d292b371e8
Revert "kaleidoscope-builder: Use a stable build directory"
7 years ago
Gergely Nagy
8c814a87fa
kaleidoscope-builder: Use a stable build directory
...
Use ./_build/ for the build path by default, and do not delete it at the end of
compilation, only when doing a clean.
Fixes #315 .
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
7a4f0bac85
kaleidoscope-builder: Do not hardcode the max program size
...
Instead of hardcoding the max program size, pick it out of boards.txt, like we
pick the device VID and PID.
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
81a1cd004e
kaleidoscope-builder: add `preFlash_HOOKS` and `postFlash_HOOKS`
...
Fixes #225 .
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
39601fcba2
kaleidoscope-builder: Improved pre-flash prompt
...
Based on #306 , with slightly improved text. Thanks to Ross Donaldson
(@Gastove) for the original pull request!
Closes #306 .
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
14fe42f5b3
kaleidoscope-builder: Disable another ShellCheck false-positive
...
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
24407185d5
kaleidoscope-builder: Add SellCheck disables
...
There are a number of false-positives, where ShellCheck warns about behaviour we
do want, or are otherwise intentional.
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
22636bd768
kaleidoscope-builder: Quote what needs to be quoted
...
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
ca492e91f6
kaleidoscope-builder: Fix a typo.
...
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
5c9b3d6799
kaleidoscope-builder: Clear trailing whitespace
...
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Chris King-Parra
ce3ad7bc7d
Fix indent in here doc of usage() in bin/kaleidoscope-builder, part 2.
...
Issue #299 .
7 years ago
Chris King-Parra
96f3f18aaf
Indent here doc in usage() of bin/kaledoscope-builder. Issue #299 .
7 years ago
Chris King-Parra
f094bdaa4e
Remove uneccesary unused variable in prepare_to_flash() of
...
bin/kaleidoscoper-builder to conform with shellcheck. Issue #299 .
7 years ago
Chris King-Parra
6ca9da073d
Quote parameter expansions in hex_with_bootloader() of
...
bin/kaleidoscope-builder. Issue #299 .
7 years ago
Chris King-Parra
03bdc34001
Quote expansions in firmware_size() of bin/kaleidoscope-builder. I left
...
line 35 (the "output" variable) alone. Issue #299 .
7 years ago
Chris King-Parra
bc5abd63ab
Add option delimiter to rm command in clean() of
...
bin/kaleidoscope-builder. Issue #299 .
7 years ago
Chris King-Parra
d254dc6b7f
Quote parameter substitutions and command substitutions in
...
build_version() of bin/kaleidoscope-builder. Issue #299 .
7 years ago
Chris King-Parra
dd96cbcf8b
Change shebang of bin/kaleidoscope-builder to invoke bash. Issue #299 .
7 years ago
Adam Spiers
6356154bc3
add check for DEVICE_PORT being writable
...
If the user has missed the step about setting up their account
with the right group membership, they would get a cryptic failure
from stty, so catch this and explain the problem.
7 years ago
Adam Spiers
084679d2d1
Deal with the device port containing unexpected whitespace
...
This should never happen, but could if something goes badly wrong
in the device detection code, e.g. someone changing it in a way
which caused extra output on STDOUT.
7 years ago
Jesse Vincent
b02fb08234
Merge pull request #296 from gedankenexperimenter/f/print-size-before-flash
...
Run size target when flashing
7 years ago
Michael Richters
5fd8bce342
Print size_map in decimal instead of hex
...
It's easier for most people to interpret numbers in decimal than hexadecimal; adding this
option to avr-nm prints out the sizes in the size_map in a more intuitive format.
7 years ago
Michael Richters
e126be95fa
Run size target when flashing
7 years ago
Jonathan Wakely
217fde56f9
Check for missing bootloader port
7 years ago
Michael Richters
be4fdd5432
Indented kaleidoscope-builder consistently
7 years ago
Jesse Vincent
0dd1f49841
"disassembly" -> "disassemble" to better match the phrasing of other targets.
...
(also, fixed the usage)
7 years ago
noseglasses
0fc79af6b2
Added name demangling in disassemblies
7 years ago
Jesse Vincent
75770b8cf6
If you do a verbose build, don't throw away the build artifacts
7 years ago
Gergely Nagy
a2cee84455
kaleidoscope-builder: Remove extraneous whitespace
...
Drop a bunch of empty lines, trailing spaces, and similar things.
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Jesse Vincent
eb9164ddaa
refactor device reset code
7 years ago
Jesse Vincent
110b2795f0
move the verbose stuff out of the config file
7 years ago
Jesse Vincent
3556727657
Move two functions from the kaleidoscope-builder.conf to the builder
7 years ago
Ole Krüger
b729a2e291
Use a safer sed command to avoid locale issues
...
On some locales awk will generate commas instead of dots in the percentage. This will mess up the sed command. Instead of forcing awk to always generate dots we can simply cange the sed command to treat commas as regular text.
7 years ago
Jesse Vincent
d05c3cacf8
Back out part of 374a3e136c
because it breaks our ability to pass -D defines into code
...
We need this to pass the built version into the sketch when doing
official builds
7 years ago
John SJ Anderson
5c7eb2427a
Don't flash the device unless we successfully detected the device
...
Nicer error messages are nicer.
7 years ago
Jesse Vincent
54771ad718
fix the package path to be less platform dependent
7 years ago
Jesse Vincent
a3318ea92a
only add the packages path if it exists
7 years ago
Jesse Vincent
f3a7e18805
initial builder support for building from an arduino boards manager install
7 years ago
Craig Disselkoen
374a3e136c
Support for Kaleidoscope-Hardware-Virtual plugin
7 years ago
Craig Disselkoen
b6150cb175
kaleidoscope-builder: Better error message for sketch-not-found
...
Currently, if kaleidoscope-builder fails to find a sketch file, the
resulting error message is very confusing and unhelpful. This commit
makes it more straightforward and helpful.
7 years ago
Jesse Vincent
4cb2043729
Move Kaleidoscope builder back into Kaleidoscope
7 years ago