ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] How to specify locations for libs & executables


From: Stuart Hughes
Subject: Re: [Ltib] How to specify locations for libs & executables
Date: Sat, 18 Sep 2010 15:26:03 +0100
User-agent: Thunderbird 2.0.0.16 (X11/20080707)

Hi Todd,

Your workflow is okay, except you're missing some kind of package
management if you want to easily be able to replace your own stuff.

Apple is not a Linux platform, so it's not fair to try to equate how
they manage content.  Even Android does thing a completely separate way.

For Linux (LSB) put your stuff in /opt/_vendor_/{lib,bin}.  However this
will only get you so far unless you use some kind of package management
system.

Regards, Stuart


address@hidden wrote:
> Maybe I'm not doing things correctly but I'm *not *running 'my stuff'
> through LTIB.  I add my stuff *after *LTIB finishes.  My flow goes like
> this:
> 
>    1. ./ltib -c
>    2. Define everything in LTIB.
>    3. LTIB produces a root file system on my host
>    4. My target NFS mounts the root file system on my host and uses it
>       for it's root file system
> 
> Now, I'm finished with LTIB unless I need to change some Linux commands,
> etc.
> 
>    1. Use Eclipse to manage C/C++ source files, compile, link, etc
>    2. Use Eclipse to install my drivers, libraries, & executables into
>       rootfs. (my stuff)
>    3. Run my executables in the target via ssh, (Dropbear).
>    4. Go back to step 1, (in this group, not ltib), to edit and make fixes.
> 
>    1. When My executables are all checked out, I use LTIB to
>       create rootfs.jffs2. This now includes my executables and
>       libraries, etc.
>    2. Flash the target.
> 
> Is the above flow reasonable?  Maybe all I need to change is installing
> my stuff in /opt/lib and opt/bin to keep it separate from the Linux
> stuff.  Would Apple put the executable that makes their box an iPhone in
> /opt/bin/iPhoneApp and /opt/lib/iPhoneLib.so?
> 
> Thanks for your patience...
> todd
> 
> ----- Original Message -----
> From: "Stuart Hughes" <address@hidden>
> To: address@hidden
> Cc: "ltib" <address@hidden>
> Sent: Tuesday, September 14, 2010 3:38:23 PM
> Subject: Re: [Ltib] How to specify locations for libs & executables
> 
> Hi Todd,
> 
> You can replace your stuff, that's what RPM package management does for
> you.  Simply re-build with the debug switch off.
> 
> BTW: vendor stuff should go into /opt/
> 
> Regards, Stuart
> 
> address@hidden wrote:
>> I'd like to have a place to install my shared libraries and executables
>> *after* LTIB is finished doing it's thing.  I would like a clean place
>> like /usr/lib & /usr/bin to be left for my stuff.
>>
>> The way it is now, LTIB puts busybox stuff in /usr/lib,  /bin,
>>  /usr/bin,  & /usr/sbin.  The problem is that if I don't have a clean
>> place for my own stuff, it's difficult to do a 'clean'.  For example, if
>> I have installed debug versions of my code, and now I want to get rid of
>> it and only have the release versions installed, it's hard to delete it
>> with all the busybox & other system stuff installed in the same place.
>>
>> Can I tell LTIB to just use /lib & /bin?  
>>
>> I'd appreciate any philosophy/advice from others that have already
>> solved this problem.
>>
>>
>>
>> Also, I notice that /lib has libm-2.5.so & libm.so.6.  /usr/lib has
>> libm.so.  I'm trying to make everything fit into my Flash.  Anybody know
>> why I have 3 versions of libm?
>>
>> I'm running ltib 10.1.1 ($Revision: 1.68 $) on Ubuntu 10.04, targeting
>> Freescale MPC5200, Linux version 2.6.26.3-rt3 (gcc version 4.1.2) #2
>> PREEMPT RT
>>
>> Thanks!
>> todd
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> LTIB home page: http://ltib.org
>>
>> Ltib mailing list
>> address@hidden
>> http://lists.nongnu.org/mailman/listinfo/ltib
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> LTIB home page: http://ltib.org
> 
> Ltib mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/ltib



reply via email to

[Prev in Thread] Current Thread [Next in Thread]