LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices



Reply
 
Search this Thread
Old 05-11-2010, 04:40 AM   #1
JJRockford
LQ Newbie
 
Registered: Feb 2010
Posts: 11

Rep: Reputation: 0
Question Adding timeb.h to my kernel??


In a project I am working on, I just switched from using time.h and clock() to using timeb.h ("#include <sys/timeb.h>") and ftime(). Works perfectly fine while running in on my PC (from Eclipse).

But when I try to build an image for the target, it can't find the timeb.h file.

Is it possibly to use this .h-file on the target (ARM9-processor), and how do I do this?

I know this is a pretty vague question, but I very new to this embedded linux thing.
 
Old 05-11-2010, 07:43 AM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,615

Rep: Reputation: 585Reputation: 585Reputation: 585Reputation: 585Reputation: 585Reputation: 585
The system automatically checks for headers in /usr/include. You can do
./configure --includedir=/somewhere/crazy but best also put a symlink to /uer/include there. Also try putting it in with your source includes. But I suspect that if you have timeb.h beside time.h, all will be well.

Last edited by business_kid; 05-11-2010 at 07:47 AM.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel adding palisetty_suman Linux - Newbie 9 03-13-2009 11:00 PM
adding kernel to source naindejardin Linux - Kernel 1 02-20-2008 09:41 AM
adding a feature into the kernel ekdya Debian 8 09-15-2006 02:39 PM
adding tun to kernel and kernel compile gv_rajasekhar Linux - Kernel 2 09-11-2006 12:39 AM
Adding Mods to the Kernel frkstein Linux - General 2 11-29-2003 06:28 PM


All times are GMT -5. The time now is 10:44 PM.

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