Commit Graph

212 Commits (b2d4b8b3678ea2fc4aefb120bd6ecbd3c193df0f)

Author SHA1 Message Date
Jesse Vincent 5c0edd9b69
"make clean" needs to clear out build and output paths
4 years ago
Jesse Vincent de45646c9d
extract out a variable for ARDUINO_BUILDER_TOOLS_PATH to make it easier to
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
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.
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.
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
Jesse Vincent dfadd32400
Removeo outdated and unused 'LIBRARY' env variable
4 years ago
Jesse Vincent a278efc21e
Absolute path to sized elf
4 years ago
Jesse Vincent afc8388cd1
Move a bunch of makefile targets from the generic sketch makefile
4 years ago
Jesse Vincent 383a29d3e3
move run-tests out to the Makefile
4 years ago
Jesse Vincent bbc84f6f33
move build-gtest-gmock into the Makefile
4 years ago
Jesse Vincent 1865e33426
Lift duplication of command to a var
4 years ago
Gergely Nagy ba7b496af5
Rework our Docker config for performance
4 years ago
Jesse Vincent 08bb9c5a14
Our previous conditional building was really wrong. It never built if any .hex existed.
4 years ago
Jesse Vincent d7a45afdb5
Update the timestamp setting script ti make shellcheck happy
4 years ago
Jesse Vincent 6d00c6d7af
add "prepare-ccache" as a tool for travis
4 years ago
Jesse Vincent 5774054d61
try to make shellcheck happy
4 years ago
Jesse Vincent 1b804a6d0f
make the timestmap-editor executable
4 years ago
Jesse Vincent 919f7753ff
We no longer need this, since we do it above. (But also, this was always a repeated call)
4 years ago
Jesse Vincent d4a14fa7c9
expose the function that finds all the buildable sketches as "find_all_sketches"
4 years ago
Jesse Vincent 6bf70a2fdc
Don't strip out the path from the sketch before we can make use of it
4 years ago
Jesse Vincent e378f9cd17
Switch find_sketch to set an env variable, rather than return a value, to reduce the number of times we need to call it. Also, begin to add better support for:
4 years ago
Jesse Vincent beb963d341
Add a tool to be able to set file timestamps to git commit dates.
4 years ago
Jesse Vincent 8150eec669
Switch from naming our cache directories based on inode to naming them based on the absolute path, so we don't blow the cache 100% of the time on travis
4 years ago
Jesse Vincent b9bca2cf7f
remove a bit of unused info from the compilation step reporting
4 years ago
Eric Paniagua fad1b7e051
Add a googletest-based test harness & tests
4 years ago
Gergely Nagy 57814671a5
kaleidoscope-builder: Support building lib-only variants of the sketch
4 years ago
Gergely Nagy 352a3fe547
kaleidoscope-builder: Allow overriding CXX, CC, AR, etc
4 years ago
Gergely Nagy fff5dce199
kaleidoscope-builder: Whitespace cleanup
4 years ago
Gergely Nagy 0f7ff140fc
docker: Simplify the Dockerfile a little
4 years ago
Gergely Nagy c743befb7f
Add a small tool, to run things within Docker
4 years ago
Jesse Vincent 63fa886d9b
symlink generation for hex file with bootloader wasn't quite right. It added an extra output path
4 years ago
Gergely Nagy bbcdff6f67
Update the udev rules to tag devices as uaccess and seat
4 years ago
Gergely Nagy 66df8e9477
Rename the find-duplicate-cpp-files too to find-filename-conflicts
5 years ago
Gergely Nagy f0334dcaa8
Add a small tool to find conflicting filenames
5 years ago
Jason Koh 43526c4d92 Slightly updated probing logic based on Jason's code.
5 years ago
Jason Koh 430b159913 Tweak location-based detection logic
5 years ago
Jason Koh b675ff2902 Make our hail-mary logic a little more flexible.
5 years ago
Jason Koh 94790f8db9 Make sure the macOS device prober only runs if you've supplied the required args
5 years ago
Jason Koh 476cbe1785 Add a new MANUAL_RESET feature to Kaleidoscope builder
5 years ago
Les Aker e997d8c495 allow overriding filename paths
5 years ago
Andre Arko a4e99b8a34
hide the inevitable SystemProfiler warning
5 years ago
Andre Arko c0163c83f2
make sure SKETCH_DIR is set before we use it
5 years ago
Andre Arko 0264e77396
bash warns on -gt, demanding two brackets
5 years ago
Andre Arko bb00c27de1
maybe_bulid depends on filling the hex path first
5 years ago
Jesse Vincent e5558eaf90
First pass at a device-independent find-device-port-macos
5 years ago
Jesse Vincent 680aac9818
refactor kaleidoscope-builder to make shellcheck happy
5 years ago
Jesse Vincent 16b2404ab9
Attempt to simplify output of the build and flash process, along with
5 years ago
Jesse Vincent 559d210eed
slightly tweak sleep times and reformat our avrdude command to flash the
5 years ago
Jesse Vincent 9a41d1cfa9
Make avrdude more verbose to help make sure customers can tell whether
5 years ago
Jesse Vincent 56a9b60d27
On linux (and possibly other operating systems), detect when the
5 years ago
Jesse Vincent 1b117b9eb0
Extract the compilation step from the flashing preparation step
5 years ago
Jesse Vincent 09da0477d9
Fix typo in flashing message
5 years ago
Jesse Vincent b2977894f9
Move the build instructions into the arduino boards.txt file
5 years ago
Florian Fleissner 1a721f190e Moved build flags and C++ language version setting to platform.txt
5 years ago
Florian Fleissner 12876f9a90 Fixed builds on msys2
5 years ago
Jesse Vincent bab32fcc9d
Shellcheck flags -n as a better replacement -f ! -z
5 years ago
Florian Fleissner c0e0ca1034 Enable compiler specification via env. var. CC/CXX
5 years ago
Dan Bjorge 0462230060 Fix whitespace inconsistencies
5 years ago
Dan Bjorge d33bdf53e3 Add Windows+Cygwin support for kaleidoscope-builder
5 years ago
Gergely Nagy 1672f55945
kaleidoscope-builder: Pull the bootloader file from boards.txt
5 years ago
Jesse Vincent d14405541a
Without the -built-in-libraries option passed in to arduino-builder, it
5 years ago
Florian Fleissner 0ac7c191dc Renamed virtual architecture "virtual"
5 years ago
Florian Fleissner 7326be589f kaleidoscope-builder fixed for builds of virtual hardware
5 years ago
Florian Fleissner 2cad17b07b Fixed Kaleidoscope Builder for Arduino paths containing whitespaces
6 years ago
Jesse Vincent 01e3793d39 Add a 'compile-all target, so that smoke output can get to a single line
6 years ago
Jesse Vincent 8ab5aa52dd Slightly tighten up compilation output so that the smoke output is more readable
6 years ago
Jesse Vincent b8d4e90f23 realpath isn't installed by default on travis' vms AND it's not
6 years ago
Jesse Vincent ab91a04142 More recent shellcheck doesn't like "which" for finding a binary
6 years ago
Jesse Vincent a6a23380ab make shellcheck happy, maybe?
6 years ago
Jesse Vincent 67d0c6bd73 shellcheck fixes
6 years ago
Jesse Vincent 02faf0d842 Refactor our directory environment variables to make it easier to set a
6 years ago
Jesse Vincent 02635d691a Use the sketch directory's inode as part of its unique id
6 years ago
Jesse Vincent 8cdd058d9e CCACHE_WRAPPER_DIR->CCACHE_WRAPPER_PATH
6 years ago
Jesse Vincent e9668d36ab STABLE_TEMP_DIR to KALEIDOSCOPE_TEMP_PATH
6 years ago
Jesse Vincent 7b27d9e2f9 default STABLE_TEMP_DIR to $TMPDIR if it's available
6 years ago
Jesse Vincent a33d797310 shellcheck fixes
6 years ago
Jesse Vincent b4dd906294 Switch to stashing our build artifacts in the stable kaleidoscope temp dir, rather than the source dir
6 years ago
Jesse Vincent f87d7bce64 Initial implementation of ccache caching for builds
6 years ago
Jesse Vincent 6e9ee55552 move sketches into a subdir
6 years ago
Jesse Vincent 59bb9a63f8 Switch back to stable build paths to take advantage of Arduino's build caching
6 years ago
Jesse Vincent 9e45f9e7b2 Enable use of the Arduino core cache, stashing our cached prebuilt cores in /tmp
6 years ago
Jesse Vincent 2ec7f83073 Break out setting our build paths into its own function
6 years ago
Jesse Vincent 38b4663f00 When building a sketch that's not in a git directory, don't die.
6 years ago
Gergely Nagy 7172571685
kaleidoscope-builder: Make shellcheck happy
6 years ago
Gergely Nagy 75dab2c65e
kaleidoscope-builder: Fix the avr-size invocation
6 years ago
Brian Cully 39d1f70812 Add rules and scripts for building on FreeBSD.
6 years ago
Gergely Nagy f27a2127ac
kaleidoscope-builder: Support examples in subdirs
6 years ago
Neville Dalal c98dfda4d5 Detect OS and use appropriate device and tooling
6 years ago
Gergely Nagy 0462ae141d
kaleidoscope-builder: Support config files in the sketch dir too
6 years ago
Jesse Vincent 2e4012fa71 disable an incorrect shellcheck check
6 years ago
Gergely Nagy 7db8bb779a
Merge remote-tracking branch 'plugin/FocusSerial/f/monorepo' into f/monorepo
6 years ago