LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-22-2013, 01:26 AM   #1
alpha_lt
Member
 
Registered: Jul 2009
Location: Lithuania
Distribution: Debian testing (laptop), Debian stable (server)
Posts: 91

Rep: Reputation: 15
Compiling embedded linux image. Some general questions


Hello to all,

I'm trying to learn some things about compiling and building OpenWRT linux image, but I'm stuck. I can't get help in appropriate forums maybe because my question is too stupid or maybe because it refers to general linux kernel building issues. So I'll try to specify my problem as detailed as possible and hope will get answer.
When you select package in 'make menuconfig' tool with 'y' or 'm' then everything is clear and no problems. Problem arrive when you select for example iptables modules 'iptables-mod-extra' with 'y'. This module contains several matches and somehow all matches are automatically selected as 'm'. I can't find rules which describe that particular modules must be autoselected with 'm'. What I found so far is:
1. In file 'include/netfilter.mk' the is line
$(eval $(call nf_add,IPT_EXTRA,CONFIG_NETFILTER_XT_MATCH_OWNER, $(P_XT)xt_owner))
MATCH_OWNER is one of the matches of 'iptables-mod-extra' and as I understand CONFIG_NETFILTER_XT_MATCH_OWNER should be evaluated into 'm' in that line above and it is true.
2. CONFIG_NETFILTER_XT_MATCH_OWNER is defined as 'm' in file 'build_dir/toolchain-mips_r2_gcc_-4.6-linaro_uClibc-0.9.33.2/linux-3.7.3/.config'. Here is the question itself. Whole build_dir is generated during make time and there should be some rule which describes how build system must generate that ./config file. If I could find definition which tell to build system that CONFIG_NETFILTER_XT_MATCH_OWNER must be assigned to 'm' then all the rest would be clear to me.

Could please someone help me to find an answer or at least guide me to right path of finding the answer. I even tried 'make -d', but without success.
 
Old 02-01-2013, 09:42 AM   #2
elucches
Member
 
Registered: Jan 2011
Posts: 91

Rep: Reputation: 8
Perhaps this helps.
 
Old 02-03-2013, 07:48 AM   #3
alpha_lt
Member
 
Registered: Jul 2009
Location: Lithuania
Distribution: Debian testing (laptop), Debian stable (server)
Posts: 91

Original Poster
Rep: Reputation: 15
Hi,

This is indeed very good article, but still I can't find rules which defines submodules for particular module. I'm trying to look at the make -d output, but still not so much success here.
 
Old 02-04-2013, 08:15 AM   #4
elucches
Member
 
Registered: Jan 2011
Posts: 91

Rep: Reputation: 8
Hello alpha_lt,
You can track dependencies by looking in the Kconfig files. For example, using grep for NETFILTER_XT_MATCH_OWNER you'll find that net/netfilter/Kconfig says it's tristate and depends on NETFILTER_ADVANCED, then you can grep for NETFILTER_ADVANCED, etc. If that's not what you're after, then I don't understand the question.
Best regards,
Esteban
 
Old 02-05-2013, 12:57 AM   #5
alpha_lt
Member
 
Registered: Jul 2009
Location: Lithuania
Distribution: Debian testing (laptop), Debian stable (server)
Posts: 91

Original Poster
Rep: Reputation: 15
Hello,

Yes you understand my question right. I'll try to grep for NETFILTER_ADVANCED and see what it show me.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to display boot splash image on embedded linux device using fbsplash? sticks719 Linux - Newbie 1 05-13-2011 11:55 AM
Compiling for embedded arm linux mvhurlburt Linux - Embedded & Single-board computer 1 06-16-2009 09:06 AM
compiling distro from source? general questions kahn Red Hat 3 07-31-2005 02:32 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration