diff options
author | Michael Neves | 2013-04-24 16:52:40 +0200 |
---|---|---|
committer | Michael Neves | 2013-04-24 16:52:40 +0200 |
commit | 8e88fd0243b401205541025df01ff18dbe37e943 (patch) | |
tree | 716390e1023cee478841c8a184992e748966b091 /remote/setup_target | |
parent | add /lib/systemd (diff) | |
download | tm-scripts-8e88fd0243b401205541025df01ff18dbe37e943.tar.gz tm-scripts-8e88fd0243b401205541025df01ff18dbe37e943.tar.xz tm-scripts-8e88fd0243b401205541025df01ff18dbe37e943.zip |
add post_process_target function, (first post process moves /lib/systemd to /etc/systemd)
Diffstat (limited to 'remote/setup_target')
-rwxr-xr-x | remote/setup_target | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/remote/setup_target b/remote/setup_target index e004d8bd..3152cf04 100755 --- a/remote/setup_target +++ b/remote/setup_target @@ -172,6 +172,9 @@ generate_target() { process_module "$1" shift done + + post_process_target + pinfo "Target completed. Total size: $(du -bsh "${TARGET_BUILD_DIR}" | awk 'END {print $1}')" TOOL_STR="" } @@ -233,6 +236,22 @@ process_module() { fi } +post_process_target() { + +local TOOL_STR="$TOOL_STR post_process_target:" + +#move systemd files from /lib to /etc/lib +pinfo "move systemd files from /lib/systemd to /etc/systemd" + +if [ -d "${TARGET_BUILD_DIR}/lib" ]; then + cd "${TARGET_BUILD_DIR}/lib" + tarcopy "systemd" "${TARGET_BUILD_DIR}/etc" + cd - &> /dev/null + rm -r "${TARGET_BUILD_DIR}/lib/systemd" +fi + +} + clean_modules() { TARGET=$1 |