blob: c46debb55be32864d8755e412e521586a07c5fa2 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
2"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
3[<!ENTITY % poky SYSTEM "../poky.ent"> %poky; ] >
4
5<chapter id='ref-tasks'>
6<title>Tasks</title>
7
8<para>
9 Tasks are units of execution for BitBake.
10 Recipes (<filename>.bb</filename> files) use tasks to complete
11 configuring, compiling, and packaging software.
12 This chapter provides a reference of the tasks defined in the
13 OpenEmbedded build system.
14</para>
15
16<section id='normal-recipe-build-tasks'>
17 <title>Normal Recipe Build Tasks</title>
18
19 <para>
20 The following sections describe normal tasks associated with building
21 a recipe.
22 </para>
23
24 <section id='ref-tasks-build'>
25 <title><filename>do_build</filename></title>
26
27 <para>
28 The default task for all recipes.
29 This task depends on all other normal tasks
30 required to build a recipe.
31 </para>
32 </section>
33
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050034 <section id='ref-tasks-checkpkg'>
35 <title><filename>do_checkpkg</filename></title>
36
37 <para>
38 Provides information about the recipe including its upstream
39 version and status.
40 The upstream version and status reveals whether or not a version
41 of the recipe exists upstream and a status of not updated, updated,
42 or unknown.
43 </para>
44
45 <para>
46 The <filename>checkpkg</filename> task is included as part of the
47 <link linkend='ref-classes-distrodata'><filename>distrodata</filename></link>
48 class.
49 </para>
50
51 <para>
52 To build the <filename>checkpkg</filename> task, use the
53 <filename>bitbake</filename> command with the "-c" option and
54 task name:
55 <literallayout class='monospaced'>
56 $ bitbake core-image-minimal -c checkpkg
57 </literallayout>
58 By default, the results are stored in
59 <link linkend='var-LOG_DIR'><filename>$LOG_DIR</filename></link>
60 (e.g. <filename>$BUILD_DIR/tmp/log</filename>).
61 </para>
62 </section>
63
Patrick Williamsc124f4f2015-09-15 14:41:29 -050064 <section id='ref-tasks-compile'>
65 <title><filename>do_compile</filename></title>
66
67 <para>
68 Compiles the source in the compilation directory, which is pointed
69 to by the
70 <link linkend='var-B'><filename>B</filename></link> variable.
71 </para>
72 </section>
73
74 <section id='ref-tasks-compile_ptest_base'>
75 <title><filename>do_compile_ptest_base</filename></title>
76
77 <para>
78 Compiles the runtime test suite included in the software being
79 built.
80 </para>
81 </section>
82
83 <section id='ref-tasks-configure'>
84 <title><filename>do_configure</filename></title>
85
86 <para>
87 Configures the source by enabling and disabling any build-time and
88 configuration options for the software being built.
89 </para>
90 </section>
91
92 <section id='ref-tasks-configure_ptest_base'>
93 <title><filename>do_configure_ptest_base</filename></title>
94
95 <para>
96 Configures the runtime test suite included in the software being
97 built.
98 </para>
99 </section>
100
101 <section id='ref-tasks-deploy'>
102 <title><filename>do_deploy</filename></title>
103
104 <para>
105 Writes output files that are to be deployed to the deploy
106 directory, which is defined by the
107 <link linkend='var-DEPLOYDIR'><filename>DEPLOYDIR</filename></link>
108 variable.
109 </para>
110
111 <para>
112 The <filename>do_deploy</filename> task is a
113 shared state (sstate) task, which means that the task can
114 be accelerated through sstate use.
115 Realize also that if the task is re-executed, any previous output
116 is removed (i.e. "cleaned").
117 </para>
118 </section>
119
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500120 <section id='ref-tasks-distrodata'>
121 <title><filename>do_distrodata</filename></title>
122
123 <para>
124 Provides information about the recipe.
125 </para>
126
127 <para>
128 The <filename>distrodata</filename> task is included as part of the
129 <link linkend='ref-classes-distrodata'><filename>distrodata</filename></link>
130 class.
131 </para>
132
133 <para>
134 To build the <filename>distrodata</filename> task, use the
135 <filename>bitbake</filename> command with the "-c" option and
136 task name:
137 <literallayout class='monospaced'>
138 $ bitbake core-image-minimal -c distrodata
139 </literallayout>
140 By default, the results are stored in
141 <link linkend='var-LOG_DIR'><filename>$LOG_DIR</filename></link>
142 (e.g. <filename>$BUILD_DIR/tmp/log</filename>).
143 </para>
144 </section>
145
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500146 <section id='ref-tasks-fetch'>
147 <title><filename>do_fetch</filename></title>
148
149 <para>
150 Fetches the source code.
151 This task uses the
152 <link linkend='var-SRC_URI'><filename>SRC_URI</filename></link>
153 variable and the argument's prefix to determine the correct
154 fetcher module.
155 </para>
156 </section>
157
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500158 <section id='ref-tasks-image'>
159 <title><filename>do_image</filename></title>
160
161 <para>
162 Starts the image generation process.
163 The <filename>do_image</filename> task runs after the
164 OpenEmbedded build system has run the
165 <link linkend='ref-tasks-rootfs'><filename>do_rootfs</filename></link>
166 task during which packages are identified for installation into
167 the image and the root filesystem is created, complete with
168 post-processing.
169 </para>
170
171 <para>
172 The <filename>do_image</filename> task performs pre-processing
173 on the image through the
174 <link linkend='var-IMAGE_PREPROCESS_COMMAND'><filename>IMAGE_PREPROCESS_COMMAND</filename></link>
175 and dynamically generates supporting
176 <filename>do_image_*</filename> tasks as needed.
177 </para>
178
179 <para>
180 For more information on image creation, see the
181 "<link linkend='image-generation-dev-environment'>Image Generation</link>"
182 section.
183 </para>
184 </section>
185
186 <section id='ref-tasks-image-complete'>
187 <title><filename>do_image_complete</filename></title>
188
189 <para>
190 Completes the image generation process.
191 The <filename>do_image_complete</filename> task runs after the
192 OpenEmbedded build system has run the
193 <link linkend='ref-tasks-rootfs'><filename>do_image</filename></link>
194 task during which image pre-processing occurs and through
195 dynamically generated <filename>do_image_*</filename> tasks the
196 image is constructed.
197 </para>
198
199 <para>
200 The <filename>do_image_complete</filename> task performs
201 post-processing on the image through the
202 <link linkend='var-IMAGE_POSTPROCESS_COMMAND'><filename>IMAGE_POSTPROCESS_COMMAND</filename></link>.
203 </para>
204
205 <para>
206 For more information on image creation, see the
207 "<link linkend='image-generation-dev-environment'>Image Generation</link>"
208 section.
209 </para>
210 </section>
211
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500212 <section id='ref-tasks-install'>
213 <title><filename>do_install</filename></title>
214
215 <para>
216 Copies files from the compilation directory, which is defined by
217 the
218 <link linkend='var-B'><filename>B</filename></link> variable,
219 to a holding area defined by the
220 <link linkend='var-D'><filename>D</filename></link> variable.
221 </para>
222 </section>
223
224 <section id='ref-tasks-install_ptest_base'>
225 <title><filename>do_install_ptest_base</filename></title>
226
227 <para>
228 Copies the runtime test suite files from the compilation directory
229 to a holding area.
230 </para>
231 </section>
232
233 <section id='ref-tasks-package'>
234 <title><filename>do_package</filename></title>
235
236 <para>
237 Analyzes the content of the holding area and splits it into subsets
238 based on available packages and files.
239 </para>
240 </section>
241
242 <section id='ref-tasks-package_qa'>
243 <title><filename>do_package_qa</filename></title>
244
245 <para>
246 Runs QA checks on packaged files.
247 For more information on these checks, see the
248 <link linkend='ref-classes-insane'><filename>insane</filename></link>
249 class.
250 </para>
251 </section>
252
253 <section id='ref-tasks-package_write_deb'>
254 <title><filename>do_package_write_deb</filename></title>
255
256 <para>
257 Creates Debian packages (i.e. <filename>*.deb</filename> files) and
258 places them in the
259 <filename>${</filename><link linkend='var-DEPLOY_DIR_DEB'><filename>DEPLOY_DIR_DEB</filename></link><filename>}</filename>
260 directory in the package feeds area.
261 For more information, see the
262 "<link linkend='package-feeds-dev-environment'>Package Feeds</link>"
263 section.
264 </para>
265 </section>
266
267 <section id='ref-tasks-package_write_ipk'>
268 <title><filename>do_package_write_ipk</filename></title>
269
270 <para>
271 Creates IPK packages (i.e. <filename>*.ipk</filename> files) and
272 places them in the
273 <filename>${</filename><link linkend='var-DEPLOY_DIR_IPK'><filename>DEPLOY_DIR_IPK</filename></link><filename>}</filename>
274 directory in the package feeds area.
275 For more information, see the
276 "<link linkend='package-feeds-dev-environment'>Package Feeds</link>"
277 section.
278 </para>
279 </section>
280
281 <section id='ref-tasks-package_write_rpm'>
282 <title><filename>do_package_write_rpm</filename></title>
283
284 <para>
285 Creates RPM packages (i.e. <filename>*.rpm</filename> files) and
286 places them in the
287 <filename>${</filename><link linkend='var-DEPLOY_DIR_RPM'><filename>DEPLOY_DIR_RPM</filename></link><filename>}</filename>
288 directory in the package feeds area.
289 For more information, see the
290 "<link linkend='package-feeds-dev-environment'>Package Feeds</link>"
291 section.
292 </para>
293 </section>
294
295 <section id='ref-tasks-package_write_tar'>
296 <title><filename>do_package_write_tar</filename></title>
297
298 <para>
299 Creates tarballs and places them in the
300 <filename>${</filename><link linkend='var-DEPLOY_DIR_TAR'><filename>DEPLOY_DIR_TAR</filename></link><filename>}</filename>
301 directory in the package feeds area.
302 For more information, see the
303 "<link linkend='package-feeds-dev-environment'>Package Feeds</link>"
304 section.
305 </para>
306 </section>
307
308 <section id='ref-tasks-packagedata'>
309 <title><filename>do_packagedata</filename></title>
310
311 <para>
312 Creates package metadata used by the build system to generate the
313 final packages.
314 </para>
315 </section>
316
317 <section id='ref-tasks-patch'>
318 <title><filename>do_patch</filename></title>
319
320 <para>
321 Locates patch files and applies them to the source code.
322 See the
323 "<link linkend='patching-dev-environment'>Patching</link>"
324 section for more information.
325 </para>
326 </section>
327
328 <section id='ref-tasks-populate_lic'>
329 <title><filename>do_populate_lic</filename></title>
330
331 <para>
332 Writes license information for the recipe that is collected later
333 when the image is constructed.
334 </para>
335 </section>
336
337 <section id='ref-tasks-populate_sdk'>
338 <title><filename>do_populate_sdk</filename></title>
339
340 <para>
341 Creates the file and directory structure for an installable SDK.
342 See the
343 "<link linkend='sdk-generation-dev-environment'>SDK Generation</link>"
344 section for more information.
345 </para>
346 </section>
347
348 <section id='ref-tasks-populate_sysroot'>
349 <title><filename>do_populate_sysroot</filename></title>
350
351 <para>
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500352 Copies a subset of the files installed by the
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500353 <link linkend='ref-tasks-install'><filename>do_install</filename></link>
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500354 task into the sysroot to make them available to other recipes.
355 Files that would typically not be needed by other recipes at build
356 time are skipped.
357 Skipped files include files installed into
358 <filename>/etc.</filename>
359 For information on what files are copied, see the
360 <link linkend='ref-classes-staging'><filename>staging</filename></link>
361 class.
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500362 </para>
363
364 <para>
365 The <filename>do_populate_sysroot</filename> task is a
366 shared state (sstate) task, which means that the task can
367 be accelerated through sstate use.
368 Realize also that if the task is re-executed, any previous output
369 is removed (i.e. "cleaned").
370 </para>
371 </section>
372
373 <section id='ref-tasks-rm_work'>
374 <title><filename>do_rm_work</filename></title>
375
376 <para>
377 Removes work files after the OpenEmbedded build system has
378 finished with them.
379 You can learn more by looking at the
380 "<link linkend='ref-classes-rm-work'><filename>rm_work.bbclass</filename></link>"
381 section.
382 </para>
383 </section>
384
385 <section id='ref-tasks-rm_work_all'>
386 <title><filename>do_rm_work_all</filename></title>
387
388 <para>
389 Top-level task for removing work files after the build system has
390 finished with them.
391 </para>
392 </section>
393
394 <section id='ref-tasks-unpack'>
395 <title><filename>do_unpack</filename></title>
396
397 <para>
398 Unpacks the source code into a working directory pointed to
399 by
400 <filename>${</filename><link linkend='var-WORKDIR'><filename>WORKDIR</filename></link><filename>}</filename>.
401 The
402 <link linkend='var-S'><filename>S</filename></link> variable also
403 plays a role in where unpacked source files ultimately reside.
404 For more information on how source files are unpacked, see the
405 "<link linkend='source-fetching-dev-environment'>Source Fetching</link>"
406 section and the <filename>WORKDIR</filename> and
407 <filename>S</filename> variable descriptions.
408 </para>
409 </section>
410</section>
411
412<section id='manually-called-tasks'>
413 <title>Manually Called Tasks</title>
414
415 <para>
416 These tasks are typically manually triggered (e.g. by using the
417 <filename>bitbake -c</filename> command-line option):
418 </para>
419
420 <section id='ref-tasks-checkuri'>
421 <title><filename>do_checkuri</filename></title>
422
423 <para>
424 Validates the
425 <link linkend='var-SRC_URI'><filename>SRC_URI</filename></link>
426 value.
427 </para>
428 </section>
429
430 <section id='ref-tasks-checkuriall'>
431 <title><filename>do_checkuriall</filename></title>
432
433 <para>
434 Validates the
435 <link linkend='var-SRC_URI'><filename>SRC_URI</filename></link>
436 value for all recipes required to build a target.
437 </para>
438 </section>
439
440 <section id='ref-tasks-clean'>
441 <title><filename>do_clean</filename></title>
442
443 <para>
444 Removes all output files for a target from the
445 <link linkend='ref-tasks-unpack'><filename>do_unpack</filename></link>
446 task forward (i.e.
447 <link linkend='ref-tasks-patch'><filename>do_unpack</filename></link>,
448 <link linkend='ref-tasks-configure'><filename>do_configure</filename></link>,
449 <link linkend='ref-tasks-compile'><filename>do_compile</filename></link>,
450 <link linkend='ref-tasks-install'><filename>do_install</filename></link>,
451 and
452 <link linkend='ref-tasks-package'><filename>do_package</filename></link>).
453 </para>
454
455 <para>
456 You can run this task using BitBake as follows:
457 <literallayout class='monospaced'>
458 $ bitbake -c clean <replaceable>recipe</replaceable>
459 </literallayout>
460 </para>
461
462 <para>
463 Running this task does not remove the
464 <link linkend='shared-state-cache'>sstate</link>) cache
465 files.
466 Consequently, if no changes have been made and the recipe is
467 rebuilt after cleaning, output files are simply restored from the
468 sstate cache.
469 If you want to remove the sstate cache files for the recipe,
470 you need to use the
471 <link linkend='ref-tasks-cleansstate'><filename>do_cleansstate</filename></link>
472 task instead (i.e. <filename>bitbake -c cleansstate</filename> <replaceable>recipe</replaceable>).
473 </para>
474 </section>
475
476 <section id='ref-tasks-cleanall'>
477 <title><filename>do_cleanall</filename></title>
478
479 <para>
480 Removes all output files, shared state
481 (<link linkend='shared-state-cache'>sstate</link>) cache, and
482 downloaded source files for a target (i.e. the contents of
483 <link linkend='var-DL_DIR'><filename>DL_DIR</filename></link>).
484 Essentially, the <filename>do_cleanall</filename> task is
485 identical to the
486 <link linkend='ref-tasks-cleansstate'><filename>do_cleansstate</filename></link>
487 task with the added removal of downloaded source files.
488 </para>
489
490 <para>
491 You can run this task using BitBake as follows:
492 <literallayout class='monospaced'>
493 $ bitbake -c cleanall <replaceable>recipe</replaceable>
494 </literallayout>
495 </para>
496
497 <para>
498 Typically, you would not normally use the
499 <filename>cleanall</filename> task.
500 Do so only if you want to start fresh with the
501 <link linkend='ref-tasks-fetch'><filename>do_fetch</filename></link>
502 task.
503 </para>
504 </section>
505
506 <section id='ref-tasks-cleansstate'>
507 <title><filename>do_cleansstate</filename></title>
508
509 <para>
510 Removes all output files and shared state
511 (<link linkend='shared-state-cache'>sstate</link>)
512 cache for a target.
513 Essentially, the <filename>do_cleansstate</filename> task is
514 identical to the
515 <link linkend='ref-tasks-clean'><filename>do_clean</filename></link>
516 task with the added removal of shared state
517 (<link linkend='shared-state-cache'>sstate</link>) cache.
518 </para>
519
520 <para>
521 You can run this task using BitBake as follows:
522 <literallayout class='monospaced'>
523 $ bitbake -c cleansstate <replaceable>recipe</replaceable>
524 </literallayout>
525 </para>
526
527 <para>
528 When you run the <filename>do_cleansstate</filename> task,
529 the OpenEmbedded build system no longer uses any
530 sstate.
531 Consequently, building the recipe from scratch is guaranteed.
532 <note>
533 The <filename>do_cleansstate</filename> task cannot remove
534 sstate from a remote sstate mirror.
535 If you need to build a target from scratch using remote
536 mirrors, use the "-f" option as follows:
537 <literallayout class='monospaced'>
538 $ bitbake -f -c do_cleansstate <replaceable>target</replaceable>
539 </literallayout>
540 </note>
541 </para>
542 </section>
543
544 <section id='ref-tasks-devshell'>
545 <title><filename>do_devshell</filename></title>
546
547 <para>
548 Starts a shell whose environment is set up for
549 development, debugging, or both.
550 See the
551 "<ulink url='&YOCTO_DOCS_DEV_URL;#platdev-appdev-devshell'>Using a Development Shell</ulink>"
552 section in the Yocto Project Development Manual for more
553 information about using <filename>devshell</filename>.
554 </para>
555 </section>
556
557 <section id='ref-tasks-fetchall'>
558 <title><filename>do_fetchall</filename></title>
559
560 <para>
561 Fetches all remote sources required to build a target.
562 </para>
563 </section>
564
565 <section id='ref-tasks-listtasks'>
566 <title><filename>do_listtasks</filename></title>
567
568 <para>
569 Lists all defined tasks for a target.
570 </para>
571 </section>
572
573 <section id='ref-tasks-package_index'>
574 <title><filename>do_package_index</filename></title>
575
576 <para>
577 Creates or updates the index in the
578 <link linkend='package-feeds-dev-environment'>Package Feeds</link>
579 area.
580 <note>
581 This task is not triggered with the
582 <filename>bitbake -c</filename> command-line option as
583 are the other tasks in this section.
584 Because this task is specifically for the
585 <filename>package-index</filename> recipe,
586 you run it using
587 <filename>bitbake package-index</filename>.
588 </note>
589 </para>
590 </section>
591</section>
592
593<section id='image-related-tasks'>
594 <title>Image-Related Tasks</title>
595
596 <para>
597 The following tasks are applicable to image recipes.
598 </para>
599
600 <section id='ref-tasks-bootimg'>
601 <title><filename>do_bootimg</filename></title>
602
603 <para>
604 Creates a bootable live image.
605 See the
606 <link linkend='var-IMAGE_FSTYPES'><filename>IMAGE_FSTYPES</filename></link>
607 variable for additional information on live image types.
608 </para>
609 </section>
610
611 <section id='ref-tasks-bundle_initramfs'>
612 <title><filename>do_bundle_initramfs</filename></title>
613
614 <para>
615 Combines an initial RAM disk (initramfs) image and kernel
616 together to form a single image.
617 The
618 <link linkend='var-CONFIG_INITRAMFS_SOURCE'><filename>CONFIG_INITRAMFS_SOURCE</filename></link>
619 variable has some more information about these types of images.
620 </para>
621 </section>
622
623 <section id='ref-tasks-rootfs'>
624 <title><filename>do_rootfs</filename></title>
625
626 <para>
627 Creates the root filesystem (file and directory structure) for an
628 image.
629 See the
630 "<link linkend='image-generation-dev-environment'>Image Generation</link>"
631 section for more information on how the root filesystem is created.
632 </para>
633 </section>
634
635 <section id='ref-tasks-testimage'>
636 <title><filename>do_testimage</filename></title>
637
638 <para>
639 Boots an image and performs runtime tests within the image.
640 For information on automatically testing images, see the
641 "<ulink url='&YOCTO_DOCS_DEV_URL;#performing-automated-runtime-testing'>Performing Automated Runtime Testing</ulink>"
642 section in the Yocto Project Development Manual.
643 </para>
644 </section>
645
646 <section id='ref-tasks-testimage_auto'>
647 <title><filename>do_testimage_auto</filename></title>
648
649 <para>
650 Boots an image and performs runtime tests within the image
651 immediately after it has been built.
652 This task is enabled when you set
653 <link linkend='var-TEST_IMAGE'><filename>TEST_IMAGE</filename></link>
654 equal to "1".
655 </para>
656
657 <para>
658 For information on automatically testing images, see the
659 "<ulink url='&YOCTO_DOCS_DEV_URL;#performing-automated-runtime-testing'>Performing Automated Runtime Testing</ulink>"
660 section in the Yocto Project Development Manual.
661 </para>
662 </section>
663
664 <section id='ref-tasks-vmdkimg'>
665 <title><filename>do_vmdkimg</filename></title>
666
667 <para>
668 Creates a <filename>.vmdk</filename> image for use with
669 <ulink url='http://www.vmware.com/'>VMware</ulink>
670 and compatible virtual machine hosts.
671 </para>
672 </section>
673</section>
674
675<section id='kernel-related-tasks'>
676 <title>Kernel-Related Tasks</title>
677
678 <para>
679 The following tasks are applicable to kernel recipes.
680 Some of these tasks (e.g. the
681 <link linkend='ref-tasks-menuconfig'><filename>do_menuconfig</filename></link>
682 task) are also applicable to recipes that use
683 Linux kernel style configuration such as the BusyBox recipe.
684 </para>
685
686 <section id='ref-tasks-compile_kernelmodules'>
687 <title><filename>do_compile_kernelmodules</filename></title>
688
689 <para>
690 Compiles loadable modules for the Linux kernel.
691 </para>
692 </section>
693
694 <section id='ref-tasks-diffconfig'>
695 <title><filename>do_diffconfig</filename></title>
696
697 <para>
698 Compares the old and new config files after running the
699 <link linkend='ref-tasks-menuconfig'><filename>do_menuconfig</filename></link>
700 task for the kernel.
701 </para>
702 </section>
703
704 <section id='ref-tasks-kernel_checkout'>
705 <title><filename>do_kernel_checkout</filename></title>
706
707 <para>
708 Checks out source/meta branches for a linux-yocto style kernel.
709 </para>
710 </section>
711
712 <section id='ref-tasks-kernel_configcheck'>
713 <title><filename>do_kernel_configcheck</filename></title>
714
715 <para>
716 Validates the kernel configuration for a linux-yocto style kernel.
717 </para>
718 </section>
719
720 <section id='ref-tasks-kernel_configme'>
721 <title><filename>do_kernel_configme</filename></title>
722
723 <para>
724 Assembles the kernel configuration for a linux-yocto style kernel.
725 </para>
726 </section>
727
728 <section id='ref-tasks-kernel_link_vmlinux'>
729 <title><filename>do_kernel_link_vmlinux</filename></title>
730
731 <para>
732 Creates a symbolic link in
733 <filename>arch/$arch/boot</filename> for vmlinux kernel
734 images.
735 </para>
736 </section>
737
Patrick Williamsf1e5d692016-03-30 15:21:19 -0500738 <section id='ref-tasks-kernel_metadata'>
739 <title><filename>do_kernel_metadata</filename></title>
740
741 <para>
742 Collects kernel metadata for a
743 <filename>linux-yocto</filename> style kernel.
744 </para>
745 </section>
746
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500747 <section id='ref-tasks-menuconfig'>
748 <title><filename>do_menuconfig</filename></title>
749
750 <para>
751 Runs <filename>make menuconfig</filename> for the kernel.
752 For information on <filename>menuconfig</filename>, see the
753 "<ulink url='&YOCTO_DOCS_DEV_URL;#using-menuconfig'>Using&nbsp;&nbsp;<filename>menuconfig</filename></ulink>"
754 section in the Yocto Project Development Manual.
755 </para>
756 </section>
757
758 <section id='ref-tasks-savedefconfig'>
759 <title><filename>do_savedefconfig</filename></title>
760
761 <para>
762 Creates a minimal Linux kernel configuration file.
763 </para>
764 </section>
765
Patrick Williamsf1e5d692016-03-30 15:21:19 -0500766 <section id='ref-tasks-shared_workdir'>
767 <title><filename>do_shared_workdir</filename></title>
768
769 <para>
770 Creates the shared working directory for the kernel.
771 </para>
772 </section>
773
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500774 <section id='ref-tasks-sizecheck'>
775 <title><filename>do_sizecheck</filename></title>
776
777 <para>
778 Checks the size of the kernel image against
779 <link linkend='var-KERNEL_IMAGE_MAXSIZE'><filename>KERNEL_IMAGE_MAXSIZE</filename></link>
780 when set.
781 </para>
782 </section>
783
784 <section id='ref-tasks-strip'>
785 <title><filename>do_strip</filename></title>
786
787 <para>
788 Strips unneeded sections out of the Linux kernel image.
789 </para>
790 </section>
791
792 <section id='ref-tasks-uboot_mkimage'>
793 <title><filename>do_uboot_mkimage</filename></title>
794
795 <para>
796 Creates a uImage file from the kernel for the U-Boot bootloader.
797 </para>
798 </section>
799
800 <section id='ref-tasks-validate_branches'>
801 <title><filename>do_validate_branches</filename></title>
802
803 <para>
804 Ensures that the source, metadata (or both) branches are on the
805 locations specified by their
806 <link linkend='var-SRCREV'><filename>SRCREV</filename></link>
807 values for a linux-yocto style kernel.
808 </para>
809 </section>
810</section>
811
812<section id='miscellaneous-tasks'>
813 <title>Miscellaneous Tasks</title>
814
815 <para>
816 The following sections describe miscellaneous tasks.
817 </para>
818
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500819 <section id='ref-tasks-spdx'>
820 <title><filename>do_spdx</filename></title>
821
822 <para>
823 A build stage that takes the source code and scans it on a remote
824 FOSSOLOGY server in order to produce an SPDX document.
825 This task applies only to the
826 <link linkend='ref-classes-spdx'><filename>spdx</filename></link>
827 class.
828 </para>
829 </section>
830</section>
831
832</chapter>
833<!--
834vim: expandtab tw=80 ts=4
835-->