Find the answer to your Linux question:
Results 1 to 2 of 2
Hi I am trying to write a simple system call in the 2.6 linux kernel. While running the make mrproper command to recompile the kernel i am getting the following ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2009
    Posts
    4

    Help with compiling new kernel..


    Hi

    I am trying to write a simple system call in the 2.6 linux kernel. While running the make mrproper command to recompile the kernel i am getting the following error

    scripts/Makefile.clean:17: /usr/src/linux-2.6.31.6/block/mycall/Makefile: No such file or directory
    make[1]: *** No rule to make target `/usr/src/linux-2.6.31.6/block/mycall/Makefile'. Stop.
    make: *** [_clean_block/mycall] Error 2

    What does block directory contain in linux? Do i need to add my syscall file( mycall) to this directory too???

    Can someone help..

    thanks

  2. #2
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    1,197
    Quote Originally Posted by abhiram7 View Post
    Hi
    What does block directory contain in linux? Do i need to add my syscall file( mycall) to this directory too???
    Looks like you already have and that's what's causing the problem. The block directory contains the block layer - basic functions for using block devices. Here's what the kernel help file (block/Kconfig) says:

    Provide block layer support for the kernel.
    Disable this option to remove the block layer support from the kernel. This may be useful for embedded devices.
    If this option is disabled:
    - block device files will become unusable
    - some filesystems (such as ext3) will become unavailable.
    Also, SCSI character devices and USB storage will be disabled since they make use of various block layer definitions and facilities.


    I don't know a lot about kernel compiling but my advice is to put your mycall directory directly under the top-level directory, not in any of the specialised ones.

    It might also be a good idea to run clean-up routines like make mrproper before adding in new source code.
    Last edited by hazel; 11-14-2009 at 04:45 PM.
    "I'm just a little old lady; don't try to dazzle me with jargon!"

Posting Permissions

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