Changes between Version 7 and Version 8 of ArmLinuxGhc


Ignore:
Timestamp:
Jan 8, 2007 8:38:46 PM (7 years ago)
Author:
guest
Comment:

started recording maemo 2.x build procedure

Legend:

Unmodified
Added
Removed
Modified
  • ArmLinuxGhc

    v7 v8  
    107107(5) make TEST_HC=ghc # for a longer test 
    108108 
     109= Step By Step Porting to Maemo 2.0 = 
    109110 
     111{{{ 
     112T & H 
     113 
     114wget http://www.haskell.org/ghc/dist/6.6/ghc-6.6-src.tar.bz2 
     115tar -xvjf ghc-6.6-src.tar.bz2 
     116cd ghc-6.6 
     117}}} 
     118 
     119{{{ 
     120T 
     121 
     122./configure --enable-hc-boot --enable-hc-boot-unregisterised --srcdir=. 
     123}}} 
     124 
     125 
     126{{{ 
     127H 
     128 
     129./configure --srcdir=. 
     130}}} 
     131 
     132Create H/mk/build.mk, with the following contents: 
     133 
     134{{{ 
     135H 
     136 
     137GhcUnregisterised = YES 
     138GhcLibHcOpts = -O -fvia-C -keep-hc-files 
     139GhcRtsHcOpts = -keep-hc-files 
     140GhcLibWays = 
     141SplitObjs = NO 
     142GhcWithNativeCodeGen = NO 
     143GhcWithInterpreter = NO 
     144GhcStage1HcOpts = -O 
     145GhcStage2HcOpts = -O -fvia-C -keep-hc-files 
     146SRC_HC_OPTS += -H32m 
     147GhcBootLibs = YES 
     148}}} 
     149 
     150Change Target* and TARGET* variables in H/mk/config.mk 
     151 
     152{{{ 
     153H 
     154 
     155TARGETPLATFORM                  = arm-unknown-linux 
     156 
     157TargetPlatform_CPP              = arm_unknown_linux 
     158TargetArch_CPP                  = arm 
     159 
     160arm_unknown_linux_TARGET       = 1 
     161arm_TARGET_ARCH      = 1 
     162}}} 
     163 
     164Copy T/ghc/includes/ghcautoconf.h, T/ghc/includes/DerivedConstants.h, and T/ghc/includes/GHCConstants.h to H/ghc/includes. Note that we are building on the host machine, using the target machine's configuration files. This is so that the intermediate C files generated here will be suitable for compiling on the target system. 
     165 
     166Touch the generated configuration files, just to make sure they don't get replaced during the build: 
     167 
     168{{{ 
     169H 
     170 
     171$ cd H/ghc/includes 
     172$ touch ghcautoconf.h DerivedConstants.h GHCConstants.h mkDerivedConstants.c 
     173$ touch mkDerivedConstantsHdr mkDerivedConstants.o mkGHCConstants mkGHCConstants.o 
     174}}}