]> git.donarmstrong.com Git - kiibohd-controller.git/blob - Keyboards/ergodox.bash
b07eb1643e404d5f803b7d6fd3b07f025011668d
[kiibohd-controller.git] / Keyboards / ergodox.bash
1 #!/bin/bash
2 # This is a build script template
3 # These build scripts are just a convenience for configuring your keyboard (less daunting than CMake)
4 # Jacob Alexander 2015
5
6
7
8 #################
9 # Configuration #
10 #################
11
12 ######## Left Side ########
13
14 # Feel free to change the variables in this section to configure your keyboard
15
16 BuildPath="ICED-L"
17
18 ## KLL Configuration ##
19
20 # Generally shouldn't be changed, this will affect every layer
21 BaseMap="defaultMap leftHand slave1 rightHand"
22
23 # This is the default layer of the keyboard
24 # NOTE: To combine kll files into a single layout, separate them by spaces
25 # e.g.  DefaultMap="mylayout mylayoutmod"
26 DefaultMap="mdergo1Overlay lcdFuncMap"
27
28 # This is where you set the additional layers
29 # NOTE: Indexing starts at 1
30 # NOTE: Each new layer is another array entry
31 # e.g.  PartialMaps[1]="layer1 layer1mod"
32 #       PartialMaps[2]="layer2"
33 #       PartialMaps[3]="layer3"
34 PartialMaps[1]="iced_func"
35 PartialMaps[2]="iced_numpad"
36
37
38
39 ##########################
40 # Advanced Configuration #
41 ##########################
42
43 # Don't change the variables in this section unless you know what you're doing
44 # These are useful for completely custom keyboards
45 # NOTE: Changing any of these variables will require a force build to compile correctly
46
47 # Keyboard Module Configuration
48 ScanModule="MDErgo1"
49 MacroModule="PartialMap"
50 OutputModule="pjrcUSB"
51 DebugModule="full"
52
53 # Microcontroller
54 Chip="mk20dx256vlh7"
55
56 # Compiler Selection
57 Compiler="gcc"
58
59
60
61 ########################
62 # Bash Library Include #
63 ########################
64
65 # Shouldn't need to touch this section
66
67 # Check if the library can be found
68 if [ ! -f cmake.bash ]; then
69         echo "ERROR: Cannot find 'cmake.bash'"
70         exit 1
71 fi
72
73 # Load the library
74 source cmake.bash
75
76
77
78 #########################
79 # Re-run for right side #
80 #########################
81
82 ######## Right Side ########
83
84 # Feel free to change the variables in this section to configure your keyboard
85
86 BuildPath="ICED-R"
87
88 ## KLL Configuration ##
89
90 # Only changing the basemap (everything else is the same)
91 # Generally shouldn't be changed, this will affect every layer
92 BaseMap="defaultMap rightHand slave1 leftHand"
93
94 # Load the library (starts the build)
95 source cmake.bash
96
97