Results 1 to 1 of 1

Thread: "/lib/modules/($kernel-version)/build" links to sources folder

  1. #1
    Join Date
    May 2007
    Ubuntu 10.04 Lucid Lynx

    Question "/lib/modules/($kernel-version)/build" links to sources folder

    I'm compiling the vanilla kernel 2.6.37 with this guide:
    I compile with
    fakeroot make-kpkg --initrd --append-to-version=-custom --overlay-dir=$HOME/ubuntu-package kernel_image kernel_headers
    When I install the created packages (header and image), it creates two links in /lib/modules/($version)/: build and src, but both point to folder with sources, from where I've compiled.

    This is an error: build should be point to /usr/src/linux-headers-...
    How can I fix this?

    By other side, I don't want that it creates the src link, how can I change this?

    I have extracted an official kernel header package of Ubuntu and I have seen that there is a link /lib/modules/($version)/build points to /usr/src/linux-headers-$version/
    But in my header package, this link isn't created.
    And in image package there isn't /lib/modules/($version)/source nor build link.
    If I'm using its scripts, What am I doing wrong?

    It's important because if this link isn't created correctly, dkms fails.
    Last edited by simonbcn; February 16th, 2011 at 01:20 AM.

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts