Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
{ 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.)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.