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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
05-13-2014, 01:50 PM
|
#1
|
Member
Registered: Sep 2010
Posts: 233
Rep:
|
Where is my linux_src
I am trying to create a Linux Wireless Driver for my HP ENVY desktop. I know I shoudn't but I am trying to get it out of the lving room and upstairs into the office so I can get my wife out of the equation.
Anyway back to problem,
I have this statement in the README file:
In Makefile
set the "MODE = STA" in Makefile and chose the TARGET to Linux by set "TARGET = LINUX"
define the linux kernel source include file path LINUX_SRC
modify to meet your need.
where is the LINUX_SRC that it mentions? If you can help, thank you.
cajunchief
|
|
|
05-13-2014, 02:02 PM
|
#2
|
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
|
The Makefile is normally in the top level of the source tree (and one for every layer under it in many cases). Sometimes in a subdirectory ./src/ or ./sources/ depending on coding preferences. Instead of doing the usual ./configure && make && make install you would do something like $(make -f Makefile). It sounds like you are to EDIT the Makefile. All of which assumes that you have a system configured for compiling sources and other things.
|
|
|
05-13-2014, 02:05 PM
|
#3
|
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,291
|
To get the source for the Redhat, CentOS or Fedora kernel, do (as root): yum install kernel-devel
In general, <rpmname> lets you use the code, and <rpmname>-devel provides the header files needed to develop against it.
|
|
|
05-13-2014, 02:23 PM
|
#4
|
Member
Registered: Sep 2010
Posts: 233
Original Poster
Rep:
|
Quote:
Originally Posted by Shadow_7
The Makefile is normally in the top level of the source tree (and one for every layer under it in many cases). Sometimes in a subdirectory ./src/ or ./sources/ depending on coding preferences. Instead of doing the usual ./configure && make && make install you would do something like $(make -f Makefile). It sounds like you are to EDIT the Makefile. All of which assumes that you have a system configured for compiling sources and other things.
|
Shadow_7,
is the subdirectory under the Makefile directory or another directory?
|
|
|
05-13-2014, 03:01 PM
|
#5
|
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
|
Each directory under the main one will have it's own Makefile in many cases. But for simple things there may only be one directory of files.
$ find . -iname '*makefile*'
|
|
|
All times are GMT -5. The time now is 01:35 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|