All of lore.kernel.org
 help / color / mirror / Atom feed
* Please review john_lee/openmoko-toolchain
@ 2008-12-22  9:29 John Lee
  2008-12-22 12:07 ` Koen Kooi
  0 siblings, 1 reply; 4+ messages in thread
From: John Lee @ 2008-12-22  9:29 UTC (permalink / raw)
  To: openembedded-devel

Hi,

This branch contains just 4 extra commits but these are highly
controversial.


    meta-toolchain.bb: introduce POPULATE_SDK_EXTRA_TASK
    
    In case some more modifications are required before the toolchain is
    packaged up, introduce this variable to do extra tasks right before
    packaging.


    meta-toolchain-openmoko.bb: add feed to toolchain
    
    By modifying the opkg config files in the toolchain, the toolchain can
    expend itself by installing packages from the repository.


We need to do some modifications to the contents of toolchain before
the packaging complete, so we use this variable as a hook.  The
modification is to create an opkg config file so the toolchain knows
where to get new packages.  A better way might be to install
distro-feed-configs, but that includes several opkg config files while
alias 'opkg-target' uses just one: opkg.conf.


    libtool-sdk_1.5.10.bb, meta-toolchain.bb, task-sdk-host.bb: introduce
    sysroot libtool-sdk.
    
    Add libtool-sdk to help the meta toolchain using the .la files.  Patch
    add_sysroot_function.patch is applied to teach libtool about
    LIBTOOL_SYSROOT_PATH .
    
    task-sdk-host.bb is updated along with its consumers to include
    libtool-sdk, and meta-toolchain.bb is updated to include this
    environment variable.


After some packages is installed by user to extend the toolchain, one
will find out that the .la files in the -dev packages often contain
incorrect paths.  In order to solve that, LIBTOOL_SYSROOT_PATH is
introduced, and it works just like PKG_CONFIG_SYSROOT_DIR.

This patch is posted to upstream already:

http://lists.gnu.org/archive/html/libtool-patches/2008-12/msg00000.html


    autotools.bbclass: adding do_install_append() to autotools.bbclass
    
    This function is used to correct .la files.  Many bb files use their
    own do_install so just adding this into the original
    autoclass_do_install won't work.  This ensures the .la files contain
    correct path.


The last commit along is not enough to fix the .la files.  This
enforces do_install to check the .la files and fix them.


Comments?  Flames?


Regards,
John



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Please review john_lee/openmoko-toolchain
  2008-12-22  9:29 Please review john_lee/openmoko-toolchain John Lee
@ 2008-12-22 12:07 ` Koen Kooi
  2008-12-24  6:41   ` John Lee
  0 siblings, 1 reply; 4+ messages in thread
From: Koen Kooi @ 2008-12-22 12:07 UTC (permalink / raw)
  To: openembedded-devel

On 22-12-08 10:29, John Lee wrote:
> Hi,
>

>      meta-toolchain-openmoko.bb: add feed to toolchain
>
>      By modifying the opkg config files in the toolchain, the toolchain can
>      expend itself by installing packages from the repository.
>
>
> We need to do some modifications to the contents of toolchain before
> the packaging complete, so we use this variable as a hook.  The
> modification is to create an opkg config file so the toolchain knows
> where to get new packages.  A better way might be to install
> distro-feed-configs, but that includes several opkg config files while
> alias 'opkg-target' uses just one: opkg.conf.

Suggestions for the existing patch:

* rename OPENMOKO_URI to TOOLCHAIN_FEED_URI
* move the modify_opkg_conf () to meta-toolchain.bb
* TOOLCHAIN_FEED_URI ? = "" in meta-toolchain.bb
* TOOLCHAIN_FEED_URI = 
"http://downloads.openmoko.org/repository/testing" in 
meta-toolchain-openmoko.bb or better, conf/distro/openmoko.conf

That way more distributions can use it and each distro version can have 
it's own SDK by setting TOOLCHAIN_FEED_URI in its distro file.

As you might have noticed /etc/opkg/arch.conf isn't in any packages (not 
unlike the initial devnodes), so you have to generate it for the SDK. I 
ran in to the same problem with the online image creator[1] and resorted 
to manually installing the conf files: [2]

regards,

Koen

[1] http://amethyst.openembedded.net/~koen/narcissus/
[2] 
http://dominion.thruhere.net/git/?p=narcissus.git;a=blob;f=README;h=4a6b5998b5c57dfe85b093e456b246f168cb8d2e;hb=HEAD




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Please review john_lee/openmoko-toolchain
  2008-12-22 12:07 ` Koen Kooi
@ 2008-12-24  6:41   ` John Lee
  2009-01-05  9:18     ` John Lee
  0 siblings, 1 reply; 4+ messages in thread
From: John Lee @ 2008-12-24  6:41 UTC (permalink / raw)
  To: openembedded-devel

