Hi Autif,<br><br><div class="gmail_quote">On Tue, Dec 13, 2011 at 8:55 AM, autif khan <span dir="ltr"><<a href="mailto:autif.mlist@gmail.com">autif.mlist@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have linux kernel source in a directory (say) /home/autif/linux-2.6.29.4<br>
I can make xconfig followed by make bzImage, followed by make modules<br>
<br>
Now, I can install the modules using "make modules_install<br>
INSTALL_MOD_PATH=/home/autif/2.6.29.4.modules" - This works<br>
beautifully, without any issue.<br>
<br>
I have tried to install the kernel headers using "make headers_install<br>
INSTALL_HDR_PATH=/home/autif/2.6.29.4.headers"<br>
<br>
I can tar and extract these modules and headers on some other computer<br>
(target computer) at the right location. Meaning that modules are<br>
extracted to /lib/modules/<a href="http://2.6.29.4/" target="_blank">2.6.29.4/</a> and "build" is symlinked to<br>
/usr/src/linux-headers-2.6.29.4 - where I extracted the headers.<br>
<br>
However, I only get the include directory.<br>
<br>
When I try to build a driver on the target computer, there is<br>
complaint that I do not have a Makefile in<br>
/usr/src/linux-headers-2.6.29.4<br></blockquote><div><br>I'm confused. You said you don't have enough resources to build on your target, but then you're trying to build on the target?<br><br>I deal with ARM, and typically build on x86, which is a process called cross-compiling. You can also cross-compile and have x86 as a target.<br>
<br>Then you'd build the modules on your build machine and deploy the .ko files on your target. You don't need the headers on the target, just on your build machine.<br>
<br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
The build produces something like 1.5 GB of files and this is too much<br>
for my target system. I am reluctant to build the driver on the build<br>
system and want to build it on target. Both build and target are i386<br>
systems (one a full blown Debian based), the other something somewhat<br>
based on LFS.<br>
<br>
So, my short problem is - what make command I need to execute to<br>
install the build dependencies (including headers, Makefiles and other<br>
stuff that may be required by the driver) to copy that stuff over to a<br>
custom directory (say /home/autif/2.6.29.4.build_dependencies) so that<br>
I can tar it up and extract is on my target system at (say)<br>
/usr/src/linux-2.6.29.4<br></blockquote><div><br>As far as I know, you need to install the entire kernel source tree in order to build anything. Part of this comes from the config stuff, which uses the Kconfig files scattered all over the tree.<br>
<br>I'd like to be able to build external modules on my gumstix (I can natively compile user-mode code) with only some type of minimal install of stuff from the kernel, but I haven't found any easy way to create that minimal set of stuff. So if anybody knows of a way, I'm interested as well.<br>
<br></div></div>-- <br>Dave Hylands<br>Shuswap, BC, Canada<br><a href="http://www.davehylands.com" target="_blank">http://www.davehylands.com</a><br>