summaryrefslogtreecommitdiffstats
path: root/remote/setup_target
diff options
context:
space:
mode:
authorJonathan Bauer2013-07-08 18:30:34 +0200
committerJonathan Bauer2013-07-08 18:30:34 +0200
commitee819440599f15d245ec3bbdd9c5c41795f152b7 (patch)
tree8f166f64c972362bfe449e1f9a0f5b07c2a5514f /remote/setup_target
parent[debug] remove xset from REQUIRED_INSTALLED_PACKAGES as its wrong for ubuntu (diff)
downloadtm-scripts-ee819440599f15d245ec3bbdd9c5c41795f152b7.tar.gz
tm-scripts-ee819440599f15d245ec3bbdd9c5c41795f152b7.tar.xz
tm-scripts-ee819440599f15d245ec3bbdd9c5c41795f152b7.zip
fix ksrc not beeing cleaned properly
Diffstat (limited to 'remote/setup_target')
-rwxr-xr-xremote/setup_target11
1 files changed, 6 insertions, 5 deletions
diff --git a/remote/setup_target b/remote/setup_target
index 804f43bc..378606b0 100755
--- a/remote/setup_target
+++ b/remote/setup_target
@@ -240,10 +240,11 @@ generate_target() {
# cleaning the module is enough as it forces to rebuild.
[[ "${AUTO_UPDATE_KERNEL}" == 1 ]] && pinfo "Auto-Udpate Kernel..." && clean_kernel_module --force
fi
- else
- # KVERSION is not found.
- pdebug "KVERSION not found under remote/modules/kernel/ksrc/KVERSION"
- pdebug "Ignoring. If errors arise, either write your KVERSION manually or clean the kernel."
+ elif [ -e "${MODULES_DIR}/kernel/ksrc" ]; then
+ # check if ksrc is there, since that would be problematic
+ pwarning "${MODULES_DIR}/kernel/ksrc exists, but KVERSION is not found!"
+ pwarning "Kernel was probably build with an older version of mltk."
+ pwarning "If errors arise, either write your KVERSION manually or clean the kernel."
fi
fi
@@ -446,7 +447,7 @@ clean_kernel_module() {
if [ -e .built ]; then
rm .built || perror "Could not delete ${TARGET_DIR}/kernel/.built"
fi
- if [ -e ksrc ]; then
+ if [ -L ksrc ]; then
unlink ksrc || perror "Could not unlink ${TARGET_DIR}/kernel/ksrc."
fi
else