[oe] Fwd: http://bugs.openembedded.org/show_bug.cgi?id=5485

Luke Kenneth Casson Leighton lkcl at lkcl.net
Sun Nov 21 03:00:41 UTC 2010


From: Luke Kenneth Casson Leighton <luke.leighton at gmail.com>
To: openembedded-devel at lists.openembedded.org
Date: Sat, 20 Nov 2010 22:09:50 +0000
Subject: http://bugs.openembedded.org/show_bug.cgi?id=5485
i'm preparing a bb recipe for google v8 (NOT as part of chromium) and
sadly v8 builds use scons.  after a hit-and-miss bit of
experimentation, cut/pasting do_compile from various places i got a
compile working, but then when the install failed for exactly the same
reasons as the compile i figured "fuck it" and looked for ways to copy
what OECONF_EXTRA does.  by modifying scons.bbclass to add optional
compile and optional install flags, the silly necessity to completely
replace do_compile and also do_install goes away.

the reason why do_compile had to be replaced is because the SConstruct
file for v8 does NOT import all environment variables: you have to add
an option "importenv = PATH,CC,CXX" etc. etc. which if you think about
it is a good way to do compilation as it means you no longer need to
do that SCONS_ENV_FIX trick, which doesn't work in this case _anyway_
because the google v8 developers decided in their infinite wisdom to
create a function def Build() rather than put env =
GetEnvironment(...) as a global variable.

ahh, the joys of having a build system in python, eh?

l.




More information about the Openembedded-devel mailing list