Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Device Driver compilation problem

    Hello all,

    I am a newbie and have got FC6 up and running. I am using the hello.c (just the hello world on init and goodbye cruel world on exit) of LDD 3rd ed (Al Rub, et al...). Now I compiled this file with a Makefile containing just obj-m := hello.o and the command I gave was just make. The error was
    make: *** No targets. Stop

    Searching I found that my system does have the source. What is the procedure to install and make the source usable? How do I make this sample module work?

    Thanks in advance.

  2. #2
    Try this makefile, place a real tab before the make statements (not spaces!):

    obj−m += hello.o
    	make −C /lib/modules/$(shell uname −r)/build M=$(PWD) modules
    	make −C /lib/modules/$(shell uname −r)/build M=$(PWD) clean


Posting Permissions

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