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
980d703f5e
make find-device-port-linux-udev more friendly
...
Add some helpful debugging, and if there is a risk of contention
with ModemManager, provide some helpful advice.
7 years ago
Adam Spiers
dd1aca0f13
find-device-port-linux-udev: ensure called with correct args
...
The VID and PID must be provided.
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
Michael Richters
78207e546c
Improved fallbacks for macOS serial port detection
...
Several people have reported difficulty flashing firmware on macOS High Sierra because the
device port filename doesn't match the serial number from system_profiler. In particular,
system_profiler would return a string ending in `E` whereas the device filename would have
a `1`. This change adds a check for that filename explictily.
I also corrected the location_id fallback (the substring should have been just 3
characters long, not 4), and it works properly on my system if I make the device shortname
7 characters long, and the filename reverts to using the location id instead.
Last, I added one more check, simply listing the filenames, and searching for a match for
the string `kbio01`, which should be present (although in one case, it wasn't).
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
Jesse Vincent
f24e97349e
Merge pull request #290 from jwakely/missing-bootloader
...
Check for missing bootloader port
7 years ago
Jonathan Wakely
217fde56f9
Check for missing bootloader port
7 years ago
Jonathan Wakely
f6221dc6e6
Treat device ID values as hex
...
This avoids Perl warnings when trying to do numeric comparisons on
device IDs that don't consist solely of decimal numbers.
7 years ago
Jesse Vincent
fe71904441
Merge pull request #282 from gedankenexperimenter/bug/find-device-port-macos
...
Better serial port detection for macOS
7 years ago
Michael Richters
65ec30ae32
Added copyright & attribution comment
7 years ago
Michael Richters
c945bf0662
Use the new find-device-port-macos script to find the correct port
7 years ago
Michael Richters
b207ec4659
perltidy find-device-port-linux-udev
7 years ago
Michael Richters
69946554dd
Consistent indentation of find-device-port-linux-udev helper script
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
5d9420c4f5
VERY hacky WIP tool for finding the correct port for a device on linux by VID/PID pair
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