LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-13-2013, 08:24 AM   #1
DaveEv
LQ Newbie
 
Registered: Mar 2013
Location: Scotland
Distribution: Debian, Freescale LTIB
Posts: 7

Rep: Reputation: Disabled
Include paths for driver


Hi All,

background:
embedded target i.mx28 using LTIB
based on kernel version 2.6.35

I'm attempting to build a wl1271 wireless driver, in one of the source files (wl1271_sdio.c) it has an include to <plat/gpio.h> this is not found for my target and the file it should use I think is:
arch/am/plat-mxc/include/mach/gpio.h

If I set the include path to that directory path it still doesn't find the file.
How does the kernel resolve paths?
The first path <plat/gpio.h> is part of include directory, does the compiler search for the corresponding folder structure and then file? and where does it start its search?

Thanks in advance,
Dave
 
Old 08-13-2013, 09:54 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
{ plat/gpio.h } for arm , kernel 2.6.35 :
Linux/arch/arm/plat-omap/include/plat/gpio.h
http://lxr.free-electrons.com/source...v=2.6.35;a=arm
Found with Google .. plat/gpio.h ..
Which means you can also find other arm headers equally easy.


A module Makefile : The INCLUDES are `uname -r`/build/include

Extra includes can be added to a module Makefile : EXTRA_CFLAGS += -I/usr/include
I.e. you can add the "plat" folder in e.g. /usr/include

( Things may be different if you are cross-compiling.)

-
 
  


Reply

Tags
gpio, ltib, path



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
QT Creator and include paths Mike Davies Linux - Software 4 12-21-2010 12:04 PM
Embedded Linux include library paths problem kermitG Programming 1 07-24-2008 11:35 AM
PHP include file directory/paths DMeerholz Linux - Software 1 07-02-2007 10:21 AM
Getting extra lib / include paths with automake MadCactus Linux - Software 0 08-21-2004 01:04 PM
include and lib paths Mux Slackware 1 05-05-2002 09:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration