summaryrefslogtreecommitdiffstats
path: root/remote/setup_target
diff options
context:
space:
mode:
authorMichael Neves2013-04-24 16:52:40 +0200
committerMichael Neves2013-04-24 16:52:40 +0200
commit8e88fd0243b401205541025df01ff18dbe37e943 (patch)
tree716390e1023cee478841c8a184992e748966b091 /remote/setup_target
parentadd /lib/systemd (diff)
downloadtm-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-xremote/setup_target19
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