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
068e975acb
We only used md5sum for a diag message. So kill the dep
4 years ago
Jesse Vincent
1e4166af9b
Simplify some conditionals
4 years ago
Jesse Vincent
1fe36e265c
Only parse FQBN if we have it
4 years ago
Jesse Vincent
941ab0f7d6
Get rid of MCU variable
4 years ago
Jesse Vincent
bb81294576
clean up defaulting
4 years ago
Jesse Vincent
16a78137a2
Remove unused AVR_GCC_PREFIX
4 years ago
Jesse Vincent
33210331db
Arduino IDE version macro no longer used
4 years ago
Jesse Vincent
c81a84e62b
simplify defaulting for "SKETCH"
4 years ago
Jesse Vincent
fea85506ec
lift find_device_pid_vid to builder
4 years ago
Jesse Vincent
20c371f14a
remove unused AVR_GPLUSPLUS variable
4 years ago
Jesse Vincent
1f227a0d72
move get-arduino-pref out of the config file
4 years ago
Jesse Vincent
6e2f8f88ba
remove unused ARDUINO_TOOLS_FLAG and ARDUINO_TOOLS_PARAM
4 years ago
Jesse Vincent
782d3efe63
fix a typo in the cygwin tmpdir support
4 years ago
Jesse Vincent
253c2b152b
remove unused ARDUINO_PACKAGE_PATH
4 years ago
Jesse Vincent
e9c380c2a1
finish excising arduino-builder, I think
4 years ago
Jesse Vincent
57a076b5e3
switch getting prefs to use arduino-cli instead of arudino-builder
4 years ago
Jesse Vincent
7a12be25bc
Fix an embarassing typo.
...
This is why we do PRs, even for quick fixes and don't just push to master because we're the project lead and yolo.
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
c98b513636
Revert "missed one"
...
This reverts commit de062ea897
.
4 years ago
Jesse Vincent
de062ea897
missed one
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
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
45bafe9bf5
SOURCEDIR was not actually used or honored. It was always set to pwd
4 years ago
Jesse Vincent
dfadd32400
Removeo outdated and unused 'LIBRARY' env variable
4 years ago
Gergely Nagy
e4b48e72bb
etc/kaleidoscope-builder.conf: Remove the macOS workaround for virtual
...
The workaround was put in place as an attempt to get virtual builds going on
macOS, natively. It wasn't enough, and it doesn't work, so lets drop it.
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
4 years ago
Gergely Nagy
352a3fe547
kaleidoscope-builder: Allow overriding CXX, CC, AR, etc
...
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
4 years ago
Gergely Nagy
fff5dce199
kaleidoscope-builder: Whitespace cleanup
...
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
4 years ago
Jesse Vincent
fd58a7ea5b
Update our preferences logic to get the first returned matching
...
preference and to allow submenu preferences, like the program size for
teensy variants.
I -believe- this will work on macOS, but need to test.
5 years ago
Jesse Vincent
bb83186214
Get the device prober on macOS to pass in the vid and pid we want
5 years ago
Jesse Vincent
010f4b466c
Switch more of kaleidoscope-builder to use our new preferences loader
5 years ago
Jesse Vincent
20315ac722
Cache the arduino prefs lookup
5 years ago
Jesse Vincent
b2977894f9
Move the build instructions into the arduino boards.txt file
5 years ago
Jesse Vincent
6349cb8395
More builder refactoring to use our new functionality
5 years ago
Jesse Vincent
17978858ce
Begin to outfactor how to pull preferences from Arduino
5 years ago
Florian Fleissner
efd0a526c2
Enable predefined DEVICE_PORT and DEVICE_PORT_BOOTLOADER
...
Kaleidoscope builder has its own port autodetection. Although fairly
robus, this mechanism sometimes fails under certain circumstances
on some Linux systems (e.g. Ubuntu 18.04).
As a workaround this change enables the variables DEVICE_PORT
and DEVICE_PORT_BOOTLOADER being predefined on GNU/Linux, e.g. as
DEVICE_PORT=/dev/ttyACM0 make flash
which will disable the port autodetection.
Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
mod
5 years ago
Florian Fleissner
12876f9a90
Fixed builds on msys2
...
This adds some quotes to various paths used in Kaleidoscope's build system.
This fixes builds on msys2 that failed due to whitespaces in system paths.
Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
5 years ago
Florian Fleissner
c0e0ca1034
Enable compiler specification via env. var. CC/CXX
...
Many build systems allow C and C++ compilers to be specified
via environment variables C and CXX.
This commit enables this for kaleidoscope-builder.
Furtheron, on unixoid systems virtual builds are possible through a
command line similar to
CXX=<path to C++ compiler> C=<path to C compiler> ARCH=virtual make
Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
5 years ago
Dan Bjorge
d33bdf53e3
Add Windows+Cygwin support for kaleidoscope-builder
...
Signed-off-by: Dan Bjorge <dan@dbjorge.net>
5 years ago
Gergely Nagy
1672f55945
kaleidoscope-builder: Pull the bootloader file from boards.txt
...
Fixes #697 .
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
5 years ago
Jesse Vincent
5396a9243e
A regression in Arduino 1.8.10 caused -dump-prefs to break when not
...
given a build-dir and a sketch
5 years ago
Florian Fleissner
0ac7c191dc
Renamed virtual architecture "virtual"
...
Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
5 years ago
Florian Fleissner
7326be589f
kaleidoscope-builder fixed for builds of virtual hardware
...
This commit induces the following changes:
bin/kaleidoscope-builder
* ccache dummy compiler and executables are now generated in a way
that allows using the same CCACHE_WRAPPER_PATH for virtual and
non-virtual builds
* virtual builds are now triggered by either specifying the full FQBN with x86
as architecture or by defining ARCH=x86
etc/kaleidoscope-builder.conf
* COMPILER_PREFIX and COMPILER_PATH are now determined (if not predefined)
based on ARCH or FQBN
Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
5 years ago
Florian Fleissner
2cad17b07b
Fixed Kaleidoscope Builder for Arduino paths containing whitespaces
...
Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
6 years ago
Jesse Vincent
f87d7bce64
Initial implementation of ccache caching for builds
...
Signed-off-by: Jesse Vincent <jesse@keyboard.io>
6 years ago