diff options
| author | Jack Humbert <jack.humb@gmail.com> | 2017-11-27 23:08:21 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-27 23:08:21 -0500 |
| commit | 9fdc27626097ae03b767a09427efc90475d90955 (patch) | |
| tree | a555c38f1b714af6e2c2c96187552757d08224b9 /bootloader.mk | |
| parent | 9113f3387a670373919fe62899b0ab27e9d89eba (diff) | |
| download | qmk_firmware-9fdc27626097ae03b767a09427efc90475d90955.tar.gz qmk_firmware-9fdc27626097ae03b767a09427efc90475d90955.zip | |
Updates bootloader settings, adds file size check (#2029)
* 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
Diffstat (limited to 'bootloader.mk')
| -rw-r--r-- | bootloader.mk | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/bootloader.mk b/bootloader.mk new file mode 100644 index 000000000..55352f3d4 --- /dev/null +++ b/bootloader.mk | |||
| @@ -0,0 +1,62 @@ | |||
| 1 | # Copyright 2017 Jack Humbert | ||
| 2 | # | ||
| 3 | # This program is free software: you can redistribute it and/or modify | ||
| 4 | # it under the terms of the GNU General Public License as published by | ||
| 5 | # the Free Software Foundation, either version 2 of the License, or | ||
| 6 | # (at your option) any later version. | ||
| 7 | # | ||
| 8 | # This program is distributed in the hope that it will be useful, | ||
| 9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | # GNU General Public License for more details. | ||
| 12 | # | ||
| 13 | # You should have received a copy of the GNU General Public License | ||
| 14 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | |||
| 16 | # If it's possible that multiple bootloaders can be used for one project, | ||
| 17 | # you can leave this unset, and the correct size will be selected | ||
| 18 | # automatically. | ||
| 19 | # | ||
| 20 | # Sets the bootloader defined in the keyboard's/keymap's rules.mk | ||
| 21 | # Current options: | ||
| 22 | # atmel-dfu | ||
| 23 | # lufa-dfu | ||
| 24 | # qmk-dfu | ||
| 25 | # halfkay | ||
| 26 | # caterina | ||
| 27 | # bootloadHID | ||
| 28 | # | ||
| 29 | # BOOTLOADER_SIZE can still be defined manually, but it's recommended | ||
| 30 | # you add any possible configuration to this list | ||
| 31 | |||
| 32 | ifeq ($(strip $(BOOTLOADER)), atmel-dfu) | ||
| 33 | OPT_DEFS += -DBOOTLOADER_ATMEL_DFU | ||
| 34 | OPT_DEFS += -DBOOTLOADER_DFU | ||
| 35 | BOOTLOADER_SIZE = 4096 | ||
| 36 | endif | ||
| 37 | ifeq ($(strip $(BOOTLOADER)), lufa-dfu) | ||
| 38 | OPT_DEFS += -DBOOTLOADER_LUFA_DFU | ||
| 39 | OPT_DEFS += -DBOOTLOADER_DFU | ||
| 40 | BOOTLOADER_SIZE = 4096 | ||
| 41 | endif | ||
| 42 | ifeq ($(strip $(BOOTLOADER)), qmk-dfu) | ||
| 43 | OPT_DEFS += -DBOOTLOADER_QMK_DFU | ||
| 44 | OPT_DEFS += -DBOOTLOADER_DFU | ||
| 45 | BOOTLOADER_SIZE = 4096 | ||
| 46 | endif | ||
| 47 | ifeq ($(strip $(BOOTLOADER)), halfkay) | ||
| 48 | OPT_DEFS += -DBOOTLOADER_HALFKAY | ||
| 49 | BOOTLOADER_SIZE = 512 | ||
| 50 | endif | ||
| 51 | ifeq ($(strip $(BOOTLOADER)), caterina) | ||
| 52 | OPT_DEFS += -DBOOTLOADER_CATERINA | ||
| 53 | BOOTLOADER_SIZE = 4096 | ||
| 54 | endif | ||
| 55 | ifeq ($(strip $(BOOTLOADER)), bootloadHID) | ||
| 56 | OPT_DEFS += -DBOOTLOADER_BOOTLOADHID | ||
| 57 | BOOTLOADER_SIZE = 4096 | ||
| 58 | endif | ||
| 59 | |||
| 60 | ifdef BOOTLOADER_SIZE | ||
| 61 | OPT_DEFS += -DBOOTLOADER_SIZE=$(strip $(BOOTLOADER_SIZE)) | ||
| 62 | endif \ No newline at end of file | ||
