diff options
| author | Jonathan Bauer | 2013-04-24 17:17:19 +0200 |
|---|---|---|
| committer | Jonathan Bauer | 2013-04-24 17:17:19 +0200 |
| commit | 5633488d5a50c58e7ad05fc186cef95af338506b (patch) | |
| tree | 7aaffefc7cdae07a601dbc0ad8c040fdff883b54 /remote/setup_target | |
| parent | compile kernel on the reference system with our config requirements (diff) | |
| parent | delete plymouth/data/etc/systemd... (diff) | |
| download | tm-scripts-5633488d5a50c58e7ad05fc186cef95af338506b.tar.gz tm-scripts-5633488d5a50c58e7ad05fc186cef95af338506b.tar.xz tm-scripts-5633488d5a50c58e7ad05fc186cef95af338506b.zip | |
merge?
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 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 |
