cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Observer
Observer
6,751 Views
Registered: ‎07-17-2008

Dependencies for header files in SDK

I am attempign to make a kernal module driver and when i attempt to include the following files:


#include <linux/init.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/io.h>
#include <linux/interrupt.h>
#include <linux/uaccess.h>
#include <linux/of_address.h>
#include <linux/of_device.h>
#include <linux/of_platform.h>
#include <linux/cdev.h>

 

The following files are found and in my project.

#include <linux/kernel.h>

#include <linux/fs.h>

#include <linux/fcntl.h>

 

 

I included the following directory in my project:

 

PETALINUX_PROJ_ROOT/build/linux/rootfs/stage

 

and yes the missing files DONT apear in the location above. So my question is this:

 

How do i get petalinux to generate these files during the petelinux build process?

 

Tags (2)
0 Kudos
5 Replies
Highlighted
Observer
Observer
6,728 Views
Registered: ‎07-17-2008

it looks like these heard files are not included in the source of the default files that come with petalinux... once i downloaded the xilinx git branch these files were located.

0 Kudos
Highlighted
Visitor
Visitor
4,937 Views
Registered: ‎03-22-2016

hi mreister

 i have the same problem, can you tell me how did you solve this problem?

thank you !

0 Kudos
Highlighted
Observer
Observer
591 Views
Registered: ‎09-06-2018

Hi,

I cannot find linux/interrupt.h.

Any suggestions?

Thanks

0 Kudos
Highlighted
Observer
Observer
532 Views
Registered: ‎11-23-2017

Hello,

I found those headers in my petalinux source folder but if I include those directorys in XSDK dependencies between those headers are causing errors.

Have you found a solution?


Thanks!

0 Kudos
Highlighted
Contributor
Contributor
345 Views
Registered: ‎05-02-2019

Hello @mreister ,

I am having the same issue, does someone have an answer?

Regards

0 Kudos