LinuxQuestions.org
Visit Jeremy's Blog.
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 05-13-2014, 01:50 PM   #1
cajunchief
Member
 
Registered: Sep 2010
Posts: 233

Rep: Reputation: 0
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
 
Old 05-13-2014, 02:02 PM   #2
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
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.
 
Old 05-13-2014, 02:05 PM   #3
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,291

Rep: Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323
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.
 
Old 05-13-2014, 02:23 PM   #4
cajunchief
Member
 
Registered: Sep 2010
Posts: 233

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Shadow_7 View Post
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?
 
Old 05-13-2014, 03:01 PM   #5
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
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*'
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



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

All times are GMT -5. The time now is 01:35 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