Commit | Line | Data |
---|---|---|
920dae64 AT |
1 | \ ========== Copyright Header Begin ========================================== |
2 | \ | |
3 | \ Hypervisor Software File: builddi.fth | |
4 | \ | |
5 | \ Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved. | |
6 | \ | |
7 | \ - Do no alter or remove copyright notices | |
8 | \ | |
9 | \ - Redistribution and use of this software in source and binary forms, with | |
10 | \ or without modification, are permitted provided that the following | |
11 | \ conditions are met: | |
12 | \ | |
13 | \ - Redistribution of source code must retain the above copyright notice, | |
14 | \ this list of conditions and the following disclaimer. | |
15 | \ | |
16 | \ - Redistribution in binary form must reproduce the above copyright notice, | |
17 | \ this list of conditions and the following disclaimer in the | |
18 | \ documentation and/or other materials provided with the distribution. | |
19 | \ | |
20 | \ Neither the name of Sun Microsystems, Inc. or the names of contributors | |
21 | \ may be used to endorse or promote products derived from this software | |
22 | \ without specific prior written permission. | |
23 | \ | |
24 | \ This software is provided "AS IS," without a warranty of any kind. | |
25 | \ ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, | |
26 | \ INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A | |
27 | \ PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN | |
28 | \ MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE FOR | |
29 | \ ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR | |
30 | \ DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN | |
31 | \ OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR | |
32 | \ FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE | |
33 | \ DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, | |
34 | \ ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF | |
35 | \ SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. | |
36 | \ | |
37 | \ You acknowledge that this software is not designed, licensed or | |
38 | \ intended for use in the design, construction, operation or maintenance of | |
39 | \ any nuclear facility. | |
40 | \ | |
41 | \ ========== Copyright Header End ============================================ | |
42 | \ id: @(#)builddi.fth 1.17 06/12/12 | |
43 | \ purpose: | |
44 | \ copyright: Copyright 2006 Sun Microsystems, Inc. All Rights Reserved | |
45 | \ | |
46 | ||
47 | fload ${BP}/pkg/keyboard/tables/usb/options.fth | |
48 | ||
49 | ." Building the USB Keyboard dropin table." cr | |
50 | ||
51 | \ Ensure that any instance data is removed | |
52 | : instance ; | |
53 | ||
54 | fload ${BP}/pkg/keyboard/headers.fth | |
55 | fload ${BP}/pkg/keyboard/keytable.fth | |
56 | fload ${BP}/pkg/keyboard/keycodes.fth | |
57 | fload ${BP}/pkg/keyboard/tables/usb/keycodes.fth | |
58 | fload ${BP}/pkg/keyboard/install.fth | |
59 | ||
60 | fload ${BP}/pkg/keyboard/tableutil.fth | |
61 | ||
62 | decimal | |
63 | showstack | |
64 | ||
65 | \ write the magic number and update the ptr | |
66 | " UKBD" dropin-buffer >kbd-di-magic swap cmove | |
67 | h# ff dropin-buffer >kbd-di-default c! | |
68 | dropin-buffer >kbd-di-data dropin-insert-ptr ! | |
69 | ||
70 | ." Loading master USB table." cr | |
71 | fload ${BP}/pkg/keyboard/tables/usb/usb-us.fth | |
72 | ' US-English is base-key-table | |
73 | ||
74 | build-empty-table | |
75 | ||
76 | ||
77 | [ifdef] usa-relative-default | |
78 | ||
79 | ." Keyboard definitions based upon US-English" cr | |
80 | ||
81 | : build-delta-table ( acf -- ) US-English key-table >base-table ; | |
82 | ||
83 | ' build-delta-table is base-key-table | |
84 | ||
85 | [else] | |
86 | ||
87 | ." Converting Keyboard Tables to *Spain* relative" cr | |
88 | ||
89 | spain key-table >base-table | |
90 | ||
91 | fload ${BP}/pkg/keyboard/tables/usb/usb-spanish.fth | |
92 | ||
93 | d# 1024 buffer: spain-base | |
94 | spain key-table spain-base /keytable move | |
95 | ||
96 | : new-delta-code | |
97 | \ All of our diff files are built relative to US-English, so we | |
98 | \ need to setup key-table with US-English first | |
99 | US-English | |
100 | ||
101 | \ However, in this case we want diffs relative to Spain so we'll copy | |
102 | \ the already compiled Spain table into the base-table, which will be | |
103 | \ used for diff generation. | |
104 | spain-base >base-table | |
105 | ; | |
106 | ||
107 | ' new-delta-code is base-key-table | |
108 | ||
109 | [then] | |
110 | ||
111 | \ Prior to this point we have just been loading the master tables, and haven't | |
112 | \ written any dropin data yet. | |
113 | \ | |
114 | ' build-dropin-table is build-table | |
115 | ." Loading USB Keyboard tables" cr | |
116 | ||
117 | \ Finally the keyboard data starts | |
118 | writing usbkbds.dat | |
119 | true to writing-tables? | |
120 | ||
121 | fload ${BP}/pkg/keyboard/tables/usb/usb-us.fth | |
122 | fload ${BP}/pkg/keyboard/tables/usb/usb-spanish.fth | |
123 | fload ${BP}/pkg/keyboard/tables/usb/usb-arabic.fth | |
124 | fload ${BP}/pkg/keyboard/tables/usb/usb-belgium.fth | |
125 | fload ${BP}/pkg/keyboard/tables/usb/usb-danish.fth | |
126 | fload ${BP}/pkg/keyboard/tables/usb/usb-finnish.fth | |
127 | fload ${BP}/pkg/keyboard/tables/usb/usb-french.fth | |
128 | fload ${BP}/pkg/keyboard/tables/usb/usb-german.fth | |
129 | fload ${BP}/pkg/keyboard/tables/usb/usb-italian.fth | |
130 | fload ${BP}/pkg/keyboard/tables/usb/usb-japanese.fth | |
131 | fload ${BP}/pkg/keyboard/tables/usb/usb-netherlands.fth | |
132 | fload ${BP}/pkg/keyboard/tables/usb/usb-norwegian.fth | |
133 | fload ${BP}/pkg/keyboard/tables/usb/usb-portuguese.fth | |
134 | fload ${BP}/pkg/keyboard/tables/usb/usb-swedish.fth | |
135 | fload ${BP}/pkg/keyboard/tables/usb/usb-swiss-french.fth | |
136 | fload ${BP}/pkg/keyboard/tables/usb/usb-swiss-german.fth | |
137 | fload ${BP}/pkg/keyboard/tables/usb/usb-turkeyf.fth | |
138 | fload ${BP}/pkg/keyboard/tables/usb/usb-turkeyq.fth | |
139 | fload ${BP}/pkg/keyboard/tables/usb/usb-uk.fth | |
140 | fload ${BP}/pkg/keyboard/tables/usb/aliases.fth | |
141 | ||
142 | all-done | |
143 | ||
144 |