Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Issue 11722003: Add Makefile options to build for the Raspberry Pi (armv7=0, arm_fpu=fvp2). (Closed)

Created:
7 years, 11 months ago by luismreis
Modified:
7 years, 11 months ago
Reviewers:
Yang, danno, Jakob Kummerow
CC:
v8-dev
Base URL:
git://github.com/v8/v8.git@master
Visibility:
Public.

Description

Add Makefile options to build for the Raspberry Pi (armv7=0, arm_fpu=vfp2). With these Makefile changes, it is possible to build V8 on the Raspberry Pi with the following make invocation: make native armv7=false vfp3=off hardfp=on disassembler=on console=readline snapshot=on gdbjit=on strictaliasing=off R=danno@chromium.org BUG= Committed: https://code.google.com/p/v8/source/detail?r=13297

Patch Set 1 #

Total comments: 1

Patch Set 2 : Redefine arm_fpu=vfp3 if compiling with both vfp2=on and vfp3=on. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -2 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
M Makefile View 1 2 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
luismreis
7 years, 11 months ago (2012-12-29 14:58:46 UTC) #1
danno
Adding Yang and Jakob to look at ARM VFP flags and build file changes, respectively.
7 years, 11 months ago (2013-01-02 09:06:38 UTC) #2
Yang
some comments. https://codereview.chromium.org/11722003/diff/1/Makefile File Makefile (right): https://codereview.chromium.org/11722003/diff/1/Makefile#newcode100 Makefile:100: GYPFLAGS += -Dv8_can_use_vfp3_instructions=true I suggest adding -Darm_fpu=vfp3 ...
7 years, 11 months ago (2013-01-02 09:41:19 UTC) #3
luismreis
Hi, Added the -Darm_fpu=vfp3. I've started a build with this options (vfp2=on vfp3=on) and it ...
7 years, 11 months ago (2013-01-02 11:44:24 UTC) #4
Jakob Kummerow
LGTM. > a vfp3 build make invocation should be just: > > make native disassembler=on ...
7 years, 11 months ago (2013-01-02 16:30:28 UTC) #5
luismreis
Thanks a lot for the tips! The default compiler on the standard raspberry installation is ...
7 years, 11 months ago (2013-01-02 17:24:17 UTC) #6
Yang
On 2013/01/02 17:24:17, luismreis wrote: > Thanks a lot for the tips! > > The ...
7 years, 11 months ago (2013-01-03 08:55:33 UTC) #7
luismreis
7 years, 11 months ago (2013-01-03 14:47:49 UTC) #8
Message was sent while issue was closed.
Just as a follow up:

GCC 4.7 works perfectly fine without the strict aliasing option.

Current make invocation:
make arm.release armv7=false vfp3=off hardfp=on

On 2013/01/02 16:30:28, Jakob wrote:
> LGTM.
> 
> > a vfp3 build make invocation should be just:
> > 
> > make native disassembler=on console=readline snapshot=on gdbjit=on
> > strictaliasing=off
> 
> disassembler=on is only useful for debugging (--print-code and friends), it is
> not required for regular use.
> snapshot=on is the default, no need to specify it.
> gdbjit=on is only useful for debugging with GDB, but "make native" produces a
> Release-mode binary, so you won't have much fun GDB'ing that anyway.
> strictaliasing=off is a workaround for buggy compilers (GCC-4.5), it is not
> usually required. Especially for ARM, you should use a more recent compiler
> anyway (4.7+), as they produce much better code.
> For more details, see http://code.google.com/p/v8/wiki/BuildingWithGYP.
> 
> Our build system is designed so that "make arm.release" or "make arm.debug" is
> usually all you need.

Powered by Google App Engine
This is Rietveld 408576698