Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:rafelbev
tp_smapi
tp_smapi.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File tp_smapi.spec of Package tp_smapi
Name: tp_smapi Version: 0.33 Release: 1 Url: http://tpctl.sourceforge.net License: GPL v2 or later BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: kernel-source kernel-syms module-init-tools Group: System/Kernel Summary: Kernel Modules implementing smapi on ThinkPads Source: tp_smapi-%{version}.tgz Patch0: input_dev.patch Autoreqprov: on %suse_kernel_module_package -n tp_smapi -p %_sourcedir/preamble kdump um %description The tp_smapi kernel module exposes some features of the ThinkPad hardware/firmware via a sysfs interface. Currently, the main implemented functionality is control of battery charging and extended battery status. It also includes an improved version of the HDAPS driver. The underlying hardware interfaces are SMAPI and direct access to the embedded controller. %prep %setup -n tp_smapi-%{version} %patch0 -p0 set -- * mkdir source mv "$@" source/ mkdir obj %build for flavor in %flavors_to_build; do rm -rf obj/$flavor cp -r source obj/$flavor krel=$(make -s -C /usr/src/linux-obj/%_target_cpu/$flavor kernelrelease) cd obj/$flavor make KVER=${krel} KSRC=/usr/src/linux-${krel/%"-${flavor}"/} \ M=$PWD HDAPS=1 cd - done %install # Kernel module export INSTALL_MOD_PATH=$RPM_BUILD_ROOT export INSTALL_MOD_DIR=updates for flavor in %flavors_to_build; do make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install \ M=$PWD/obj/$flavor done cd source %clean rm -rf "$RPM_BUILD_ROOT"
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