From d9cf5753df7355b30309cc0640c2180eb3b38780 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Tue, 5 May 2015 12:57:00 -0700 Subject: ref-manual: Added and updated variables to support calling functions Fixed [YOCTO #7632] Looked for, updated, and added (if necessary) the following variables: * ROOTFS_PREPROCESS_COMMAND * ROOTFS_POSTPROCESS_COMMAND * SDK_POSTPROCESS_COMMAND * POPULATE_SDK_POST_TARGET_COMMAND * POPULATE_SDK_POST_HOST_COMMAND, * IMAGE_POSTPROCESS_COMMAND * IMAGE_PREPROCESS_COMMAND * ROOTFS_POSTUNINSTALL_COMMAND * ROOTFS_POSTINSTALL_COMMAND Each of these variables no longer accepts arbitrary shell commands but rather functions. The wordings now support that behavior. Also, updated the migration section for going to 1.6 release to note this change. (From yocto-docs rev: e1ab48f7def9d1eb080e007b88f75172470b8007) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/ref-manual/migration.xml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'documentation/ref-manual/migration.xml') 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 @@ it encounters the variable. + +
+ Preprocess and Post Process Command Variable Behavior + + + The following variables now expect a semicolon separated + list of functions to call and not arbitrary shell commands: + + ROOTFS_PREPROCESS_COMMAND + ROOTFS_POSTPROCESS_COMMAND + SDK_POSTPROCESS_COMMAND + POPULATE_SDK_POST_TARGET_COMMAND + POPULATE_SDK_POST_HOST_COMMAND + IMAGE_POSTPROCESS_COMMAND + IMAGE_PREPROCESS_COMMAND + ROOTFS_POSTUNINSTALL_COMMAND + ROOTFS_POSTINSTALL_COMMAND + + For migration purposes, you can simply wrap shell commands in + a shell function and then call the function. + Here is an example: + + my_postprocess_function() { + echo "hello" > ${IMAGE_ROOTFS}/hello.txt + } + ROOTFS_POSTPROCESS_COMMAND += "my_postprocess_function; " + + +
-- cgit v1.2.3-54-g00ecf