annotate Keyboards/template.bash @ 452:31daf3b37f7a

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