os/persistentdata/persistentstorage/centralrepository/test/multirofs/group/multirofsbuild.bat
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 @rem
     2 @rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 @rem All rights reserved.
     4 @rem This component and the accompanying materials are made available
     5 @rem under the terms of "Eclipse Public License v1.0"
     6 @rem which accompanies this distribution, and is available
     7 @rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 @rem
     9 @rem Initial Contributors:
    10 @rem Nokia Corporation - initial contribution.
    11 @rem
    12 @rem Contributors:
    13 @rem
    14 @rem Description:
    15 @rem
    16 
    17 :: Build a UREL NAND2 TECHVIEW TEST ROM for H4
    18 :: PRE: -CBR TOOL is installed to allow retrieving base_e32 source to build nandloader
    19 ::	-This batch file should be run from epoc32\rom\tools
    20 ::
    21 :: POST:- \PREQ2112_NAND_LOADER contains the sys$rom.bin
    22 ::      - \PREQ2112_ROM_IMG	contains the core.img and rofs1.img
    23 ::	- Copy all these files to the MMC card
    24 ::
    25 
    26 REM As we are introducing additional ROFS layer on top of the default in NAND2 we need to update the following
    27 REM * epoc32/rom/h4hrp/quicknand.bat
    28 REM * epoc32/rom/h4hrp/unistore2/estartnandcomp.txt
    29 
    30 REM -----------------------Build NANDLoader--------------------------
    31 rmdir /S /Q PREQ2112_NAND_LOADER
    32 
    33 mkdir PREQ2112_NAND_LOADER
    34 cd PREQ2112_NAND_LOADER
    35 
    36 call getsource -o -i . base_e32
    37 pushd src\cedar\generic\base\e32\rombuild\
    38 call rom -v=h4hrp -i=armv5 -b=urel -t=nandloader -m=_NAND2 --name=sys$rom.bin
    39 copy /Y sys$rom.bin ..\..\..\..\..\..\sys$rom.bin
    40 
    41 :: Back to PREQ1818_NAND_LOADER dir
    42 popd
    43 :: Remove base source
    44 rd /s /q src
    45 
    46 :: Back to main group dir
    47 cd ..
    48 
    49 REM ----------------------Build the Core and ROFS1 image--------------------
    50 
    51 rmdir /S /Q PREQ2112_ROM_IMG
    52 mkdir PREQ2112_ROM_IMG
    53 cd PREQ2112_ROM_IMG
    54 
    55 call buildrom -D_NAND2 -D_FULL_DEBUG h4hrp techview centreptesthelper.iby preq2112_rofs1.iby
    56 
    57 rename h4hrp_001.techview.nand.IMG core.img
    58 rename h4hrp_001.techview.nand.rofs.img rofs1.img
    59 
    60 REM --------------------- Build the ROFS2 image------------------------------
    61 cd ..
    62 rmdir /S /Q PREQ2112_ROFS2_IMG
    63 mkdir PREQ2112_ROFS2_IMG
    64 cd PREQ2112_ROFS2_IMG
    65 call rofsbuild ../../include/PREQ2112_ROFS2.iby
    66