diff options
Diffstat (limited to 'documentation/ref-manual/migration.xml')
-rw-r--r-- | documentation/ref-manual/migration.xml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/documentation/ref-manual/migration.xml b/documentation/ref-manual/migration.xml index 7c78c9dd50..984485ede2 100644 --- a/documentation/ref-manual/migration.xml +++ b/documentation/ref-manual/migration.xml | |||
@@ -1413,6 +1413,35 @@ | |||
1413 | it encounters the variable. | 1413 | it encounters the variable. |
1414 | </para> | 1414 | </para> |
1415 | </section> | 1415 | </section> |
1416 | |||
1417 | <section id='migration-1.6-variable-changes-variable-entry-behavior'> | ||
1418 | <title>Preprocess and Post Process Command Variable Behavior</title> | ||
1419 | |||
1420 | <para> | ||
1421 | The following variables now expect a semicolon separated | ||
1422 | list of functions to call and not arbitrary shell commands: | ||
1423 | <literallayout class='monospaced'> | ||
1424 | <link linkend='var-ROOTFS_PREPROCESS_COMMAND'>ROOTFS_PREPROCESS_COMMAND</link> | ||
1425 | <link linkend='var-ROOTFS_POSTPROCESS_COMMAND'>ROOTFS_POSTPROCESS_COMMAND</link> | ||
1426 | <link linkend='var-SDK_POSTPROCESS_COMMAND'>SDK_POSTPROCESS_COMMAND</link> | ||
1427 | <link linkend='var-POPULATE_SDK_POST_TARGET_COMMAND'>POPULATE_SDK_POST_TARGET_COMMAND</link> | ||
1428 | <link linkend='var-POPULATE_SDK_POST_HOST_COMMAND'>POPULATE_SDK_POST_HOST_COMMAND</link> | ||
1429 | <link linkend='var-IMAGE_POSTPROCESS_COMMAND'>IMAGE_POSTPROCESS_COMMAND</link> | ||
1430 | <link linkend='var-IMAGE_PREPROCESS_COMMAND'>IMAGE_PREPROCESS_COMMAND</link> | ||
1431 | <link linkend='var-ROOTFS_POSTUNINSTALL_COMMAND'>ROOTFS_POSTUNINSTALL_COMMAND</link> | ||
1432 | <link linkend='var-ROOTFS_POSTINSTALL_COMMAND'>ROOTFS_POSTINSTALL_COMMAND</link> | ||
1433 | </literallayout> | ||
1434 | For migration purposes, you can simply wrap shell commands in | ||
1435 | a shell function and then call the function. | ||
1436 | Here is an example: | ||
1437 | <literallayout class='monospaced'> | ||
1438 | my_postprocess_function() { | ||
1439 | echo "hello" > ${IMAGE_ROOTFS}/hello.txt | ||
1440 | } | ||
1441 | ROOTFS_POSTPROCESS_COMMAND += "my_postprocess_function; " | ||
1442 | </literallayout> | ||
1443 | </para> | ||
1444 | </section> | ||
1416 | </section> | 1445 | </section> |
1417 | 1446 | ||
1418 | <section id='migration-1.6-directory-layout-changes'> | 1447 | <section id='migration-1.6-directory-layout-changes'> |