annotate Keyboards/ergodox.bash @ 365:dbe0dbd7e2dd

Updating convenience scripts
author Jacob Alexander <haata@kiibohd.com>
date Sat, 15 Aug 2015 23:45:23 -0700
parents
children 83cb0d4b57e3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
365
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
1 #!/bin/bash
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
2 # This is a build script template
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
3 # These build scripts are just a convenience for configuring your keyboard (less daunting than CMake)
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
4 # Jacob Alexander 2015
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
5
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
6
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
7
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
8 #################
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
9 # Configuration #
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
10 #################
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
11
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
12 # Feel free to change the variables in this section to configure your keyboard
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
13
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
14 BuildPath="ICED"
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
15
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
16 ## KLL Configuration ##
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
17
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
18 # Generally shouldn't be changed, this will affect every layer
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
19 BaseMap="defaultMap leftHand slave1 rightHand"
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
20
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
21 # This is the default layer of the keyboard
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
22 # NOTE: To combine kll files into a single layout, separate them by spaces
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
23 # e.g. DefaultMap="mylayout mylayoutmod"
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
24 DefaultMap="stdFuncMap"
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
25
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
26 # This is where you set the additional layers
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
27 # NOTE: Indexing starts at 1
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
28 # NOTE: Each new layer is another array entry
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
29 # e.g. PartialMaps[1]="layer1 layer1mod"
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
30 # PartialMaps[2]="layer2"
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
31 # PartialMaps[3]="layer3"
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
32 PartialMaps[1]="hhkbpro2"
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
33
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
34
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
35
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
36 ##########################
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
37 # Advanced Configuration #
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
38 ##########################
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
39
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
40 # Don't change the variables in this section unless you know what you're doing
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
41 # These are useful for completely custom keyboards
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
42 # NOTE: Changing any of these variables will require a force build to compile correctly
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
43
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
44 # Keyboard Module Configuration
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
45 ScanModule="MDErgo1"
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
46 MacroModule="PartialMap"
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
47 OutputModule="pjrcUSB"
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
48 DebugModule="full"
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
49
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
50 # Microcontroller
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
51 Chip="mk20dx256vlh7"
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
52
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
53 # Compiler Selection
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
54 Compiler="gcc"
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
55
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
56
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
57
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
58 ########################
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
59 # Bash Library Include #
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
60 ########################
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
61
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
62 # Shouldn't need to touch this section
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
63
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
64 # Check if the library can be found
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
65 if [ ! -f cmake.bash ]; then
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
66 echo "ERROR: Cannot find 'cmake.bash'"
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
67 exit 1
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
68 fi
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
69
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
70 # Load the library
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
71 source cmake.bash
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
72