[OE-core] [PATCH 1/1] module.bbclass: add lock to prevent error bulding ext modules
Anders Darander
anders at chargestorm.se
Wed Oct 19 11:55:04 UTC 2011
* Koen Kooi <koen at dominion.thruhere.net> [111019 13:38]:
> Op 19 okt. 2011, om 13:15 heeft Anders Darander het volgende geschreven:
> > When external modules are built, files in $STAGING_KERNEL_DIR/scripts/basic will/can get
> > rebuilt.
> > This raises a potential race condition. Prevent this by adding a lock around the
> > do_make_scripts() function. Further, make sure that the kernel has been installed
> > to the sysroot, prior to executing this new task.
> So what do external module recipe that aren't using do_compile from
> module.bbclass need to change to keep working?
I haven't tried any, do you know any widely available ones that I could
check?
If they aren't using the do_compile from module.bbclass, are they
inheriting module.bbclass anyway? If they aren't inheriting
module.bbclass, then they shouldn't be affected.
If they inherit module.bbclass, than I guess that we should remove the
call to do_make_scripts from their do_compile. _But_ this is untested,
as I've got no such recipe (that I'm aware of). If my assumptions hold,
we should probably rephrase the comment regarding do_make_scripts.
Cheers,
Anders
--
Anders Darander
ChargeStorm AB / eStorm AB
More information about the Openembedded-core
mailing list