summaryrefslogtreecommitdiff
path: root/tmk_core/rules.mk
AgeCommit message (Collapse)Author
2020-06-12Fix ChibiOS FPU build logic (#9132)Joel Challis
2020-06-12Remove Atmel FLIP from install scripts and documentation (#8822)Ryan
2020-06-12Add support for hardware and board initialisation overrides. (#8330)Nick Brassel
* Add support for hardware and board initialisation overrides. * qmk cformat. * Add some documentation. * Docs clarity. * Make early_hardware_init_pre a no-op for now, until migrations occur. * Doco update * Make distinction between keyboard and ChibiOS board in docs * Doc anchors. * Update tmk_core/protocol/chibios/main.c Co-Authored-By: Joel Challis <git@zvecr.com> * Rework bootloader entry to be off by default, allow opting-in. Co-authored-by: Joel Challis <git@zvecr.com>
2020-02-26Fix misunderstanding of CPPFLAGS and CXXFLAGS.Nick Brassel
2020-01-06Remove CR when computing BOOTLOADER_SIZE. (#7453)a_p_u_r_o
2019-09-05Add a universal flash command for cli (#6224)Drashna Jaelre
* Add universal flash command * Add bootloader info to I:C boards * Add support for ATSAM * Add messages for flash target * Message cleanup * Add USB ASP Flashing target * Make usbasp target more universal * Add phoney target for usbasp * Clarify error message when bootloader isn't matched
2019-07-19Skip unsupported firmware check message in silent mode (#5765)Drashna Jaelre
2019-07-19add 'objs-size' target into tmk_core/avr.mk (#5490)Takeshi ISHII
2019-07-16Display firmware size percentage (#6307)fauxpark
2019-07-10Fix chibios so the dfu-suffix is only applied once. (#6270)skullydazed
2019-04-24fix LIB_SRC and QUANTUM_LIB_SRC for ARM (#5623)Takeshi ISHII
* fix LIB_SRC and QUANTUM_LIB_SRC for ARM(chibios) * remove ARFLAGS * tmk_core/arm_atsam.mk:AR: remove 'rcs'
2019-03-27build size-check enhancement (#5485)Takeshi ISHII
* build size-check enhancement Changed to display a warning when the free size of compilation result is less than 512 bytes. * update message.mk * add SIZE_MARGIN variable, change default margin 512 to 1024 for Example. ``` $ make SIZE_MARGIN=2048 crkbd:all $ make crkbd:all ## mergin is 1024 ``` * Update message.mk change message to ‘approaching the maximum’ Co-Authored-By: mtei <2170248+mtei@users.noreply.github.com>
2019-02-12Remove AUTOGEN and fix Travis Compiled Push scripts (#5077)Drashna Jaelre
* Grab HEX and BIN files from autogen And push them to qmk.fm/compiled * Make autogen copy extension agnostic This way, when travis cl scrpit looks for hex files, it will actually grab bin files, and not hex files for ARM boards * Handle the AUTOGEN in :bin target to properly handle edge cases Both the TADA68 and ATSAM boards generate the hex file and then convert it to a bin file. The changes I made does not handle this well, at all. This removes the hex and replaces it with a bin, if a bin is normally generated. * Revert hex target to original copy command * Check hex and bin separately in compile push script Since I don't know how to script this, well * Simplify push to compiled folder * Further simplify compiled push script * Move AUTOGEN parsing to a more sane location to prevent tech debt Thanks to skully! * Remove AUTOGEN completely, as it's not needed This has the benefit of making everything super simple, since we can pull every hex and bin from the root of the qmk_firmware folder, and move that to th compiled folder. This also removes old and unneeded code, and removes some tech debt that has been accrued, without adding more, in theory.
2018-12-14Refactor quantum/split_common/i2c.c, quantum/split_common/serial.c (#4522)Takeshi ISHII
* add temporary compile test shell script * Extended support of SKIP_VERSION to make invariant compile results during testing. * build_keyboard.mk, tmk_core/rules.mk: add LIB_SRC, QUANTUM_LIB_SRC support Support compiled object enclosed in library. e.g. ``` LIB_SRC += xxxx.c xxxx.c --> xxxx.o ---> xxxx.a ``` * remove 'ifdef/ifndef USE_I2C' from quantum/split_common/{i2c|serial}.c * add SKIP_DEBUG_INFO into tmk_core/rules.mk When SKIP_DEBUG_INFO=yes is specified, do not use the -g option at compile time. * tmk_core/rules.mk: Library object need -fno-lto * add SKIP_DEBUG_INFO=yes * remove temporary compile test shell script * add '#define SOFT_SERIAL_PIN D0' to keyboards/lets_split/rev?/config.h * quantum/split_common/serial.c: Changed not to use USE_I2C.
2018-10-23Made a userspace that allows you to use your keyboard as an order of ↵Ajax
operations based calculator (#2864) * Made DZ60 layout with calculator * Cleaned up and commented, preparing to fix bug with negative in front of open parenthesis as first character * Fixed bug where negative sign infront of parenthesis as first character was parsed incorrectly * Made a better solution for the bug from the previous commit * Modularized and added a userfile so that this code can be used on various keyboards, found in doogle999 * Removed commented code from keymap * Made the layer that is used for calculations a define so that it can be changed per keyboard * Made the readme * Made the readme in the correct place * Revert "Made the readme in the correct place" This reverts commit 7f8b59ed9e59c77401a48be3a7ac1e8fd8e84e32. * Manually synced with qmk upstream * Stopped repeat, made keys print character that they are defined as rather than what the keyboard wants them to do * Added support for numpad, might make all keycodes custom so that there is no need to change doogle999.c if you want to change the keycode that is associated with a function, also made numpad automatically activating an option * Fixed some bugs with backspacing, updated the readme * Fixed some bugs with numlock turning on at the wrong times when a shift key was down * Made the return to layer work automatically instead of just forcing it to layer 0 * fixes and style changes, 20% decreased binary size * Fixed some bugs with double printing and compilation errors on my side * Fixed bug with exceeding the buffer size * Removed changes that added const-ness * Made changes so that backspace does not repeat to remove backspace bugs, still some bugs with recalculating without having typed anything * Fixed obo error with calc main loop * Made includes more accurate in keymap for dz60 * Moved flags to user makefile
2018-09-27Treat too-large firmwares as an error, not a warning (#3956)skullydazed
* Treat too-large firmwares as an error, not a warning * switch the order of printing * I think I have it * adjust the formatting some more
2018-08-16change messege at 'check-size' targetmtei
2018-03-26Better non-Linux support (#2524)dankm
* grep -> $(GREP) Some UNIXy systems (FreeBSD for example) don't use GNU grep by default. Allow the user to specify which grep implementation to use so that GNU grep can be specified. * Allow using versioned avr-gcc command Don't hardcode "avr-gcc", and allow strings such as "avr-gcc8", or "avr-gcc-7.3.0" to match checks for "avr-gcc".
2018-02-08add conditional to perform check-size only for supported architecturesMichael F. Lamb
2018-02-08make check_size work across platformsMichael F. Lamb
2018-02-02Use perl directly instead of grep -PErin Call
BSD grep (the one on OSX) lacks a -P flag. The grep -P command thus fails and prints a usage message to the terminal. This fixes that.
2018-01-28Always copy the firmware file to the root qmk_firmware directory (#2314)skullydazed
* Always copy the firmware file to the root qmk_firmware directory * remove circular dependency
2017-11-27Updates bootloader settings, adds file size check (#2029)Jack Humbert
* pull fuse settings for bootloader jump * fix 32a chips * make automatic bootloader selection optional * quantify bootloaders * fixs #164, speeds up dfu reset * fix for chips w/o usb * missing an n * fix bootloader sizes, use words for addresses * fix bmini, pearl, and [[ issue, make things quiet * ignore avr errors on arm for now * update settings for the light * document bootloader stuff * add bootloader title
2017-10-14Make arguments redo, subproject elimination (#1784)Jack Humbert
* redo make args to use colons, better folder structuring system [skip ci] * don't put spaces after statements - hard lessons in makefile development * fix-up some other rules.mk * give travis a chance * reset KEYMAPS variable * start converting keyboards to new system * try making all with travis * redo make args to use colons, better folder structuring system [skip ci] * don't put spaces after statements - hard lessons in makefile development * fix-up some other rules.mk * give travis a chance * reset KEYMAPS variable * start converting keyboards to new system * try making all with travis * start to update readmes and keyboards * look in keyboard directories for board.mk * update visualizer rules * fix up some other keyboards/keymaps * fix arm board ld includes * fix board rules * fix up remaining keyboards * reset layout variable * reset keyboard_layouts * fix remainging keymaps/boards * update readmes, docs * add note to makefile error * update readmes * remove planck keymap warnings * update references and docs * test out tarvis build stages * don't use stages for now * don't use stages for now
2017-09-29Clueboard 60% support (#1746)skullydazed
* initial clueboard_60 support * LED lighting support * fix the clueboard->clueboard_66 rename * Add layout support to clueboard_60 * Fix the 60_iso layout so it's actually iso * add a default keymap for AEK layout * fix clueboard_17 * Fixup the ISO layouts * Fix the `wait_ms()/wait_us()` definitions for chibios * Fix up the wait_ms/wait_us hack. Reduce stack size. * Add a missing #include "wait.h" * commit files that should have already been comitted
2017-08-21update building for .hex, secrets movingJack Humbert
2017-08-08move version info to the top of the outputJack Humbert
2017-08-08add version to make outputJack Humbert
2017-04-13Add make option for allowing warningsFred Sundvik
2017-04-13Enable warnings as errorsFred Sundvik
2016-09-04Fix the ldflags.txt and obj.txt checksFred Sundvik
There was a minor typo, which caused the files to not be generated and therefore the elf files were always linked.
2016-08-27Add -p parameter to mkdirFred Sundvik
So that it's created even when there's a deeper structure
2016-08-27Disable map file creation when building testsFred Sundvik
It causes strange linker warnings on cygwin.
2016-08-27Rules for compiling and linking google testFred Sundvik
2016-08-20Fix the clean targetFred Sundvik
It now properly cleans all the outputs
2016-08-20Add output specific config fileFred Sundvik
2016-08-20Output specific include pathsFred Sundvik
2016-08-20More general system for generating several outputsFred Sundvik
2016-08-20Move git submodule check and version generation to main MakefileFred Sundvik
2016-08-20Remove unneded code from tmk_core/rules.mkFred Sundvik
2016-07-31Remove the quick commands and add proper cleanFred Sundvik
2016-07-31Also depend on the gcc versionFred Sundvik
2016-07-31Force compilation and linking when options changesFred Sundvik
2016-07-31More reliable .d file generationFred Sundvik
Also generated inside the obj dir instead of separate deps folder.
2016-07-31Enable vpath seraching for source files onlyFred Sundvik
2016-07-29Speed up ChibiOS keymap compilationFred Sundvik
By sharing the external library object files between the whole keyboard, instead of re-compiling them for each keymap.
2016-07-27tmk_core/rules.mk: Make PRINT_ERROR* stop on errorGergely Nagy
Instead of `&& false`, explicitly `exit 1` to make the rules using these macros fail. This fixes #571, and likely breaks Travis badly. Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2016-07-08Use order only prerequisites to avoid re-linkingFred Sundvik
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-08Fix name of makefile dep filesFred Sundvik
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-08Fix the link targetFred Sundvik