• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: How to use headers from sheeva.with-linux.com  (Read 1173 times)
djraffon
Newbie
*

Karma: 0
Posts: 5


View Profile
« on: June 15, 2010, 07:23:34 AM »

When I download the headers from sheeva.with-linux.com and I untar the tarball I get a "usr" folder with inside a "include" folder with 10 other folders inside like "asm", asm-generic", "drm", "linux", "mtd", ...

I want to compile a driver with those headers but I don't know what to do with this "usr" folder, I don't know where to copy it, and there is no README.txt inside the tarball.

Is there someone that used those headers already for compilation?
Logged

fragfutter
Sr. Member
****

Karma: 12
Posts: 280


View Profile
« Reply #1 on: June 15, 2010, 08:12:50 AM »

depends how clean your drivers source tarball is. Something along these lines
Code:
export BASE=/tmp/foobar
export PATH=/path/to/cross/compilers/bin:$PATH
mkdir -p $BASE/sysroot
cd $BASE/sysroot
tar zxvf sheeva_linux_header.tar.gz
cd $BASE
tar zxvf some_drivers_tarball.tar.gz
cd $BASE/some_driver
./configure --target=arm-elf --with-headers=$SYSROOT/usr/include --with-sysroot=$SYSROOT
make
Logged

djraffon
Newbie
*

Karma: 0
Posts: 5


View Profile
« Reply #2 on: June 15, 2010, 12:14:21 PM »

Thank you for the help but it doesn t work.

If I untar the sources of the driver, I don't have any "configure" file inside so the command below is not working:

./configure --target=arm-elf --with-headers=$SYSROOT/usr/include --with-sysroot=$SYSROOT

I just have a "Makefile" in the directory of my driver sources and inside this "Makefile" I can set some path as:

LINUX_SRC =
LINUX_SRC_MODULE =
CROSS_COMPLE =

But as I don't know what to set. I try to use the path of the linux-headers for LINUX_SRC and also the path of my cross sompile folder for CROSS_COMPILE but nothing worked.

Anyway, for me it seems to be much more coplicated to do cross compilation as I can compile the driver on the sheevaplug itself.

I just want to use the headers from sheeva.with-linux.com on the sheevaplug.
« Last Edit: June 15, 2010, 12:31:27 PM by djraffon » Logged

fragfutter
Sr. Member
****

Karma: 12
Posts: 280


View Profile
« Reply #3 on: June 15, 2010, 02:18:30 PM »

if just want the headers untar them so that in the end you find them in /usr/include/linux on the plug.

Logged

Pages: [1]
Print
Jump to: