Jesse Vincent
433f0ccb25
_find_bootloader_ports and _find_device_ports
4 years ago
Jesse Vincent
7594ee41f2
build_paths -> _build_paths, some ensure-sketch-found
4 years ago
Jesse Vincent
0a456150c7
mark _set_executable_paths as private
4 years ago
Jesse Vincent
f227747623
mark more functions as private
4 years ago
Jesse Vincent
6a628a7128
mark absolute_filename private by prepending a leading _
4 years ago
Jesse Vincent
52c68b1b9c
we do actually want to cache arudino cores
4 years ago
Jesse Vincent
75c767a8d6
we do need to set the compiler path for virtual builds
4 years ago
Jesse Vincent
a316e78a24
remove ccache, which barely provides a perf advantage over arduino-cli's own build caching.
...
remove several other unused veatures
4 years ago
Jesse Vincent
0140f3b0ff
fix VERBOSE for arduino-cli
4 years ago
Jesse Vincent
83bbfcf864
start to move target dependencies into the makefile
4 years ago
Jesse Vincent
0774763b94
minor refactoring
4 years ago
Jesse Vincent
36af0f3023
inline a couple single-call functions
4 years ago
Jesse Vincent
61a09fb6ca
try to make avr-size work again
4 years ago
Jesse Vincent
f9865ac8d9
fix shellcheck errors
4 years ago
Jesse Vincent
216214fb48
we don't have avr-size anymore
4 years ago
Jesse Vincent
fd7a9dcb1e
remove build-all, now that we no longer need it
4 years ago
Jesse Vincent
a8cf88eaa7
move decompile to the makefile
4 years ago
Jesse Vincent
d087a29540
rename to make a private thing more clearly private
4 years ago
Jesse Vincent
5a539441b8
simplify
4 years ago
Jesse Vincent
f4798e8786
a little bit of simplication
4 years ago
Jesse Vincent
0f5b630f6c
refactoring a bit to simplify
4 years ago
Jesse Vincent
7874548a93
remove our old custom 'size' target, since arduino pritns it for us
4 years ago
Jesse Vincent
58337769a0
integrate flash-from-bootloader and flash
4 years ago
Jesse Vincent
77edd18793
we no longer call avrdude directly! Yay!
4 years ago
Jesse Vincent
6f2a4e004b
switch to letting arduinp-cli do our flashing
4 years ago
Jesse Vincent
f9223ebd7d
shfmt
4 years ago
Jesse Vincent
4c78cc0155
finish killing off the ".conf" file that was really just more code
4 years ago
Jesse Vincent
2770a26e8a
make the script executable again
4 years ago
Jesse Vincent
cca69ce86d
move find_bootloader_port and find_device_port to the kaleidoscope-builder
4 years ago
Jesse Vincent
fece00803d
lift reset_device_command to the builder
4 years ago
Jesse Vincent
50f66a5b10
move identify_os into the builder
4 years ago
Jesse Vincent
928f02fdbd
shfmt
4 years ago
Jesse Vincent
dd14951966
Remove DEFAULT_SKETCH
4 years ago
Jesse Vincent
92a5b252f7
fix for not trying to query the arduino backend before we have a sketch
4 years ago
Jesse Vincent
4dc3325e4b
fix a bunch of stuff that shellcheck hated
4 years ago
Jesse Vincent
6c96f5f37b
clean up function deps a bit
4 years ago
Jesse Vincent
4eb409b26d
inline a function that was only called in one place
4 years ago
Jesse Vincent
438b9215ef
refactor a bit to reduce duplication in recipe names
4 years ago
Jesse Vincent
c23c14ba75
Move bits of the config file that need arduino-cli to work into kaleidoscope-builder
4 years ago
Jesse Vincent
c116800c2d
rename new timing sketch to match arduino sketch naming requirements
4 years ago
Jesse Vincent
71b7f3523b
pull tools and compiler paths from the arduino toolchain
4 years ago
Jesse Vincent
37a88797f5
switch find-bootloader-path over to using arduino prefs, killing our last internal use of BOARD_HARDWARE_PATH
4 years ago
Jesse Vincent
1ae46ddc69
rework the single sketch search path to use the current directory name as a hint to the sketch name if it's not specified
4 years ago
Jesse Vincent
91753fe259
when we don't need to rebuild the code, don't rebuild it
4 years ago
Jesse Vincent
30157d651b
remove commented code
4 years ago
Jesse Vincent
810eaa3fef
move the explanation of cli parsing close to the actual code
4 years ago
Jesse Vincent
068e975acb
We only used md5sum for a diag message. So kill the dep
4 years ago
Jesse Vincent
340f16dc17
refactor to extract a couple config methods
4 years ago
Jesse Vincent
0823b816fd
remove "SOURCEDIR", a generic env variable we only used to mean pwd, right after setting it
4 years ago
Jesse Vincent
d3161c003e
Clean up logic for choosing where our arduino-cli comes from
4 years ago
Jesse Vincent
ee362308d8
Fixing some of our interim back-compat for old makefiles
4 years ago
Jesse Vincent
941ab0f7d6
Get rid of MCU variable
4 years ago
Jesse Vincent
2ba10574d4
Simplify defaulting of ARCH and FQBN
4 years ago
Jesse Vincent
809f367b32
update ARDUINO_VERBOSE
4 years ago
Jesse Vincent
16a78137a2
Remove unused AVR_GCC_PREFIX
4 years ago
Jesse Vincent
f9c523ac0f
misc shellcheck fixes
4 years ago
Jesse Vincent
fea85506ec
lift find_device_pid_vid to builder
4 years ago
Jesse Vincent
1f227a0d72
move get-arduino-pref out of the config file
4 years ago
Jesse Vincent
3c7a1312c1
Revert "remove obsolete? build-all target"
...
still need it for testing
This reverts commit 237d01df9e28c51bdccb3e1e123e3662d66dcdda.
4 years ago
Jesse Vincent
bb9de38354
remove obsolete? build-all target
4 years ago
Jesse Vincent
651d0bc5b4
remove obsolete compile-all target
4 years ago
Jesse Vincent
c6ff455c12
did I break the compiler path prop?
4 years ago
Jesse Vincent
54ee067758
Don't try to set BOARD_HARDWARE_PATH inside run-docker
4 years ago
Jesse Vincent
c375b8bf3f
remove a debugging echo
4 years ago
Jesse Vincent
f7995a6d9b
Remove local_LIBS which I believe to be obsolete
4 years ago
Jesse Vincent
64b989660c
turn ccache back on
4 years ago
Jesse Vincent
57a076b5e3
switch getting prefs to use arduino-cli instead of arudino-builder
4 years ago
Jesse Vincent
f74b87e2de
first pass at something that will actually run simulator tests, at least in docker
4 years ago
Jesse Vincent
ea0a0c3dd6
try a hacky workaround for the fact that arduino-cli doesn't seem to let us put doublequotes in build-props
4 years ago
Jesse Vincent
1b7ff0793b
ARDUINO_CFLAGS is, as far as I can tell, historical
4 years ago
Jesse Vincent
60ac839eb4
try another compiler.cpp.extra_flags line
4 years ago
Jesse Vincent
bb3465d102
do a better job of mirrroing our older config
4 years ago
Jesse Vincent
bca9ec9625
add debugging output for test
4 years ago
Jesse Vincent
bc66579214
don't force reinstall of our kaleidoscope core
4 years ago
Jesse Vincent
b3fed574d9
turn off default verbose in builder
4 years ago
Jesse Vincent
3bf986a8ab
slightly closer to building with -cli
4 years ago
Jesse Vincent
493a10b16e
switch which to command to make shellcheck happy
4 years ago
Jesse Vincent
912118e3c1
Start to be able to use the system arduino cli
4 years ago
Jesse Vincent
0b99c52178
don't package up arduino-cli when trying to run in docker
4 years ago
Jesse Vincent
f8c297d19b
Revert "remove a pair of obsolete make targets"
...
This reverts commit d33d61d5029d03ceb20e37a7930d694e04bcf720.
4 years ago
Jesse Vincent
a93361486b
remove build-all from docs
4 years ago
Jesse Vincent
98851c0728
move more of make clean out into the makefile, leaving the "make clean" target in builder so it works for sketches
4 years ago
Jesse Vincent
2104f4db78
remove a pair of obsolete make targets
4 years ago
Jesse Vincent
4c421277a7
make a comment in run-docker shellcheck friendlier
4 years ago
Jesse Vincent
b70b851321
Teach docker-run to run interactively or to be able to run from a non-interactive process like a git hook
...
Fixes #959
4 years ago
Michael Richters
26f4ef498a
Set BOARD_HARDWARE_PATH correctly for run-docker on macOS
...
Because ARDUINO_LOCAL_LIB_PATH was being set to a default value for other
operating systems before checking the OS version, it would never get set
correctly for macOS (unless it was already set externally). This change fixes
that problem so that it's no longer necessary to set BOARD_HARDWARE_PATH
externally when executing `run-docker`.
Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
4 years ago
Jesse Vincent
5c0edd9b69
"make clean" needs to clear out build and output paths
...
It previously did not. Also, try -not- to clean out google test if the build dir doesn't even exist
4 years ago
Jesse Vincent
de45646c9d
extract out a variable for ARDUINO_BUILDER_TOOLS_PATH to make it easier to
...
get up and running on arch
4 years ago
Jesse Vincent
34b428c4a9
Simplify conditional building
4 years ago
Jesse Vincent
5bea41f630
reduce a bit of code duplication
4 years ago
Jesse Vincent
6e8d1d020a
Switch to a less verbose way to set defaults for environment variables
...
By reducing duplication, we improve readability and reduce errors
4 years ago
Jesse Vincent
a91c6a556e
refactor config file list to all be in one place
4 years ago
Jesse Vincent
25c8a8a180
Refactor the "SKETCH" environment variable and friends.
...
Functionality should be the same, but code should be clearer.
4 years ago
Jesse Vincent
e96902a9df
Switch from locally defining a "DIR" for every bin, to setting a global Kaleidoscope bin directory var
4 years ago
Jesse Vincent
660747c916
Rename ROOT to KALEIDOSCOPE_DIR, which is what it appears to actually be.
4 years ago
Jesse Vincent
ea0abc8833
inline a single-use cunction
4 years ago
Jesse Vincent
19f728ca56
lift find_bootloader_path' out of the config file into the program.
...
as it isn't something that's platform specific
'
4 years ago
Jesse Vincent
52a5265b9b
ROOT is defined automatically and not overridable. Remove the lines in the comments and docs
4 years ago
Jesse Vincent
12e59b8684
lift up BUILD_FILE_PATH to somewhere reusable.
4 years ago
Jesse Vincent
45bafe9bf5
SOURCEDIR was not actually used or honored. It was always set to pwd
4 years ago