[ATrpms-devel] Updated coretemp kmdl?

Axel Thimm Axel.Thimm at ATrpms.net
Thu Feb 18 21:29:09 CET 2010


On Thu, Feb 18, 2010 at 01:08:15PM -0500, Brian Long wrote:
> On Thu, Feb 18, 2010 at 1:02 PM, Axel Thimm <Axel.Thimm at atrpms.net> wrote:
> > On Thu, Feb 18, 2010 at 09:25:31AM -0500, Brian Long wrote:
> >> Since Atrpms offers updated video4linux and other kmdls, would it make
> >> sense to offer an updated coretemp kmdl which supported the Atom CPUs?
> >>  It would be nice to be able to monitor my F11 Atom-based CPU using
> >> lm_sensors, but the 2.6.30 kernel does not support it.  I found the
> >> following patch:
> >> http://mabene.icomedias.com/coretemp.patch
> >>
> >> I'm not sure if 2.6.31 or 2.6.32 integrated this patch or something
> >> similar, but I'm thinking about taking the latest coretemp source and
> >> compiling it as a module for F11 or F12.  Has anyone else considered
> >> something similar?
> >
> > this looks like a nice packaging project!
> >
> > You should use the compiler etc. as given by the Makefile under
> > %{kmdl_kernelsrcdir}. Or you could copy the Makefile/Kbuild parts from
> > the kernel tree.
> Axel,
> Do you have a recommended kmdl src.rpm I should look at for updating
> coretemp and possibly other hwmon modules (i.e. lm90)?  I've looked at
> the video4linux and nvidia-graphics190.53 src.rpms.  It appears the
> video4linux does roughly what I want, so I believe I'll play with its
> spec file.

Yes, and you probably just need something like

%build
%kmdl_config
%if %{kmdl_userland}
%else
make -C %{kmdl_kernelsrcdir} SUBDIRS=`pwd` modules
%endif

%install
rm -rf %{buildroot}
mkdir %{buildroot}
%if %{kmdl_userland}
%else
make -C %{kmdl_kernelsrcdir} SUBDIRS=`pwd` modules_install \
  INSTALL_MOD_PATH=%{buildroot} INSTALL_MOD_DIR=updates/where/it/should/go
  DESTDIR=%{buildroot}
if [ -d %{buildroot}%{kmdl_moduledir}/../extra ]; then
  mv %{buildroot}%{kmdl_moduledir}/../extra/* %{buildroot}%{kmdl_moduledir}/where/it/should/go
fi

%endif


> I'm using atrpms-rpm-config to ensure your macros are in place and
> I've written many rpms in the past, just not rpms which compile kernel
> modules.
> 
> I've seen people post links to people.atrpms.net with src.rpms, etc.
> How does access to that site work?

You just send me a public ssh key in PM.
-- 
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.atrpms.net/pipermail/atrpms-devel/attachments/20100218/bb5d1ca8/attachment.sig>


More information about the atrpms-devel mailing list