summaryrefslogtreecommitdiffstats
path: root/remote/setup_target
diff options
context:
space:
mode:
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 c070f1fc..992390a9 100755
--- a/remote/setup_target
+++ b/remote/setup_target
@@ -170,6 +170,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=""
}
@@ -231,6 +234,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