summaryrefslogtreecommitdiffstats
path: root/remote/setup_target
diff options
context:
space:
mode:
authorSimon Rettberg2014-07-10 15:14:20 +0200
committerSimon Rettberg2014-07-10 15:14:20 +0200
commit66cd961c59d879df776657ab7badad3d08729594 (patch)
tree9916d17fd061f21a4d13e4a25966ddce6236dce1 /remote/setup_target
parent[Kernel] Fix wrong git variables (diff)
downloadtm-scripts-66cd961c59d879df776657ab7badad3d08729594.tar.gz
tm-scripts-66cd961c59d879df776657ab7badad3d08729594.tar.xz
tm-scripts-66cd961c59d879df776657ab7badad3d08729594.zip
Add option REQUIRED_ORIGINAL_USR_SPLIT to disable symlinking /bin to /usr/bin etc...
Diffstat (limited to 'remote/setup_target')
-rwxr-xr-xremote/setup_target12
1 files changed, 7 insertions, 5 deletions
diff --git a/remote/setup_target b/remote/setup_target
index 11e1d5be..bc269ca9 100755
--- a/remote/setup_target
+++ b/remote/setup_target
@@ -370,11 +370,13 @@ process_module() {
fi
# Process module
mkdir -p "${MODULE_BUILD_DIR}" || perror "Could not create build dir"
- local DIR
- for DIR in lib lib64 bin sbin; do
- mkdir -p "${MODULE_BUILD_DIR}/usr/${DIR}" || perror "Could not create '${MODULE_BUILD_DIR}/usr/${DIR}'"
- [ -L "${MODULE_BUILD_DIR}/${DIR}" ] || ln -s "usr/${DIR}" "${MODULE_BUILD_DIR}/${DIR}" || perror "Could not symlink '${MODULE_BUILD_DIR}/${DIR}' to 'usr/${DIR}"
- done
+ if [ -z "${REQUIRED_ORIGINAL_USR_SPLIT}" -o "x${REQUIRED_ORIGINAL_USR_SPLIT}" = "xno" ]; then
+ local DIR
+ for DIR in lib lib64 bin sbin; do
+ mkdir -p "${MODULE_BUILD_DIR}/usr/${DIR}" || perror "Could not create '${MODULE_BUILD_DIR}/usr/${DIR}'"
+ [ -L "${MODULE_BUILD_DIR}/${DIR}" ] || ln -s "usr/${DIR}" "${MODULE_BUILD_DIR}/${DIR}" || perror "Could not symlink '${MODULE_BUILD_DIR}/${DIR}' to 'usr/${DIR}"
+ done
+ fi
pdebug "## Reading config of $MODULE"
read_config
# Check if this module has a dependency that wasn't built yet: