Recompile ubuntu kernel

Asked by Patrick

Binary package hint: linux-source-2.6.27

Hi there

I've installed the linux-source-2.6.27 package and now I'm trying to recompile it. Why? I want to enable the pci express power savings and want to patch it to enable tux on ice.

To recompile I do: S
make oldconfig
make xconfig
make-kpkg clean
make-kpkg --inititrd --append-to-version=-patrick kernel_image kernel_headers

I've compiled succesfullly various kernels before, but in intrepid I am unable to do it. When I do make-kpkg clean I get this error:

patrick@patrick-laptop:~/Escriptori/linux-source-2.6.27$ sudo make-kpkg clean
exec make -f /usr/share/kernel-package/ruleset/minimal.mk clean
====== making target minimal_clean [new prereqs: ]======
Cleaning.
test ! -f .config || cp -pf .config config.precious
test ! -e stamp-building || rm -f stamp-building
test ! -f Makefile || \
            make ARCH=xen distclean
make[1]: Entering directory `/home/patrick/Escriptori/linux-source-2.6.27'
Makefile:528: /home/patrick/Escriptori/linux-source-2.6.27/arch/xen/Makefile: No such file or directory
make[1]: *** No rule to make target `/home/patrick/Escriptori/linux-source-2.6.27/arch/xen/Makefile'. Stop.
make[1]: Leaving directory `/home/patrick/Escriptori/linux-source-2.6.27'
make: *** [minimal_clean] Error 2

I've tried with a 2.6.26.5 kernel from kernel.org and it works fine. After make-kpkg clean I get this:

patrick@patrick-laptop:~/Escriptori/linux-2.6.26.5$ make-kpkg clean
exec make -f /usr/share/kernel-package/ruleset/minimal.mk clean
====== making target minimal_clean [new prereqs: ]======
Cleaning.
test ! -f .config || cp -pf .config config.precious
test ! -e stamp-building || rm -f stamp-building
test ! -f Makefile || \
            make ARCH=x86_64 distclean
make[1]: Entering directory `/home/patrick/Escriptori/linux-2.6.26.5'
  CLEAN scripts/basic
  CLEAN scripts/kconfig
  CLEAN include/config
  CLEAN .config .config.old include/linux/autoconf.h
make[1]: Leaving directory `/home/patrick/Escriptori/linux-2.6.26.5'
test ! -f config.precious || mv -f config.precious .config
rm -f modules/modversions.h modules/ksyms.ver conf.vars scripts/cramfs/cramfsck scripts/cramfs/mkcramfs applied_patches stamp-build stamp-configure stamp-image stamp-headers stamp-src stamp-diff stamp-doc stamp-manual stamp-patch stamp-buildpackage stamp-debian

I believe it's having trouble with arch. The 27 ubuntu kernel outputs ARCH=xen and the 26.5 ARCH=x86_64

Am I doing something wrong or is it a bug?

thanks for you time

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu linux Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was originally filed as bug #280173.

Revision history for this message
penalvch (penalvch) said :
#1

Patrick, thank you for taking the time to report this issue and helping to make Ubuntu better. Examining the information you have given us, this does not appear to be a bug report so we are closing it and converting it to a question in the support tracker. We understand the difficulties you are facing, but it is better to raise problems you are having in the support tracker at https://answers.launchpad.net/ubuntu if you are uncertain if they are bugs. You can also find a valid help posting your problem in the support forum of your local Ubuntu's community http://loco.ubuntu.com/ or asking at http://askubuntu.com. For help on reporting bugs, see https://help.ubuntu.com/community/ReportingBugs.

Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Open' state without activity for the last 15 days.