diff options
| author | Simon Rettberg | 2013-05-06 19:44:53 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2013-05-06 19:44:53 +0200 |
| commit | ba42fcadd253038dadea8fc93cc0bc4e7cff493a (patch) | |
| tree | ce6a97af3d1eefc7df6c985a736bf1a0132f7e1f | |
| parent | Add button.ko to stage 3.1 so that i915 works (diff) | |
| download | tm-scripts-ba42fcadd253038dadea8fc93cc0bc4e7cff493a.tar.gz tm-scripts-ba42fcadd253038dadea8fc93cc0bc4e7cff493a.tar.xz tm-scripts-ba42fcadd253038dadea8fc93cc0bc4e7cff493a.zip | |
Add vmplayer module
| -rwxr-xr-x | remote/modules/vmplayer/data/bin/vmplayer | 8 | ||||
| -rw-r--r-- | remote/modules/vmplayer/vmplayer.build | 25 | ||||
| -rw-r--r-- | remote/modules/vmplayer/vmplayer.conf | 3 | ||||
| l--------- | remote/targets/stage32-opensuse/vmplayer | 1 |
4 files changed, 37 insertions, 0 deletions
diff --git a/remote/modules/vmplayer/data/bin/vmplayer b/remote/modules/vmplayer/data/bin/vmplayer new file mode 100755 index 00000000..d4cd1d65 --- /dev/null +++ b/remote/modules/vmplayer/data/bin/vmplayer @@ -0,0 +1,8 @@ +#!/bin/sh + +for mod in /lib/modules/vmware/*.ko; do + insmod "$mod" || xmessage "Could not load kernel module $mod. vmplayer might fail." +done + +/bin/vmplayer-bin $@ + diff --git a/remote/modules/vmplayer/vmplayer.build b/remote/modules/vmplayer/vmplayer.build new file mode 100644 index 00000000..f2400380 --- /dev/null +++ b/remote/modules/vmplayer/vmplayer.build @@ -0,0 +1,25 @@ +fetch_source() { + : +} + +build() { + mkdir -p "$MODULE_BUILD_DIR/lib/modules/vmware" + mkdir -p "$MODULE_BUILD_DIR/bin" + cp "/usr/lib/vmware/bin/vmplayer" "$MODULE_BUILD_DIR/bin/vmplayer-bin" || perror "Could not copy vmplayer binary from /usr/lib/vmware/bin/vmplayer to build dir." + cd "/usr/lib/vmware/modules/source" || perror "vmplayer modules source not found. install vmplayer." + local tarball + for tarball in *.tar; do + pinfo "Building $tarball...." + tar xf "$tarball" || perror "Could not untar $tarball" + cd "${tarball/.tar}-only" || perror "Could not cd to extracted $tarball (tried ${tarball/.tar}-only)" + make LINUXINCLUDE="$MODULE_DIR/../kernel/ksrc/usr/include" || perror "Could not build kernel module $tarball" + cp "${tarball/.tar}.ko" "$MODULE_BUILD_DIR/lib/modules/vmware/" || perror "Could not copy ${tarball/.tar}.ko to $MODULE_BUILD_DIR/lib/modules/vmware/" + cd - + done + cd - +} + +post_copy() { + : +} + diff --git a/remote/modules/vmplayer/vmplayer.conf b/remote/modules/vmplayer/vmplayer.conf new file mode 100644 index 00000000..b7582397 --- /dev/null +++ b/remote/modules/vmplayer/vmplayer.conf @@ -0,0 +1,3 @@ +REQUIRED_BINARIES="vmplayer-bin" +REQUIRED_SYSTEM_FILES="" +REQUIRED_DIRECTORIES="/lib" diff --git a/remote/targets/stage32-opensuse/vmplayer b/remote/targets/stage32-opensuse/vmplayer new file mode 120000 index 00000000..9303aa6a --- /dev/null +++ b/remote/targets/stage32-opensuse/vmplayer @@ -0,0 +1 @@ +../../modules/vmplayer
\ No newline at end of file |
