diff options
Diffstat (limited to 'documentation/ref-manual/ref-tasks.xml')
-rw-r--r-- | documentation/ref-manual/ref-tasks.xml | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/documentation/ref-manual/ref-tasks.xml b/documentation/ref-manual/ref-tasks.xml index 572740eaef..d180eee7bb 100644 --- a/documentation/ref-manual/ref-tasks.xml +++ b/documentation/ref-manual/ref-tasks.xml | |||
@@ -158,22 +158,29 @@ | |||
158 | </para> | 158 | </para> |
159 | 159 | ||
160 | <para> | 160 | <para> |
161 | The <filename>do_deploy</filename> task is not added as a task by | 161 | The <filename>do_deploy</filename> task is not added as a task |
162 | default and needs to be added manually. | 162 | by default and consequently needs to be added manually. |
163 | You can add this task using the following: | 163 | If you want the task to run after |
164 | <link linkend='ref-tasks-compile'><filename>do_compile</filename></link>, | ||
165 | you can add it by doing the following: | ||
164 | <literallayout class='monospaced'> | 166 | <literallayout class='monospaced'> |
165 | addtask deploy after do_compile | 167 | addtask deploy after do_compile |
166 | </literallayout> | 168 | </literallayout> |
167 | If the <filename>do_deploy</filename> should run some time after | 169 | Adding <filename>do_deploy</filename> after other tasks works the |
168 | the <filename>do_compile</filename>, the | 170 | same way. |
169 | <filename>base.bbclass</filename> has the following to ensure that | 171 | <note> |
170 | all <filename>do_deploy</filename> tasks run by default. | 172 | You do not need to add <filename>before do_build</filename> |
171 | See the | 173 | to the <filename>addtask</filename> command (though it is |
172 | "<ulink url='&YOCTO_DOCS_BB_URL;#dependencies'>Dependencies</ulink>" | 174 | harmless), because the |
173 | section in the BitBake User Manual for more information. | 175 | <link linkend='ref-classes-base'><filename>base</filename></link> |
174 | <literallayout class='monospaced'> | 176 | class contains the following: |
177 | <literallayout class='monospaced'> | ||
175 | do_build[recrdeptask] += "do_deploy" | 178 | do_build[recrdeptask] += "do_deploy" |
176 | </literallayout> | 179 | </literallayout> |
180 | See the | ||
181 | "<ulink url='&YOCTO_DOCS_BB_URL;#dependencies'>Dependencies</ulink>" | ||
182 | section in the BitBake User Manual for more information. | ||
183 | </note> | ||
177 | </para> | 184 | </para> |
178 | 185 | ||
179 | <para> | 186 | <para> |