annotate Keyboards/infinity.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: 365
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
365
dbe0dbd7e2dd Updating convenience scripts
Jacob Alexander <haata@kiibohd.com>
parents: 312
diff changeset
14 BuildPath="IC60"
312
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
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 # Advanced Configuration #
c5f083de1838 Adding convenience compiler scripts.
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
38 ##########################
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 # 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
41 # These are useful for completely custom keyboards
c5f083de1838 Adding convenience compiler scripts.
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
42 # 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
43
c5f083de1838 Adding convenience compiler scripts.
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
44 # Keyboard Module Configuration
c5f083de1838 Adding convenience compiler scripts.
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
45 ScanModule="MD1"
c5f083de1838 Adding convenience compiler scripts.
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
46 MacroModule="PartialMap"
c5f083de1838 Adding convenience compiler scripts.
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
47 OutputModule="pjrcUSB"
c5f083de1838 Adding convenience compiler scripts.
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
48 DebugModule="full"
c5f083de1838 Adding convenience compiler scripts.
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
49
c5f083de1838 Adding convenience compiler scripts.
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
50 # Microcontroller
c5f083de1838 Adding convenience compiler scripts.
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
51 Chip="mk20dx128vlf5"
c5f083de1838 Adding convenience compiler scripts.
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
52
c5f083de1838 Adding convenience compiler scripts.
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
53 # Compiler Selection
c5f083de1838 Adding convenience compiler scripts.
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
54 Compiler="gcc"
c5f083de1838 Adding convenience compiler scripts.
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
55
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 # Bash Library Include #
c5f083de1838 Adding convenience compiler scripts.
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
60 ########################
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 # Shouldn't need to touch this section
c5f083de1838 Adding convenience compiler scripts.
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
63
c5f083de1838 Adding convenience compiler scripts.
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
64 # Check if the library can be found
c5f083de1838 Adding convenience compiler scripts.
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
65 if [ ! -f cmake.bash ]; then
c5f083de1838 Adding convenience compiler scripts.
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
66 echo "ERROR: Cannot find 'cmake.bash'"
c5f083de1838 Adding convenience compiler scripts.
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
67 exit 1
c5f083de1838 Adding convenience compiler scripts.
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
68 fi
c5f083de1838 Adding convenience compiler scripts.
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
69
c5f083de1838 Adding convenience compiler scripts.
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
70 # Load the library
c5f083de1838 Adding convenience compiler scripts.
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
71 source cmake.bash
c5f083de1838 Adding convenience compiler scripts.
Jacob Alexander <haata@kiibohd.com>
parents:
diff changeset
72