You are not logged in.

#1 2010-02-21 08:15:20

skygunner
Member
From: Brisbane,Australia
Registered: 2010-02-18
Posts: 5

Can't build tp_smapi package under custom kernel, built ok with stock

Hi,
I followed this guide and built a custom kernel http://wiki.archlinux.org/index.php/Cus … n_with_ABS   (with the PKGBUILD file found in this page).
Basically I changed the LOCALVERSION while config kernel module, and changed processor type to Pentium M, exclude some drivers.

Now I can't build tp_smapi package with yaourt -S, gives me error:

-> Extracting tp_smapi-0.40.tgz with bsdtar
==> Entering fakeroot environment...
==> Starting build()...
patching file Makefile
/usr/bin/make -C /lib/modules/2.6.32.8-custom/build M=/tmp/yaourt-tmp-user/aur-tp_smapi/tp_smapi/src/tp_smapi-0.40 O=/lib/modules/2.6.32.8-custom/build modules
make[1]: Entering directory `/usr/src/linux-2.6.32.8-custom'
/usr/src/linux-2.6.32.8-custom/Makefile:529: /usr/src/linux-2.6.32.8-custom/arch/x86/Makefile: No such file or directory
make[2]: *** No rule to make target `/usr/src/linux-2.6.32.8-custom/arch/x86/Makefile'.  Stop.
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.32.8-custom'
make: *** [modules] Error 2
make: Entering directory `/usr/src/linux-2.6.32.8-custom'
Makefile:529: /usr/src/linux-2.6.32.8-custom/arch/x86/Makefile: No such file or directory
make: *** No rule to make target `/usr/src/linux-2.6.32.8-custom/arch/x86/Makefile'.  Stop.
make: Leaving directory `/usr/src/linux-2.6.32.8-custom'
==> Tidying install...
  -> Purging other files...


However it builds fine if run the stock Arch kernel.

This package depends on kernel26-headers, it pulls this down and installed, but itself is failed.
I believe the error is due to it requires the kernel26-headers as the other AUR packages don't.

tp_smapi's PKGBUILD is here
http://dpaste.com/162443/

Any suggestions/help?

Last edited by skygunner (2010-02-21 08:16:04)

Offline

#2 2010-02-21 09:18:21

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Can't build tp_smapi package under custom kernel, built ok with stock

Your custom kernel needs needs a custom headers package. kernel26-headers install in /usr/src/linux-2.6.32-ARCH - headers for your kernel need to be installed in /usr/src/linux-2.6.32.8-custom. You can either include them in your custom kernel package, or you can create a separate headers package.

Offline

#3 2010-02-21 11:06:26

skygunner
Member
From: Brisbane,Australia
Registered: 2010-02-18
Posts: 5

Re: Can't build tp_smapi package under custom kernel, built ok with stock

Thank you tomk. Consider this as solved.

Offline

#4 2010-02-21 14:28:31

xduugu
Member
Registered: 2008-10-16
Posts: 292

Re: Can't build tp_smapi package under custom kernel, built ok with stock

Just for your information, you can also patch tp_smapi into the kernel source and build the modules along with the kernel: http://git.zen-kernel.org/?p=kernel/zen … c7fcbb2c9f

Offline

#5 2010-03-27 20:33:22

Liuuutas
Member
From: Cambridge
Registered: 2009-05-02
Posts: 71

Re: Can't build tp_smapi package under custom kernel, built ok with stock

Hi,

I wanted to build a kernel26-ice with tp_smapi included as I would love to have more than one kernel on my system. However, I do not find any information on patching the kernel with such patch. Can anyone guide me to the right direction?

EDIT:
Excuse me for any inconvenience, I found, that kernel26-zen may be what I am looking for as it uses tp_smapi as a patch.

Last edited by Liuuutas (2010-03-28 14:58:54)

Offline

Board footer

Powered by FluxBB