]> git.donarmstrong.com Git - kiibohd-controller.git/blob - Keyboards/template.bash
Start removing select Linux-isms
[kiibohd-controller.git] / Keyboards / template.bash
1 #!/usr/bin/env 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 # Feel free to change the variables in this section to configure your keyboard
13
14 BuildPath="template"
15
16 ## KLL Configuration ##
17
18 # Generally shouldn't be changed, this will affect every layer
19 BaseMap="defaultMap"
20
21 # This is the default layer of the keyboard
22 # NOTE: To combine kll files into a single layout, separate them by spaces
23 # e.g.  DefaultMap="mylayout mylayoutmod"
24 DefaultMap="md1Overlay stdFuncMap"
25
26 # This is where you set the additional layers
27 # NOTE: Indexing starts at 1
28 # NOTE: Each new layer is another array entry
29 # e.g.  PartialMaps[1]="layer1 layer1mod"
30 #       PartialMaps[2]="layer2"
31 #       PartialMaps[3]="layer3"
32 PartialMaps[1]="hhkbpro2"
33 PartialMaps[2]="colemak"
34
35
36
37 ##########################
38 # Advanced Configuration #
39 ##########################
40
41 # Don't change the variables in this section unless you know what you're doing
42 # These are useful for completely custom keyboards
43 # NOTE: Changing any of these variables will require a force build to compile correctly
44
45 # Keyboard Module Configuration
46 ScanModule="MD1"
47 MacroModule="PartialMap"
48 OutputModule="pjrcUSB"
49 DebugModule="full"
50
51 # Microcontroller
52 Chip="mk20dx128vlf5"
53
54 # Compiler Selection
55 Compiler="gcc"
56
57
58
59 ########################
60 # Bash Library Include #
61 ########################
62
63 # Shouldn't need to touch this section
64
65 # Check if the library can be found
66 if [ ! -f cmake.bash ]; then
67         echo "ERROR: Cannot find 'cmake.bash'"
68         exit 1
69 fi
70
71 # Load the library
72 source cmake.bash
73