AnsweredAssumed Answered

linux kernel module

Question asked by JavierNS on Jun 19, 2016
Latest reply on Oct 5, 2017 by rejeesh

I am trying to compile a kernel module for the Analog´s Linux for the ad9467 converter. When I execute the make file I get the following error:


" make -C /lib/modules/3.19.0-ge739692/build M=/home/analog/driver modules

make: *** /lib/modules/3.19.0-ge739692/build: No such file or directory.  Stop.

make: *** [all] Error 2 "


The makefile that I have used it is the following:


obj-m += comp_axi_module.o


  make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules


  make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean    "


And these are the libraries that I am using in this module:


#include <linux/module.h>

#include <linux/kernel.h>

#include <linux/init.h>

#include <linux/interrupt.h>

#include <linux/irq.h>

#include <asm/io.h>

#include <linux/fs.h>

#include <linux/signal.h>

#include <asm/siginfo.h>

#include <linux/rcupdate.h>

#include <linux/sched.h>

#include <linux/debugfs.h>

#include <linux/uaccess.h>  "


I have used this module in other Linux distributions such as xillinux and I did not have any problem.