On Mon, Dec 22, 2008 at 01:07:28PM +0100, Koen Kooi wrote:
> On 22-12-08 10:29, John Lee wrote:
>> Hi,
>>
>
>>      meta-toolchain-openmoko.bb: add feed to toolchain
>>
>>      By modifying the opkg config files in the toolchain, the toolchain can
>>      expend itself by installing packages from the repository.
>>
>>
>> We need to do some modifications to the contents of toolchain before
>> the packaging complete, so we use this variable as a hook.  The
>> modification is to create an opkg config file so the toolchain knows
>> where to get new packages.  A better way might be to install
>> distro-feed-configs, but that includes several opkg config files while
>> alias 'opkg-target' uses just one: opkg.conf.
>
> Suggestions for the existing patch:
>
> * rename OPENMOKO_URI to TOOLCHAIN_FEED_URI
> * move the modify_opkg_conf () to meta-toolchain.bb
> * TOOLCHAIN_FEED_URI ? = "" in meta-toolchain.bb
> * TOOLCHAIN_FEED_URI =  
> "http://downloads.openmoko.org/repository/testing" in  
> meta-toolchain-openmoko.bb or better, conf/distro/openmoko.conf
>
> That way more distributions can use it and each distro version can have  
> it's own SDK by setting TOOLCHAIN_FEED_URI in its distro file.

I renamed and moved TOOLCHAIN_FEED_URI into meta-toolchain.bb and make
it default to DISTRO_FEED_URI instead of empty string, so each distro
can use its own feed setting.

> As you might have noticed /etc/opkg/arch.conf isn't in any packages (not  
> unlike the initial devnodes), so you have to generate it for the SDK. I  
> ran in to the same problem with the online image creator[1] and resorted  
> to manually installing the conf files: [2]

modify_opkg_conf will add arch into the opkg conf file as well, so I
think this is not necessary.

IMHO meta-toolchain.bb looks fine now.  I'm now more concerned about
autotools.bbclass since it's global change.


- John



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Please review john_lee/openmoko-toolchain
  2008-12-24  6:41   ` John Lee
@ 2009-01-05  9:18     ` John Lee
  0 siblings, 0 replies; 4+ messages in thread
From: John Lee @ 2009-01-05  9:18 UTC (permalink / raw)
  To: openembedded-devel

Just fixed another minor white space vs tab error in libtool-sdk.
Please review these commits.  If it's okay I'll commit them on Friday.
Thanks for Koen for reviewing this.


- John

On Wed, Dec 24, 2008 at 02:41:15PM +0800, John Lee wrote:
> On Mon, Dec 22, 2008 at 01:07:28PM +0100, Koen Kooi wrote:
> > On 22-12-08 10:29, John Lee wrote:
> >> Hi,
> >>
> >
> >>      meta-toolchain-openmoko.bb: add feed to toolchain
> >>
> >>      By modifying the opkg config files in the toolchain, the toolchain can
> >>      expend itself by installing packages from the repository.
> >>
> >>
> >> We need to do some modifications to the contents of toolchain before
> >> the packaging complete, so we use this variable as a hook.  The
> >> modification is to create an opkg config file so the toolchain knows
> >> where to get new packages.  A better way might be to install
> >> distro-feed-configs, but that includes several opkg config files while
> >> alias 'opkg-target' uses just one: opkg.conf.
> >
> > Suggestions for the existing patch:
> >
> > * rename OPENMOKO_URI to TOOLCHAIN_FEED_URI
> > * move the modify_opkg_conf () to meta-toolchain.bb
> > * TOOLCHAIN_FEED_URI ? = "" in meta-toolchain.bb
> > * TOOLCHAIN_FEED_URI =  
> > "http://downloads.openmoko.org/repository/testing" in  
> > meta-toolchain-openmoko.bb or better, conf/distro/openmoko.conf
> >
> > That way more distributions can use it and each distro version can have  
> > it's own SDK by setting TOOLCHAIN_FEED_URI in its distro file.
> 
> I renamed and moved TOOLCHAIN_FEED_URI into meta-toolchain.bb and make
> it default to DISTRO_FEED_URI instead of empty string, so each distro
> can use its own feed setting.
> 
> > As you might have noticed /etc/opkg/arch.conf isn't in any packages (not  
> > unlike the initial devnodes), so you have to generate it for the SDK. I  
> > ran in to the same problem with the online image creator[1] and resorted  
> > to manually installing the conf files: [2]
> 
> modify_opkg_conf will add arch into the opkg conf file as well, so I
> think this is not necessary.
> 
> IMHO meta-toolchain.bb looks fine now.  I'm now more concerned about
> autotools.bbclass since it's global change.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-01-05  9:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-22  9:29 Please review john_lee/openmoko-toolchain John Lee
2008-12-22 12:07 ` Koen Kooi
2008-12-24  6:41   ` John Lee
2009-01-05  9:18     ` John Lee

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.