|
|
|
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
|
|
#
|
|
|
|
# Filename: package/.../vmware/postlinux.conf
|
|
|
|
# Copyright (C) 2006 The T2 SDE Project
|
|
|
|
#
|
|
|
|
# More information can be found in the files COPYING and README.
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; version 2 of the License. A copy of the
|
|
|
|
# GNU General Public License can be found in the file COPYING.
|
|
|
|
# --- SDE-COPYRIGHT-NOTE-END ---
|
|
|
|
|
|
|
|
vmware_bmdir="../";
|
|
|
|
|
|
|
|
vmware_buildmod()
|
|
|
|
{
|
|
|
|
var_append makeopt " " "KERNEL_UNAME=$lx_kernelrelease"
|
|
|
|
var_append makeopt " " "VM_UNAME=$lx_kernelrelease"
|
|
|
|
var_append makeopt " " "HEADER_DIR=$kerneldir/include"
|
|
|
|
var_append makeopt " " "CC=$KCC"
|
|
|
|
echo $MAKE $makeopt
|
|
|
|
eval $MAKE $makeopt
|
|
|
|
}
|
|
|
|
|
|
|
|
vmware_mkvmmon()
|
|
|
|
{
|
|
|
|
echo "VMWare Monitor -------------";
|
|
|
|
tar xvf vmmon.tar;
|
|
|
|
pushd vmmon-only;
|
|
|
|
vmware_buildmod;
|
|
|
|
cp -fv vmmon.ko "$vmware_bmdir/objects/vmmon.o"
|
|
|
|
popd;
|
|
|
|
}
|
|
|
|
|
|
|
|
vmware_mkvmnet()
|
|
|
|
{
|
|
|
|
echo "VMWare Network -------------";
|
|
|
|
tar xvf vmnet.tar
|
|
|
|
pushd vmnet-only;
|
|
|
|
vmware_buildmod;
|
|
|
|
cp -fv vmnet.ko "$vmware_bmdir/objects/vmnet.o"
|
|
|
|
popd;
|
|
|
|
}
|
|
|
|
|
|
|
|
vmware_mkvmpp()
|
|
|
|
{
|
|
|
|
echo "VMWare PP --------------";
|
|
|
|
tar xvf vmppuser.tar
|
|
|
|
pushd vmppuser-only;
|
|
|
|
vmware_buildmod;
|
|
|
|
cp -fv vmppuser.ko "$vmware_bmdir/objects/vmppuser.o"
|
|
|
|
popd;
|
|
|
|
}
|
|
|
|
|
|
|
|
vmware_mkdesc()
|
|
|
|
{
|
|
|
|
pfile="$vmware_bmdir/properties"
|
|
|
|
echo "VMWare Properties file: $pfile";
|
|
|
|
echo "UtsRelease $lx_kernelrelease" > $pfile;
|
|
|
|
if grep -q "CONFIG_MODVERSIONS=y" $kerneldir/.config; then
|
|
|
|
echo "ModVersion yes" >> $pfile;
|
|
|
|
else
|
|
|
|
echo "ModVersion no" >> $pfile;
|
|
|
|
fi
|
|
|
|
if grep -q "CONFIG_SMP=y" $kerneldir/.config; then
|
|
|
|
echo "SMP yes" >> $pfile;
|
|
|
|
else
|
|
|
|
echo "SMP no" >> $pfile;
|
|
|
|
fi
|
|
|
|
echo "PageOffset C0000000" >> $pfile;
|
|
|
|
echo "Comment T2 $target $sdever" >> $pfile;
|
|
|
|
}
|
|
|
|
|
|
|
|
vmware_mkmodules ()
|
|
|
|
{
|
|
|
|
echo "Building vmware-modules...";
|
|
|
|
echo "VMWare being built for linux: $lx_kernelrelease";
|
|
|
|
echo "VMWare-Prefix: $SDECFG_PKG_VMWARE_PREFIX";
|
|
|
|
|
|
|
|
pf=$( match_source_file -p vmware-any-any )
|
|
|
|
if [ "$pf" != "" ] ; then
|
|
|
|
tar $taropt $pf
|
|
|
|
cp -av vmware-any-any*/*.tar lib/modules/source
|
|
|
|
fi
|
|
|
|
|
|
|
|
pushd lib/modules/source/
|
|
|
|
if grep -q "CONFIG_SMP=y" $kerneldir/.config; then
|
|
|
|
vmware_bmdir="$SDECFG_PKG_VMWARE_PREFIX/lib/vmware/modules/binary/smp-$lx_kernelrelease.$arch_machine.T2-$target";
|
|
|
|
else
|
|
|
|
vmware_bmdir="$SDECFG_PKG_VMWARE_PREFIX/lib/vmware/modules/binary/up-$lx_kernelrelease.$arch_machine.T2-$target";
|
|
|
|
fi;
|
|
|
|
mkdir -p $vmware_bmdir;
|
|
|
|
mkdir -p "$vmware_bmdir/objects";
|
|
|
|
echo "VMWare modules will go to: $vmware_bmdir";
|
|
|
|
vmware_mkvmmon;
|
|
|
|
vmware_mkvmnet;
|
|
|
|
if [ "$SDECFG_PKG_VMWARE_PPUSER" = 1 ] ; then
|
|
|
|
vmware_mkvmpp;
|
|
|
|
fi
|
|
|
|
vmware_mkdesc;
|
|
|
|
popd
|
|
|
|
echo "VMWARE DONE -------------------------------------";
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
custmain="vmware_mkmodules"
|