Fred Sundvik
3aac4e95c9
More general system for generating several outputs
2016-08-20 03:56:39 +03:00
Fred Sundvik
87bf34a5d3
Pass the target to submake
2016-08-20 03:56:38 +03:00
Fred Sundvik
d924eb591e
Fix variable name clash with builtin
...
This caused the submake to be called several times, messing up the
build.
2016-08-20 03:56:37 +03:00
Fred Sundvik
8732265928
Options for silent compilation
...
A single keyboard is always by default compiled in verbose mode.
While multiple keyboards are compiled in silent mode. This can be
overriden by the silent variable from the command line
2016-08-20 03:56:36 +03:00
Fred Sundvik
e4c842de02
Don't run builtin rules for submake
...
To speed up the compilation
2016-08-20 03:56:35 +03:00
Fred Sundvik
881bde8258
Fix running make in parallel
2016-08-20 03:56:34 +03:00
Fred Sundvik
dd8c1a7659
Don't add VERSION as a define
...
To avoid full recompilation when the git commit hash changes.
2016-08-20 03:56:33 +03:00
Fred Sundvik
60c6e79ecb
Move git submodule check and version generation to main Makefile
2016-08-20 03:56:32 +03:00
Fred Sundvik
cc2df445ab
Remove unneded code from tmk_core/rules.mk
2016-08-20 03:56:31 +03:00
Fred Sundvik
67b294ca66
Actual compilation
2016-08-20 03:56:30 +03:00
Fred Sundvik
db5c3b74fb
Add color output
2016-08-20 03:56:29 +03:00
Fred Sundvik
0dd629a990
Fix running make from various subfolders
2016-08-20 03:56:28 +03:00
Fred Sundvik
a04bb3a3ba
Fixed the shortcut targets
2016-08-20 03:56:27 +03:00
Fred Sundvik
3fa6625869
Proper default goals when inside keyboard fodlers
2016-08-20 03:56:26 +03:00
Fred Sundvik
459ddaceda
Add backwards compability with makefile variables
2016-08-20 03:56:25 +03:00
Fred Sundvik
4f20061f66
Proper handling for running make from a subproject or keymap dir
2016-08-20 03:56:24 +03:00
Fred Sundvik
051017c312
Split subproject make files into Makefile and rules.mk
2016-08-20 03:56:23 +03:00
Fred Sundvik
c83af54513
Support for running from keyboard directory
2016-08-20 03:56:21 +03:00
Fred Sundvik
1ad5578d11
Print error when building non-existing keyboard
2016-08-20 03:56:20 +03:00
Fred Sundvik
a6d3500024
Print error message when trying to build non-existing keymap
2016-08-20 03:56:20 +03:00
Fred Sundvik
2dd9c1edcd
Proper parsing of keymaps inside subprojects
2016-08-20 03:56:19 +03:00
Fred Sundvik
44441de8ca
Split keyboard makefiles into rules and Makefile
2016-08-20 03:56:08 +03:00
Fred Sundvik
0d5caead5a
Add default subproject parsing
2016-08-20 03:24:40 +03:00
Fred Sundvik
091fab5103
Slight rearrange of the Makefile for easier readability
2016-08-20 03:24:40 +03:00
Fred Sundvik
286b3b8057
Slight refactoring to remove some verbosity
2016-08-20 03:24:40 +03:00
Fred Sundvik
1df6498721
Subproject parsing
...
Does not handle keyboards without subprojects correctly yet.
2016-08-20 03:24:40 +03:00
Fred Sundvik
9ee6d4a23d
Proper looping for allkb and allkm
2016-08-20 03:24:40 +03:00
Fred Sundvik
dfe510d5b8
Refactor common rule list parsing into own function
2016-08-20 03:24:40 +03:00
Fred Sundvik
9b02e66ce0
Add keymap parsing
2016-08-20 03:24:40 +03:00
Fred Sundvik
f97ae2b199
Rule parsing to match kebyoards
2016-08-20 03:24:40 +03:00
Fred Sundvik
e6e675335d
First version of rule parsing
...
Only handles allkb at the moment.
2016-08-20 03:24:40 +03:00
Fred Sundvik
86706de036
Parsing of makefile variables from starting dir
2016-08-20 03:24:40 +03:00
Fred Sundvik
fda29be3e7
Travis calls the normal build target, instead of quick
2016-07-31 14:18:51 +03:00
Fred Sundvik
87a1a095d0
Fix the readme for the removed quick target
2016-07-31 14:18:00 +03:00
Fred Sundvik
a0dc622199
Remove the quick commands and add proper clean
2016-07-31 14:17:32 +03:00
Fred Sundvik
d5a947b324
Also depend on the gcc version
2016-07-31 13:49:04 +03:00
Fred Sundvik
97817a773e
Generate version information to version.h
...
So that only the files that really needs a version are recompiled.
2016-07-31 13:42:05 +03:00
Fred Sundvik
84bfb19554
Force compilation and linking when options changes
2016-07-31 13:42:04 +03:00
Fred Sundvik
e58e9af2ab
More reliable .d file generation
...
Also generated inside the obj dir instead of separate deps folder.
2016-07-31 13:36:30 +03:00
Fred Sundvik
abdf42573a
Put the build output inside the root/.build directory
2016-07-31 13:25:49 +03:00
Fred Sundvik
f11a0275a8
Enable vpath seraching for source files only
2016-07-31 13:24:25 +03:00
Fred Sundvik
79067662c8
Better "include guards" for the makefiles
...
Checking for ARCH is not good enough, since some subprojects define it.
Ergodox Ez for example. The leads to running the make from
keyboards/ergodox/ez failing. The keyboard makefile will not be included
in that case, and therefore not the CUSTOM_MATRIX either.
Furthermore the output files are read from many different .build
directories, so it doesn't fail deterministically. For example on the
Travis CI the compilation passes, since there's no outdated objects that
needs recompilation.
2016-07-31 13:22:18 +03:00
Fred Sundvik
7d55951050
Fix the quick aliases documentation section
...
Also move all keyboard customization documentation under the
"Going Beyond the keycodes" heading.
2016-07-29 22:47:35 +03:00
Fred Sundvik
566c79554e
Small fix for infinity include guard
2016-07-29 21:09:42 +03:00
Fred Sundvik
6e8a5aca9d
Fix typo in the readme.
2016-07-29 21:09:41 +03:00
Fred Sundvik
401dd09077
A couple of more Ergodox readme fixes
2016-07-29 21:09:40 +03:00
Fred Sundvik
c65da1f208
Unify the ErgoDox EZ and Infinity documentation
2016-07-29 21:09:39 +03:00
Fred Sundvik
44cefcb40a
Refer to the right path in the readme
2016-07-29 21:09:38 +03:00
Fred Sundvik
349f189e83
Move Ergodox readme from ez subfolder to parent
2016-07-29 21:09:37 +03:00
Fred Sundvik
ad416fb1a3
Include the main Makefile before including Ergodox infinity drivers
2016-07-29 21:09:37 +03:00
Fred Sundvik
592ef7c6f0
Move Infinity Ergodox drivers to subproject, and fix makefile
2016-07-29 21:09:36 +03:00
Fred Sundvik
37052a53f1
Remove the Infinity Ergodox default keymap
2016-07-29 21:09:35 +03:00
Fred Sundvik
650298cec3
Cleanup the townk_osx config.h and make files
2016-07-29 21:09:34 +03:00
Fred Sundvik
fd7f20b029
Rename supercoder config_user to config.h
...
Also fixup the include path of parent config
2016-07-29 21:09:33 +03:00
Fred Sundvik
426e9ecc6f
Fix config.h include guards
2016-07-29 21:09:32 +03:00
Fred Sundvik
a6577b272e
Define weak matrix user function for Infinity Ergodox
...
So that a few keyboards, which don't use them, links properly.
2016-07-29 21:09:31 +03:00
Fred Sundvik
bf1c865c7a
Speed up ChibiOS keymap compilation
...
By sharing the external library object files between the whole
keyboard, instead of re-compiling them for each keymap.
2016-07-29 21:09:30 +03:00
Fred Sundvik
1641743b9d
Change _delay_ms to wait_ms in algernon keymap
2016-07-29 21:09:21 +03:00
Fred Sundvik
e7670f6d19
Move some of the Ergodox config settings to shared
2016-07-29 20:48:22 +03:00
Fred Sundvik
e0f28c2b10
Add empty led control functions to Infinity Ergodox
...
So that most keymaps compiles and links
2016-07-29 20:48:21 +03:00
Fred Sundvik
e01b4c3fd9
Most ergodox keymaps compiles on Infinity
...
There are linker errors due to missing led funcitonality though
2016-07-29 20:48:20 +03:00
Fred Sundvik
b0376687f4
All Ez keymaps compiles
2016-07-29 20:48:19 +03:00
Fred Sundvik
9af995c59b
Initial structure for Ergodox as subprojects
...
Only the EZ default keymaps compiles at the moment though.
2016-07-29 20:48:04 +03:00
Fred Sundvik
c7728780de
Remove out of place documentation, caused by ChibiOS merge
2016-07-10 20:00:04 +03:00
Fred Sundvik
6911ead027
Use order only prerequisites to avoid re-linking
...
The prerequisites at the start of the build process are order-only
so that the trget don't link again. Also added as a dependency to
the compilation to force the messages to be printed at the start
2016-07-08 23:19:48 +03:00
Fred Sundvik
e8e300d5c4
Fix name of makefile dep files
...
The files can't start with a .dot, as the wildcard function wont
find them. So this is fixed by removing the BUILD_DIR from the
name.
2016-07-08 22:59:09 +03:00
Fred Sundvik
1e3db59097
Fix the link target
2016-07-08 18:18:33 +03:00
Fred Sundvik
ccebceeb6f
Don't run git describe for ever file that is built
2016-07-08 17:44:41 +03:00
Fred Sundvik
b86b0480d5
Speed up compilation by not using recusive make
...
The cleaning is done outside the targets, by checking the
requested target name.
2016-07-08 17:20:37 +03:00
Fred Sundvik
a2eae81927
Fix IS_CONSUMER macro
2016-07-07 20:04:27 +03:00
Fred Sundvik
0bfb608615
Remove unhandled KC_BTLD, RESET should be used instead
2016-07-07 19:56:55 +03:00
Fred Sundvik
9870082a06
Fix the range for consumer keys
2016-07-07 19:48:39 +03:00
Fred Sundvik
caedec92d2
Move the visualizer_user file to keymap folder
...
Also rename it to visualizer.c
2016-07-07 14:42:16 +03:00
Fred Sundvik
aaac254ebc
Delete lcd_backlight_hal.c
...
The functionality can now be found in the infinity_erogodox.c file
instead.
2016-07-07 14:29:53 +03:00
Fred Sundvik
bcbd8f1c50
Add suspend support to the ChibiOS visualizer
2016-07-07 14:22:45 +03:00
Fred Sundvik
dae7c9bfb3
Fix the SERIAL_LINK_ENABLE macro in Visualizer
...
Rename from USE_SERIAL_LINK -> SERIAL_LINK_ENABLE
2016-07-07 14:12:56 +03:00
Fred Sundvik
7229751ba9
Fix visualizer crash at startup
...
Visualizer and serial link initialized in the wrong order.
The LED_ENABLED define wasn't set properly
uGfx is always initialized
2016-07-07 14:01:20 +03:00
Fred Sundvik
07d0d5cbe4
Makefile fixes and update of Visualizer
2016-07-07 12:46:10 +03:00
Fred Sundvik
9772e697a0
Add Infinity Ergodox display drivers
2016-07-07 12:45:34 +03:00
Fred Sundvik
70797bb8f2
Makefile changes and files to compile Visualizer
2016-07-07 00:20:20 +03:00
Fred Sundvik
10f3a1b621
Add ugfx submodule
2016-07-07 00:17:32 +03:00
Fred Sundvik
6c29655790
Merge commit '73d890a2c9c34b905cd5e74e7146fdd4578dcb96' into add_visualizer
2016-07-06 20:30:58 +03:00
Fred Sundvik
f727801bc6
Delete .gitmodules from visualizer
2016-07-06 20:17:16 +03:00
Fred Sundvik
9f33a5593c
Add 'quantum/visualizer/' from commit 'bde869aa7ec8601459bc63b9636081d21108d1be'
...
git-subtree-dir: quantum/visualizer
git-subtree-mainline: 19f480992c
git-subtree-split: bde869aa7e
2016-07-06 20:15:45 +03:00
Fred Sundvik
e5726b017a
Add setting of the master side to the makefile
2016-07-06 16:06:53 +03:00
Fred Sundvik
4b45deb652
Enable serial_link support for ChibiOS
2016-07-06 16:06:53 +03:00
Fred Sundvik
a7e3e4e652
Add serial_link compilation to Infinity Ergodox
2016-07-06 16:06:53 +03:00
Fred Sundvik
d5e7603d55
Remove extra serial_link subdirectory
2016-07-06 13:26:20 +03:00
Fred Sundvik
c5bf090d16
Remove CGreen make files
2016-07-06 13:10:30 +03:00
Fred Sundvik
3ac52b2e76
Remove serial_link .gitignore and .gitmodules
2016-07-06 13:09:51 +03:00
Fred Sundvik
639cdd363e
Add 'quantum/serial_link/' from commit 'a20d513e3cdacbf6e0e70a80402497ad10166434'
...
git-subtree-dir: quantum/serial_link
git-subtree-mainline: 7d28d6a7bc
git-subtree-split: a20d513e3c
2016-07-05 23:27:47 +03:00
Fred Sundvik
f9a6e34c28
Add dfu-util command for programming
...
Also add .bin generation, which is needed for dfu-util.
2016-07-05 19:28:17 +03:00
Fred Sundvik
b4cd0cfd15
Infinity Ergodox - Add matrix.c and led.c
2016-07-05 16:50:30 +03:00
Fred Sundvik
74847a84f8
First version of Infinity Ergodox
...
Mostly just adding the files from the fredizzimo repository. Still
needs some fixing until it works
2016-07-05 16:45:29 +03:00
Fred Sundvik
cf6cd15920
Fix typo in teensy_lc_onkey.h
2016-07-05 15:54:59 +03:00
Fred Sundvik
6e4f2e18e6
Don't include common_config.h for ChibiOS test
2016-07-05 15:53:40 +03:00
Fred Sundvik
0a040a89e8
Move ChibiOS test board and ld
...
Move the ChibiOS test subproject board and ld files to the kebyoard
folder, so that the build system can find them
2016-07-05 15:34:35 +03:00
Fred Sundvik
b11657d1c8
Suprojects for ChibiOS testing
2016-07-05 14:56:34 +03:00
fredizzimo
1b319151aa
Add warning when submodules are not updated ( #469 )
...
* Add warning when submodules are not updated
* Sh compatible syntax for dirty submodule check
2016-07-01 21:57:59 -04:00
fredizzimo
c30aba0bce
Add ChibiOS packages to the avr_setup script ( #468 )
...
* Add ChibiOS packages to the avr_setup script
* Add git as a dependency
* Rename avr_setup.sh -> install_dependencies.sh
Also fix the Vagrant welcome message to reflect the new directory
structure.
2016-07-01 17:22:09 -04:00