From d2cb3b199a1e8bda46f9e1c275bfe4b8209f1614 Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 27 Jul 2010 12:39:19 +0000 Subject: [PATCH] Add instructions for 32-bit sim build git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2814 42af7a65-404d-4744-a932-0658087f49c3 --- Documentation/NXGraphicsSubsystem.html | 3 ++- TODO | 10 ++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Documentation/NXGraphicsSubsystem.html b/Documentation/NXGraphicsSubsystem.html index 382ca06dccf..55bf92f182a 100644 --- a/Documentation/NXGraphicsSubsystem.html +++ b/Documentation/NXGraphicsSubsystem.html @@ -12,7 +12,7 @@

NX Graphics Subsystem

-

Last Updated: April 23, 2010

+

Last Updated: July 27, 2010

@@ -2746,6 +2746,7 @@ make
  • The sim target itself is broken under 64-bit Linux. This is because the sim target is based upon some assembly language setjmp/longjmp logic that only works on 32-bit systems. +

    NOTE: There is a workaround in this case; you can build for 32-bit execution on a 64-bit machine by adding -m3 to the CFLAGS and -m32 -m elf_i38 to the LDFLAGS.

  • diff --git a/TODO b/TODO index b50d2254966..849a2158622 100644 --- a/TODO +++ b/TODO @@ -1,4 +1,4 @@ -NuttX TODO List (Last updated July 19, 2010) +NuttX TODO List (Last updated July 27, 2010) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (5) Task/Scheduler (sched/) @@ -582,7 +582,13 @@ o Linux/Cywgin simulation (arch/sim) to pointers on a 64-bit host. 2) up_setjmp.S does not build Status: Open - Priority: Medium and increasing (as 32-bit hosts gradually disappear) + Priority: Medium and increasing (as 32-bit hosts gradually disappear). NOTE + is it possible to work-around this limitation by building the sim + target for 32-bit operation on a 64-bit platform. Simply modify the + Make.defs file in the appropriate places so that: + + ARCHCPUFLAGS = -m32 -fno-builtin + LDFLAGS += -m32 -m elf_i386 o ARM (arch/arm/) ^^^^^^^^^^^^^^^