Closed Bug 550202 Opened 14 years ago Closed 14 years ago

Update x-platform build script to target arm-linux

Categories

(Tamarin Graveyard :: Build Config, defect)

ARM
Linux
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: brbaker, Unassigned)

Details

Attachments

(2 files, 1 obsolete file)

Need to update the x-platform build script so that we can target arm-linux compilation.
Flags: flashplayer-triage+
Flags: flashplayer-qrb?
Attached patch modify configure (obsolete) — Splinter Review
Asking Rick and TomD to look at the patch. I have tried it out and have successfully built the release shell and have run acceptance.

One issue that still exists, looking for some help, is that when --enable-debug is passed compilation fails, must be missing a simple switch somewhere...


Setup cross compilation on linux x86 host machine:
- Download a set of ARM Debian platform files, needed to prevent compiling and linking with the native x86 stuff on your x86 system
- Using CodeSourcery G++ Lite 2009q1-203:
    http://www.codesourcery.com/sgpp/lite/arm/portal/package4573/public/arm-none-linux-gnueabi/arm-2009q1-203-arm-none-linux-gnueabi.bin
- export the following env vars:
    >$ export ARM_CC_HOME=/home/build/CodeSourcery/Sourcery_G++_Lite
    >$ export AR=${ARM_CC_HOME}/bin/arm-none-linux-gnueabi-ar
    >$ export CC=${ARM_CC_HOME}/bin/arm-none-linux-gnueabi-gcc
    >$ export CXX=${ARM_CC_HOME}/bin/arm-none-linux-gnueabi-g++
    >$ export LD= ${ARM_CC_HOME}/bin/arm-none-linux-gnueabi-ld


>$ ../configure.py --enable-shell --enable-arm-fpu --target=arm-linux --enable-sys-root-dir=/usr/local/arm-linux/debian5
>$ make
Attachment #430315 - Flags: review?(rreitmai)
Attachment #430315 - Flags: review?(tomd)
If the patch is sound I will also modify the TODO with an actual bugzilla issue for the need to remove -Werror (configure.py:137)
patch from TomD

+ removes the need to remove -Werror, instead passes -Wno-cast-align 
+ defines --enable-arm-neon which will setup for -march=armv7-a and -mfpu-neon
+ --enable-arm-fpu will setup for -march=armv6 and -mfpu=vfp
Attachment #430315 - Attachment is obsolete: true
Attachment #430593 - Flags: review?(rreitmai)
Attachment #430315 - Flags: review?(tomd)
Attachment #430315 - Flags: review?(rreitmai)
Attachment #430593 - Flags: review?(rreitmai) → review+
- add arm detection to runtestBase
- clean up the arm-* skips so that windows-mobile, android and arm-linux all share the same skips
- cleaned up the skips that are NOT meant to be skipped in "arm-.*-deep" testing
Attachment #431081 - Flags: review?(dschaffe)
Attachment #431081 - Flags: review?(dschaffe) → review+
Pushed both patches:

tr-argo -> 3768:8d8d4a7eddd5
tr -> 3952:c3097b926d4d
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Flags: flashplayer-qrb? → flashplayer-qrb+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: