Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
filesystems
openafs16
kernel-source.build-modules.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kernel-source.build-modules.sh of Package openafs16
#!/bin/sh if [ $# != 1 ]; then echo building a openafs-kernel module for the running kernel echo Need one of: build build_debug install exit 1 fi LOGFILE=libafs_tree/build.log kernel_flavour=`uname -r | awk -F- '{print $NF}'` kernel_version=`uname -r | sed "s/-$kernel_flavour//"` arch=`uname -m` suse_flavour=`cat /etc/os-release | grep ID | awk -F= '{print $1}'` suse_version=`cat /etc/os-release | grep VERSION | awk -F= '{print $NF}' | sed 's/"//g'` echo This SuSE is version \"$suse_version\" of flavour \"$suse_flavour\" echo you are running the kernel \"$kernel_version\" of flavour \"$kernel_flavour\" on \"$arch\" echo all output is saved into $LOGFILE if [ $1 == "build_debug" ]; then DEBUG_OPT="--enable-debug-kernel" fi if [ $1 == "build" -o $1 == "build_debug" ]; then cd libafs_tree echo calling configure... ./configure --with-linux-kernel-headers=/usr/src/linux/ --with-linux-kernel-build=/usr/src/linux-obj/$arch/$kernel_flavour $DEBUG_OPT > build.log 2>&1 if [ $? != 0 ]; then echo configure failed! See $LOGFILE for details exit $? fi echo calling make make >> build.log 2>&1 if [ $? != 0 ]; then echo make failed! See $LOGFILE for details exit $? fi echo echo build sucessfull! echo Now run sh $0 install to install the kernel-modules exit 0 fi if [ $1 == "install" ]; then module_files="afspag.ko libafs.ko" build_dir=libafs_tree/src/libafs/MODLOAD-$kernel_version-$kernel_flavour-MP/ install_dir=/lib/modules/$kernel_version-$kernel_flavour echo installing kernel-modules into for mod in $module_files; do cp -v $build_dir/$mod $install_dir/$mod done /sbin/depmod -a fi
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor