1
0

17 Commits

Author SHA1 Message Date
Florian Fleissner
0e865cfc34 Makefile now checks for rules.mk when autodetecting BOARD_HARDWARE_PATH
Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
2019-02-28 12:47:46 +01:00
Florian Fleissner
063908a90e Fallback settings for BOARD_HARDWARE_PATH
This commit allows the Makefile to check if the BOARD_HARDWARE_PATH
it tried to determine based on the system specific Arduino installation
is correct. This is done by checking for the Kaleidoscope library's existence.
If Kaleidoscope is not found, the Makefile falls back to determining
the hardware path relative to its own location. This even enables
building from any location where a *.ino file lives without
the requirement to checkout the kaleidoscope libraries into
Arduino installation's hardware path or to symlink them there.

The following now is possible

> SOURCE_DIR=<place where the sources live>
> cd $SOURCE_DIR
> mkdir hardware
> git clone --recursive <URL of the Kaleidoscope bundle> hardware/keyboardio
> BUILD_DIR=<location where a *.ino file lives>
> cd $BUILD_DIR
> make -f $SOURCE_DIR/hardware/keyboardio/avr/libraries/Model01-Firmware/Makefile

for quick builds

> SOURCE_DIR=<place where the sources live>
> cd $SOURCE_DIR
> mkdir hardware
> git clone --recursive <URL of the Kaleidoscope bundle> hardware/keyboardio
> cd hardware/keyboardio/avr/libraries/Model01-Firmware make

Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
2019-02-27 18:26:30 +01:00
Jesse Vincent
c700ee2381 First pass fix for our Makefile pulling the right shared makefile on an
unknown os.
2019-02-22 12:12:22 -08:00
Ryan S. Brown
b446ec2ce6 Match wildcard usage between manual- and arduino-installed environments
Finding the base-dir of installed environments use a wildcard causing
[dir]/packages/keyboardio/hardware/avr/toolchain to be the interpreted
as the installed env, breaking use of that variable later when it
informs paths for the boards.txt and other files.
2018-03-05 09:29:17 -05:00
Jesse Vincent
709aaa2354 Add a big warning when you build by hand and have multiple copies of
kaleidoscope installed
2017-12-15 21:07:30 -08:00
Jesse Vincent
76f5a59a78 Quiet down a warning in the makefile 2017-10-24 22:59:23 -07:00
akihito.nakano
7b54271566 Fix trailing slash 2017-10-22 20:03:49 +09:00
Jesse Vincent
cd9780a309 Fix our arduino-ide package detection to work on OSX 2017-10-04 23:46:51 -07:00
Jesse Vincent
beb849f84f makefile: if there's an arduino boards-manager install of the kaleidoscope runtime, use it.. 2017-10-04 23:13:28 -07:00
Jesse Vincent
971236f64e Point Makefile to new make rules 2017-08-21 21:59:10 -07:00
Jesse Vincent
2b740c403e
slight makefile tweaks 2017-08-16 13:26:57 -07:00
Jesse Vincent
4b2be6fc2f
fix a path in the makefile 2017-08-16 13:26:57 -07:00
Jesse Vincent
205c41cace
A pass at cleaning up the install instructions and Makefile a bit 2017-08-16 13:26:55 -07:00
Jesse Vincent
935f457dbb
Update makefile to fix issues 2017-07-26 23:09:20 -07:00
Jesse Vincent
e92cdf6b58
Switch to more standard kaleidoscope plugin build infra 2017-05-23 18:29:30 -07:00
Jesse Vincent
7f42dae5ad First step of getting the makefile to use an external kaleidoscope builder 2017-02-28 17:51:54 +08:00
Jesse Vincent
a0e03fa82c snapshot sketch and infrastructure from the Kaleidoscope example 2017-02-19 17:04:09 -08:00