summaryrefslogtreecommitdiffstats
path: root/remote/modules/vmware
diff options
context:
space:
mode:
authorSimon Rettberg2014-07-04 20:04:41 +0200
committerSimon Rettberg2014-07-04 20:04:41 +0200
commitb7a021b2df67c6d08457df32f3ba1514897ac70b (patch)
treef038199bdd92329808f1c54bf41d646d9dfe6fd3 /remote/modules/vmware
parent[downloader.inc] Special case sourceforge: Allow setting a mirror in ./config (diff)
downloadtm-scripts-b7a021b2df67c6d08457df32f3ba1514897ac70b.tar.gz
tm-scripts-b7a021b2df67c6d08457df32f3ba1514897ac70b.tar.xz
tm-scripts-b7a021b2df67c6d08457df32f3ba1514897ac70b.zip
Try to clean up the mess with all the different kernel version variables everywhere
Diffstat (limited to 'remote/modules/vmware')
-rw-r--r--remote/modules/vmware/module.build16
1 files changed, 8 insertions, 8 deletions
diff --git a/remote/modules/vmware/module.build b/remote/modules/vmware/module.build
index 57e8cb91..094d5271 100644
--- a/remote/modules/vmware/module.build
+++ b/remote/modules/vmware/module.build
@@ -28,8 +28,8 @@ build() {
cp "${MODULE_DIR}/src/$VMWARE_BUNDLE_FILE" "${MODULE_BUILD_DIR}/$VMWARE_BUNDLE_FILE"
cp -r "${MODULE_DIR}/patches" "${MODULE_BUILD_DIR}"
- # sanity check to see if KERNEL_HEADERS_PATH is set and exists
- [ -z "${KERNEL_HEADERS_PATH}" -o ! -e "${KERNEL_HEADERS_PATH}" ] && perror "KERNEL_HEADERS_PATH ('"${KERNEL_HEADERS_PATH}"') not found. Was the kernel module built?"
+ # sanity check to see if KERNEL_HEADERS_DIR is set and exists
+ [ -z "${KERNEL_HEADERS_DIR}" -o ! -e "${KERNEL_HEADERS_DIR}" ] && perror "KERNEL_HEADERS_DIR ('"${KERNEL_HEADERS_DIR}"') not found. Was the kernel module built?"
# build in two steps, to be able to use mltk function while patching modules
pinfo "Installing vmware per chroot..."
@@ -49,11 +49,11 @@ build() {
for PATCH in $(find "${MODULE_DIR}/patches/" -name "${SHORT}__*__*.patch"); do
parse_patch_name "$PATCH"
[ -z "${MIN_KERN}" -o -z "${MAX_KERN}" ] && perror "Could not parse patch filename"
- if version_lt "$SYS_KERNEL" "$MIN_KERN" || version_gt "$SYS_KERNEL" "$MAX_KERN"; then
- pinfo "*NOT* applying $PATCH (min=$MIN_KERN max=$MAX_KERN cmp=$SYS_KERNEL)"
+ if version_lt "$TARGET_KERNEL_SHORT" "$MIN_KERN" || version_gt "$TARGET_KERNEL_SHORT" "$MAX_KERN"; then
+ pinfo "*NOT* applying $PATCH (min=$MIN_KERN max=$MAX_KERN cmp=$TARGET_KERNEL_SHORT)"
continue # Not suitable for our kernel
fi
- pinfo "Applying $PATCH (min=$MIN_KERN max=$MAX_KERN cmp=$SYS_KERNEL)"
+ pinfo "Applying $PATCH (min=$MIN_KERN max=$MAX_KERN cmp=$TARGET_KERNEL_SHORT)"
[ ! -d "${SHORT}-only" ] && tar xf "$KMOD"
[ ! -d "${SHORT}-only" ] && perror "untar of $KMOD failed."
cd "${SHORT}-only" || perror "Where is ${SHORT}-only?"
@@ -74,8 +74,8 @@ build() {
# now build modules inside the chroot
chroot_run "${MODULE_BUILD_DIR}" <<-EOF
- vmware-modconfig --console --build-mod -k "${SYS_UTS_RELEASE}" vmnet $(which gcc) "${KERNEL_HEADERS_PATH}/include" vmplayer vmnet
- vmware-modconfig --console --build-mod -k "${SYS_UTS_RELEASE}" vmmon $(which gcc) "${KERNEL_HEADERS_PATH}/include" vmplayer vmmon
+ vmware-modconfig --console --build-mod -k "${TARGET_KERNEL_LONG}" vmnet $(which gcc) "${KERNEL_HEADERS_DIR}/include" vmplayer vmnet
+ vmware-modconfig --console --build-mod -k "${TARGET_KERNEL_LONG}" vmmon $(which gcc) "${KERNEL_HEADERS_DIR}/include" vmplayer vmmon
EOF
# cleanup unneeded files
@@ -97,7 +97,7 @@ post_copy() {
date +'%Y.%m.%d' >"${TARGET_BUILD_DIR}/etc/arch-release"
mkdir -p "$TARGET_BUILD_DIR/lib/modules/vmware/"
- cp "${MODULE_BUILD_DIR}/lib/modules/$SYS_UTS_RELEASE/vmplayer/"* "$TARGET_BUILD_DIR/lib/modules/vmware/" || perror "Could not cp vmware modules to target!"
+ cp "${MODULE_BUILD_DIR}/lib/modules/$TARGET_KERNEL_LONG/vmplayer/"* "$TARGET_BUILD_DIR/lib/modules/vmware/" || perror "Could not cp vmware modules to target!"
}
parse_patch_name() {