forked from mirrors/qmk_firmware
adding new per-keymap makefile
This commit is contained in:
parent
f051496f13
commit
3993afbb2e
3 changed files with 73 additions and 28 deletions
|
@ -38,6 +38,27 @@
|
||||||
# To rebuild project do "make clean" then "make all".
|
# To rebuild project do "make clean" then "make all".
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# Build Options
|
||||||
|
# change to "no" to disable the options, or define them in the makefile.mk in
|
||||||
|
# the appropriate keymap folder that will get included automatically
|
||||||
|
#
|
||||||
|
BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
|
||||||
|
MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
|
||||||
|
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||||
|
CONSOLE_ENABLE = yes # Console for debug(+400)
|
||||||
|
COMMAND_ENABLE = yes # Commands for debug and configuration
|
||||||
|
NKRO_ENABLE = no # USB Nkey Rollover - if this doesn't work, see here:
|
||||||
|
# https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||||
|
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
|
||||||
|
MIDI_ENABLE = no # MIDI controls
|
||||||
|
AUDIO_ENABLE = no # Audio output on port C6
|
||||||
|
UNICODE_ENABLE = no # Unicode
|
||||||
|
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||||
|
RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
|
||||||
|
|
||||||
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
|
|
||||||
# Target file name (without extension).
|
# Target file name (without extension).
|
||||||
TARGET = atomic
|
TARGET = atomic
|
||||||
|
|
||||||
|
@ -50,14 +71,41 @@ TMK_DIR = ../../tmk_core
|
||||||
TARGET_DIR = .
|
TARGET_DIR = .
|
||||||
|
|
||||||
# # project specific files
|
# # project specific files
|
||||||
SRC = atomic.c \
|
SRC = atomic.c
|
||||||
backlight.c
|
|
||||||
|
ifdef keymap
|
||||||
|
KEYMAP = $(keymap)
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef KEYMAP
|
ifdef KEYMAP
|
||||||
SRC := keymaps/$(KEYMAP).c $(SRC)
|
ifneq ("$(wildcard keymaps/$(KEYMAP).c)","")
|
||||||
|
KEYMAP_FILE = keymaps/$(KEYMAP).c
|
||||||
else
|
else
|
||||||
SRC := keymaps/default.c $(SRC)
|
ifneq ("$(wildcard keymaps/$(KEYMAP)/keymap.c)","")
|
||||||
|
KEYMAP_FILE = keymaps/$(KEYMAP)/keymap.c
|
||||||
|
ifneq ("$(wildcard keymaps/$(KEYMAP)/makefile.mk)","")
|
||||||
|
include keymaps/$(KEYMAP)/makefile.mk
|
||||||
endif
|
endif
|
||||||
|
else
|
||||||
|
$(error Keymap file does not exist)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
ifneq ("$(wildcard keymaps/default.c)","")
|
||||||
|
KEYMAP_FILE = keymaps/default.c
|
||||||
|
else
|
||||||
|
KEYMAP_FILE = keymaps/default/keymap.c
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifneq ("$(wildcard keymaps/default/makefile.mk)","")
|
||||||
|
include keymaps/default/makefile.mk
|
||||||
|
endif
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
|
SRC := $(KEYMAP_FILE) $(SRC)
|
||||||
|
|
||||||
CONFIG_H = config.h
|
CONFIG_H = config.h
|
||||||
|
|
||||||
|
@ -111,22 +159,10 @@ OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
|
||||||
OPT_DEFS += -DBOOTLOADER_SIZE=4096
|
OPT_DEFS += -DBOOTLOADER_SIZE=4096
|
||||||
|
|
||||||
|
|
||||||
# Build Options
|
ifeq ($(BACKLIGHT_ENABLE), yes)
|
||||||
# comment out to disable the options.
|
SRC += backlight.c
|
||||||
#
|
endif
|
||||||
BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
|
|
||||||
MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
|
|
||||||
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
|
||||||
CONSOLE_ENABLE = yes # Console for debug(+400)
|
|
||||||
COMMAND_ENABLE = yes # Commands for debug and configuration
|
|
||||||
NKRO_ENABLE = yes # USB Nkey Rollover - not yet supported in LUFA
|
|
||||||
#BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
|
|
||||||
#MIDI_ENABLE = yes # MIDI controls
|
|
||||||
#UNICODE_ENABLE = yes # Unicode
|
|
||||||
#BLUETOOTH_ENABLE = yes # Enable Bluetooth with the Adafruit EZ-Key HID
|
|
||||||
|
|
||||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
|
||||||
#SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
|
|
||||||
|
|
||||||
# Optimize size but this may cause error "relocation truncated to fit"
|
# Optimize size but this may cause error "relocation truncated to fit"
|
||||||
#EXTRALDFLAGS = -Wl,--relax
|
#EXTRALDFLAGS = -Wl,--relax
|
||||||
|
@ -136,11 +172,4 @@ VPATH += $(TARGET_DIR)
|
||||||
VPATH += $(TOP_DIR)
|
VPATH += $(TOP_DIR)
|
||||||
VPATH += $(TMK_DIR)
|
VPATH += $(TMK_DIR)
|
||||||
|
|
||||||
debug-on: EXTRAFLAGS += -DDEBUG -DDEBUG_ACTION
|
|
||||||
debug-on: all
|
|
||||||
|
|
||||||
debug-off: EXTRAFLAGS += -DNO_DEBUG -DNO_PRINT
|
|
||||||
debug-off: OPT_DEFS := $(filter-out -DCONSOLE_ENABLE,$(OPT_DEFS))
|
|
||||||
debug-off: all
|
|
||||||
|
|
||||||
include $(TOP_DIR)/quantum/quantum.mk
|
include $(TOP_DIR)/quantum/quantum.mk
|
16
keyboard/atomic/keymaps/pvc/makefile.mk
Normal file
16
keyboard/atomic/keymaps/pvc/makefile.mk
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
|
||||||
|
MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
|
||||||
|
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||||
|
CONSOLE_ENABLE = no # Console for debug(+400)
|
||||||
|
COMMAND_ENABLE = yes # Commands for debug and configuration
|
||||||
|
NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here:
|
||||||
|
# https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||||
|
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||||
|
MIDI_ENABLE = no # MIDI controls
|
||||||
|
AUDIO_ENABLE = no # Audio output on port C6
|
||||||
|
UNICODE_ENABLE = no # Unicode
|
||||||
|
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||||
|
RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
|
||||||
|
|
||||||
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
Loading…
Reference in a new issue