Building v8 with Makefile

149 views
Skip to first unread message

madana gopal

unread,
Nov 11, 2018, 9:30:27 PM11/11/18
to v8-users
Hi Team,

I am trying to prepare a build for v8 in yocto build system. I saw v8 is using ninja. Can we generate Makefile for v8 instead of ninja file?.

If so, please share the steps.

Thanks.

Regards,
Madan

Jakob Kummerow

unread,
Nov 12, 2018, 1:53:39 PM11/12/18
to v8-u...@googlegroups.com
Ninja is the only officially supported build system for V8.

I don't know the requirements of the yocto build system. If all you need is a wrapper, it should be very straightforward to create a two-liner Makefile that invokes the GN/ninja based build.

If you need to replace GN/ninja entirely, you'll have to create a complete Makefile yourself. I'm not aware of any existing tool to do this directly; however the Node.js project maintains GYP files for V8, and one can generate Makefiles from those, so that path might be worth looking into. It's also certainly possible to create a tool yourself that generates Makefiles from GN files, but that's probably quite a bit of work.


--
--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to the Google Groups "v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

madana gopal

unread,
Nov 12, 2018, 10:39:35 PM11/12/18
to v8-users
Thanks Jakob for the clarification. We will see the possibility and update.

Regards,
Madan

madana gopal

unread,
Nov 13, 2018, 12:18:45 AM11/13/18
to v8-users
Hi,

Also, v8 is using its own toolchain for arm,mips  etc, and we have toolchain already present as part of our yocto build system.So, do we have any way to make v8 build to point to our own toolchain?. please clarify.

Thanks.

Regards,
Madan

Jakob Kummerow

unread,
Nov 13, 2018, 2:37:23 PM11/13/18
to v8-u...@googlegroups.com
You can put:

is_clang = false
use_sysroot = false

into args.gn to make the V8 build use your system toolchain and libraries instead of the bundled ones.

--

Peter Schow

unread,
Nov 13, 2018, 2:50:03 PM11/13/18
to v8-u...@googlegroups.com
Node has been built with yocto, correct? You may want to see see how
the Node yocto recipe(s) work, and see if someone has already done the
heavy-lifting for V8.

madana gopal

unread,
Nov 13, 2018, 7:05:06 PM11/13/18
to v8-users
Thanks for details Jakob and Peter.
 
Node has been using Makefile mechanism. I am interested to use ninja mechanism here and trying it out first. With use_sysroot = false, is it possible to explicitly mention alternate sysroot path as part of ninja build? Please let me know.

Thanks.

Regards,
Madan 

 
Reply all
Reply to author
Forward
0 new messages