summaryrefslogtreecommitdiffstats
path: root/WebHob_1.5/layer-details-meta-custom-images.html
blob: 7a8a1ac807488ba6496f9d5bf7312d5a66a97019 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
<!DOCTYPE html>
<html>
  <head>
    <title>meta-custom-images (fido)</title>
    <link rel="stylesheet" href="assets/css/bootstrap.min.css" type='text/css'>
    <link rel="stylesheet" href="assets/css/bootstrap-responsive.min.css" type='text/css'>
    <link rel="stylesheet" href="assets/css/font-awesome.min.css" type='text/css'>
    <link rel="stylesheet" href="assets/css/prettify.css" type='text/css'>
    <link rel="stylesheet" href="assets/css/default.css" type='text/css'>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  </head>

  <body>
    <div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container-fluid">
					<a class="brand logo" href="index.html"><img src="assets/img/logo.png" class="" /></a>
					<a class="brand" href="index.html">Toaster</a>
					<ul class="nav">
            <li>
              <a href="index.html" id="nav-builds">
                <i class="icon-tasks"></i>
                All builds
              </a>
            </li>
            <li>
              <a href="all-projects.html" id="nav-projects">
                <i class="icon-folder-open"></i>
                All projects
              </a>
            </li>
            <li>
              <a href="all-users.html" id="nav-projects">
                <i class="icon-user"></i>
                All users
              </a>
            </li>
            <li>
              <a href="#">
                <i class="icon-cog"></i>
                Administration
              </a>
            </li>
            <li>
              <a href="#">
                <i class="icon-book"></i>
                Manual
              </a>
            </li>
					</ul>
					<div class="btn-group pull-right">
						<button class="btn dropdown-toggle" data-toggle="dropdown" href="#">
							<i class="icon-user"></i>
							You
							<i class="icon-caret-down"></i>
						</button>
						<ul class="dropdown-menu">
							<li><a href="profile.html">Edit your profile</a></li>
							<li><a href="profile.html?change-password">Change password</a></li>
							<li style="margin-top:10px;"><a href="#" class="btn">Log out</a></li>
						</ul>
					</div>
					<span class="pull-right divider-vertical"></span>
					<div class="btn-group pull-right">
						<a class="btn" href="newproject.html">New project</a>
						<!--button class="btn dropdown-toggle" data-toggle="dropdown">
							<i class="icon-caret-down"></i>
						</button>
						<ul class="dropdown-menu">
							<li><a href="#">Clone project</a></li>
							<li><a href="#">Export project</a></li>
							<li><a href="#">Import project</a></li>
						</ul-->
					</div>
					<div class="btn-group pull-right">
						<button class="btn dropdown-toggle" data-toggle="dropdown" href="#">
							New build
							<i class="icon-caret-down"></i>
						</button>
						<ul class="dropdown-menu new-build multi-select">
							<li>
								<h3>New build</h3>
								<h6>Project:</h6>
								<span id="project">
									<a class="lead" href="project-configuration.html">$project_name</a>
									<i class="icon-pencil"></i>
								</span>
								<form id="change-project-form" style="display:none;">
									<div class="input-append">
										<input type="text" class="input-medium" value="$project_name" autocomplete="off" data-minLength="1" data-autocomplete="off"
										data-provide="typeahead"  data-source='[
										"project one",
										"project two",
										"project three",
										"project four",
										"project five" ]'>
										<button id="apply-change-project" class="btn" type="button">Save</button>
										<a href="#" id="cancel-change-project" class="btn btn-link">Cancel</a>
									</div>
									<a id="view-all-projects" style="display:block;" href="#">View all projects</a>
								</form>
							</li>
							<li>
								<!--div id="selected-targets">
									<h6>Selected targets:</h6>
									<ul class="unstyled configuration-list">
										<li>core-image-myimage</li>
										<li>core-image-myimage-dev</li>
										<a id="build-selected" class="btn">Build selected targets</a>
									</ul>
									<form class="input-append">
										<input type="text" placeholder="or type a target name" autocomplete="off" data-minLength="1" data-autocomplete="off"
										data-provide="typeahead"  data-source='["core-image-base [meta | daisy]",
										"core-image-clutter [meta | daisy]",
										"core-image-directfb [meta | daisy]",
										"core-image-myimage [meta-imported-layer | 3e1dbabbf3&hellip;]",
										"core-image-anotherimage [meta-imported-layer | master]",
										"core-image-full-cmdline [meta | daisy]",
										"core-image-lsb [meta | daisy]",
										"core-image-lsb-dev [meta | daisy]",
										"core-image-lsb-sdk [meta | daisy]",
										"core-image-minimal [meta | daisy]" ]'>
										<a class="btn btn-primary" disabled>Build</a>
									</form>
								</div-->
								<div id="no-selected-targets">
									<h6>Target(s):</h6>
									<form>
										<input class="input-xlarge" type="text" placeholder="Type a target name" autocomplete="off" data-minLength="1" data-autocomplete="off"
										data-provide="typeahead"  data-source='["core-image-base [meta | daisy]",
										"core-image-clutter [meta | daisy]",
										"core-image-directfb [meta | daisy]",
										"core-image-myimage [meta-imported-layer | 3e1dbabbf3&hellip;]",
										"core-image-anotherimage [meta-imported-layer | master]",
										"core-image-full-cmdline [meta | daisy]",
										"core-image-lsb [meta | daisy]",
										"core-image-lsb-dev [meta | daisy]",
										"core-image-lsb-sdk [meta | daisy]",
										"core-image-minimal [meta | daisy]" ]'>
										<div>
											<a class="btn btn-primary" disabled style="padding: 4px 30px;">
												Build
											</a>
										</div>
									</form>
								</div>
							</li>
						</ul>
					</div>
				</div>
            </div>
        </div>

        <div class="container-fluid top-padded">

    	<!-- begin content -->
    	<div class="row-fluid">

				<!-- Breadcrumbs -->
            	<div class="section">
                	<ul class="breadcrumb">
                    <li class="muted">$project_name:</li>
                    <li>
                      <a href="project-configuration.html">Configuration</a>
                      <span class="divider">&rarr;</span>
                    </li>
                  	<li><a href="all-layers.html">Compatible layers</a>
                  		<span class="divider">&rarr;</span>
                  	</li>
                  	<li class="active">meta-custom-images (fido)</li>
                	</ul>
            	</div>

            	<!-- Begin right container -->

          <div class="span11">

          <div id="change-notification" class="alert alert-info lead" style="display:none;">
    				<button type="button" class="close" data-dismiss="alert">&times;</button>
    				<span class="lead"></span>
    			</div>

            <div class="page-header">
  						<h1>
  							meta-custom-images
  							<small>(fido)</small>
  						</h1>
  					</div>
   				</div>
   				<div class="row-fluid span7">
            <h2>Custom images in this layer</h2>
  					<table class="table table-bordered table-hover">
  						<thead> <!-- Table header -->
  							<tr>
  								<th class="custom-image">
  									<a href="#" class="sorted">Custom image</a>
  									<i class="icon-caret-down"></i>
  								</th>
  								<th class="version">
  									<span class="muted">Version</span>
  								</th>
  								<th class="recipe-file">
  									<span class="muted">Recipe file</span>
  								</th>
  								<th class="build span2">
  									<span class="muted">Build</span>
  								</th>
  							</tr>
  						</thead>
  						<tbody>
  							<tr>
  								<td class="custom-image">
  									<a href="custom-image-details-included.html">$custom-image-name</a>
  								</td>
  								<td class="version"><a href="custom-image-details-included.html">1.0</a></td>
  								<td class="recipe-file">
  									<code>custom-image-name.bb</code>
                    <a href="#download-file" data-toggle="modal"><i class="icon-download-alt" title="Download recipe file"></i></a>
  								</td>
  								<td class="build">
  									<a href="project-builds.html?recipe=$custom-image-name" class="btn btn-block">
  										Build
  									</a>
  								</td>
  							</tr>
                <tr>
  								<td class="custom-image">
  									<a href="custom-image-details-included.html">$custom-image-name-2</a>
  								</td>
  								<td class="version"><a href="custom-image-details-included.html">1.0</a></td>
  								<td class="recipe-file">
  									<code>custom-image-name-2.bb</code>
                    <i class="icon-download-alt" title="Download recipe file"></i>
  								</td>
  								<td class="build">
  									<a href="project-builds.html?recipe=$custom-image-name-2" class="btn btn-block">
  										Build
  									</a>
  								</td>
  							</tr>
                <tr>
  								<td class="custom-image">
  									<a href="custom-image-details-nodata.html">$custom-image-name-3</a>
  								</td>
  								<td class="version"><a href="custom-image-details-nodata.html">1.0</a></td>
  								<td class="recipe-file">
  								</td>
  								<td class="build">
  									<a href="project-builds.html?recipe=$custom-image-name-3" class="btn btn-block">
  										Build
  									</a>
  								</td>
  							</tr>
                <tr>
  								<td class="custom-image">
  									<a href="custom-image-details-included.html">$custom-image-name-4</a>
  								</td>
  								<td class="version">1.0</td>
  								<td class="recipe-file">
  									<code>custom-image-name-4.bb</code>
                    <i class="icon-download-alt" title="Download recipe file"></i>
  								</td>
  								<td class="build">
  									<a href="project-builds.html?recipe=$custom-image-name-4" class="btn btn-block">
  										Build
  									</a>
  								</td>
  							</tr>
  						</tbody>
  					</table>
				  </div>
  				<div class="row span4 well">
    				<h2>About meta-custom-images</h2>
            <p>Custom images are recipes. Like all other recipes, custom images must be inside a layer: <strong>meta-custom-images</strong> is that layer.</p>
            <p><strong>meta-custom-images</strong> is a Toaster-only layer, and it should be just a temporary home for you custom images. Once you've finished a custom image, you should download its recipe file, which will have a <code>.bb</code> extension, and save it inside your own layer.</p>
            <p>You can then <a href="import-layer.html">import that layer into Toaster</a> for building.</p>
    			</div>

        	</div> <!-- end row-fluid" -->
   		</div><!-- end content -->

      <!-- Download recipe file modal -->
      <div id="download-file" class="modal hide fade" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-header">
              <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
              <h3>Rename your custom image</h3>
          </div>
          <div class="modal-body">
             <div class="row-fluid">
               <span class="help-block span8">Renaming your image will avoid any conflicts when building it from a different layer. Image names must be unique. They should not contain spaces or capital letters, and the only allowed special character is dash (-).</span>
             </div>
             <!--div class="control-group error controls"-->
               <input id="rename" type="text" class="huge span5" placeholder="Type the name, something like 'core-image-myimage'" value="custom-image-name" />
               <!--span class="help-block">Image names cannot contain spaces or capital letters. The only allowed special character is dash (-)</span>
               <span class="help-block">An image with this name already exists. Image names must be unique: try a different one.</span>
             </div-->
          </div>
          <div class="modal-footer">
              <button id="download-button" type="submit" class="btn btn-primary btn-large disabled" data-dismiss="modal">Rename and download recipe file</button>
          </div>
      </div>

        </div>

        <script src="assets/js/jquery-1.9.1.min.js" type='text/javascript'></script>
        <script src="assets/js/jquery.tablesorter.min.js" type='text/javascript'></script>
        <script src="assets/js/bootstrap.min.js" type='text/javascript'></script>
        <script src="assets/js/prettify.js" type='text/javascript'></script>
        <script src="assets/js/jit.js" type='text/javascript'></script>
        <script src="assets/js/main.js" type='text/javascript'></script>
        <script>

            $(document).ready(function() {

      				// add layer without dependencies
      				$(document).on("click", ".add-layer-button", function() {
      					if ($('#change-notification').length > 0) {
      						$('#change-notification').html('<button type="button" class="close" data-dismiss="alert">&times;</button>You have added <strong>1</strong> layer to your project: meta-aarch64').fadeIn();
      					}
      					else {
      						$('#change-notification').prepend('<div class="alert alert-info lead"><button type="button" class="close" data-dismiss="alert">&times;</button>You have added <strong>1</strong> layer to your project: meta-aarch64').fadeIn();
      					}
      					$(this).tooltip({
      						html:true,
      						placement:'top',
      						trigger: 'manual',
      						title: '1 layer added'
      					});
      					$(this).tooltip('show');
      					$(this).css('visibility','hidden');
      					$(".tooltip").delay(2000).fadeOut(function(){
      						$('.add-layer-button').css('display','none');
      						$("#targets > .button-place, #information > .button-place, #machines > .button-place, #bbappends > .button-place").html("<button class='btn btn-block btn-large btn-danger'><i class='icon-trash'></i> Remove the meta-aarch64 layer from your project</button").fadeIn();
      						$("td > .btn").removeAttr('disabled', 'disabled');
      					});
      				});

      				// delete layer without dependencies
      				$(document).on("click", ".btn-danger", function() {
      					if ($('#change-notification').length > 0) {
      						$('#change-notification').html('<button type="button" class="close" data-dismiss="alert">&times;</button>You have removed <strong>1</strong> layer from your project: meta-aarch64').fadeIn();
      					}
      					else {
      						$('#change-notification').prepend('<div class="alert alert-info lead"><button type="button" class="close" data-dismiss="alert">&times;</button>You have removed <strong>1</strong> layer from your project: meta-aarch64').fadeIn();
      					}
      					$(this).tooltip({
      						html:true,
      						placement:'top',
      						trigger: 'manual',
      						title: '1 layer removed'
      					});
      					$("td > button").attr('disabled', 'disabled');
      					$(this).tooltip('show');
      					$(this).css('visibility','hidden');
      					$(".tooltip").delay(2000).fadeOut(function(){
      						$('div > .btn-danger').css('display','none');
      						$("#information > .button-place").html("<button class='btn btn-block btn-large add-layer-button'><i class='icon-plus'></i> Add the meta-aarch64 layer to your project</button").fadeIn();
      						$("#targets > .button-place").html("<button class='btn btn-block btn-large add-layer-button'><i class='icon-plus'></i> Add the meta-aarch64 layer to your project to enable these recipes</button").fadeIn();
      						$("#machines > .button-place").html("<button class='btn btn-block btn-large add-layer-button'><i class='icon-plus'></i> Add the meta-aarch64 layer to your project to enable these machines</button").fadeIn();
      					});
      				});

              //set focus on the end of the input field when opening the download recipe file modal dialog
              $('#download-file').on('shown', function () {
                var SearchInput = $('#rename');
                // Multiply by 2 to ensure the cursor always ends up at the end;
                // Opera sometimes sees a carriage return as 2 characters.
                var strLength= SearchInput.val().length * 2;
                SearchInput[0].setSelectionRange(strLength, strLength);
                $('#rename').focus();
                $('#rename').keyup(function(){
                  var newName = $('#rename').val();
                  if ( newName == "custom-image-name") {
                    $("#download-button").addClass('disabled');
                  }
                  else {
                    $("#download-button").removeClass('disabled');
                  }
                });
              });

        	 });
        </script>


    </body>
</html>