2015-08-16 06:45:23 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# This is a build script template
|
|
|
|
# These build scripts are just a convenience for configuring your keyboard (less daunting than CMake)
|
|
|
|
# Jacob Alexander 2015
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#################
|
|
|
|
# Configuration #
|
|
|
|
#################
|
|
|
|
|
2015-08-22 06:23:52 +00:00
|
|
|
######## Left Side ########
|
|
|
|
|
2015-08-16 06:45:23 +00:00
|
|
|
# Feel free to change the variables in this section to configure your keyboard
|
|
|
|
|
2015-08-22 06:23:52 +00:00
|
|
|
BuildPath="ICED-L"
|
2015-08-16 06:45:23 +00:00
|
|
|
|
|
|
|
## KLL Configuration ##
|
|
|
|
|
|
|
|
# Generally shouldn't be changed, this will affect every layer
|
|
|
|
BaseMap="defaultMap leftHand slave1 rightHand"
|
|
|
|
|
|
|
|
# This is the default layer of the keyboard
|
|
|
|
# NOTE: To combine kll files into a single layout, separate them by spaces
|
|
|
|
# e.g. DefaultMap="mylayout mylayoutmod"
|
2015-08-22 06:23:52 +00:00
|
|
|
DefaultMap="mdergo1Overlay lcdFuncMap"
|
2015-08-16 06:45:23 +00:00
|
|
|
|
|
|
|
# This is where you set the additional layers
|
|
|
|
# NOTE: Indexing starts at 1
|
|
|
|
# NOTE: Each new layer is another array entry
|
|
|
|
# e.g. PartialMaps[1]="layer1 layer1mod"
|
|
|
|
# PartialMaps[2]="layer2"
|
|
|
|
# PartialMaps[3]="layer3"
|
2015-08-22 06:23:52 +00:00
|
|
|
PartialMaps[1]="iced_func"
|
|
|
|
PartialMaps[2]="iced_numpad"
|
2015-08-16 06:45:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##########################
|
|
|
|
# Advanced Configuration #
|
|
|
|
##########################
|
|
|
|
|
|
|
|
# Don't change the variables in this section unless you know what you're doing
|
|
|
|
# These are useful for completely custom keyboards
|
|
|
|
# NOTE: Changing any of these variables will require a force build to compile correctly
|
|
|
|
|
|
|
|
# Keyboard Module Configuration
|
|
|
|
ScanModule="MDErgo1"
|
|
|
|
MacroModule="PartialMap"
|
|
|
|
OutputModule="pjrcUSB"
|
|
|
|
DebugModule="full"
|
|
|
|
|
|
|
|
# Microcontroller
|
|
|
|
Chip="mk20dx256vlh7"
|
|
|
|
|
|
|
|
# Compiler Selection
|
|
|
|
Compiler="gcc"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
########################
|
|
|
|
# Bash Library Include #
|
|
|
|
########################
|
|
|
|
|
|
|
|
# Shouldn't need to touch this section
|
|
|
|
|
|
|
|
# Check if the library can be found
|
|
|
|
if [ ! -f cmake.bash ]; then
|
|
|
|
echo "ERROR: Cannot find 'cmake.bash'"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Load the library
|
|
|
|
source cmake.bash
|
|
|
|
|
2015-08-22 06:23:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
#########################
|
|
|
|
# Re-run for right side #
|
|
|
|
#########################
|
|
|
|
|
|
|
|
######## Right Side ########
|
|
|
|
|
|
|
|
# Feel free to change the variables in this section to configure your keyboard
|
|
|
|
|
|
|
|
BuildPath="ICED-R"
|
|
|
|
|
|
|
|
## KLL Configuration ##
|
|
|
|
|
|
|
|
# Only changing the basemap (everything else is the same)
|
|
|
|
# Generally shouldn't be changed, this will affect every layer
|
|
|
|
BaseMap="defaultMap rightHand slave1 leftHand"
|
|
|
|
|
|
|
|
# Load the library (starts the build)
|
|
|
|
source cmake.bash
|
|
|
|
|
|
|
|
|