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