os/persistentdata/persistentstorage/centralrepository/test/multirofs/group/multirofsbuild.bat
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/persistentdata/persistentstorage/centralrepository/test/multirofs/group/multirofsbuild.bat	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,66 @@
     1.4 +@rem
     1.5 +@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +@rem All rights reserved.
     1.7 +@rem This component and the accompanying materials are made available
     1.8 +@rem under the terms of "Eclipse Public License v1.0"
     1.9 +@rem which accompanies this distribution, and is available
    1.10 +@rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +@rem
    1.12 +@rem Initial Contributors:
    1.13 +@rem Nokia Corporation - initial contribution.
    1.14 +@rem
    1.15 +@rem Contributors:
    1.16 +@rem
    1.17 +@rem Description:
    1.18 +@rem
    1.19 +
    1.20 +:: Build a UREL NAND2 TECHVIEW TEST ROM for H4
    1.21 +:: PRE: -CBR TOOL is installed to allow retrieving base_e32 source to build nandloader
    1.22 +::	-This batch file should be run from epoc32\rom\tools
    1.23 +::
    1.24 +:: POST:- \PREQ2112_NAND_LOADER contains the sys$rom.bin
    1.25 +::      - \PREQ2112_ROM_IMG	contains the core.img and rofs1.img
    1.26 +::	- Copy all these files to the MMC card
    1.27 +::
    1.28 +
    1.29 +REM As we are introducing additional ROFS layer on top of the default in NAND2 we need to update the following
    1.30 +REM * epoc32/rom/h4hrp/quicknand.bat
    1.31 +REM * epoc32/rom/h4hrp/unistore2/estartnandcomp.txt
    1.32 +
    1.33 +REM -----------------------Build NANDLoader--------------------------
    1.34 +rmdir /S /Q PREQ2112_NAND_LOADER
    1.35 +
    1.36 +mkdir PREQ2112_NAND_LOADER
    1.37 +cd PREQ2112_NAND_LOADER
    1.38 +
    1.39 +call getsource -o -i . base_e32
    1.40 +pushd src\cedar\generic\base\e32\rombuild\
    1.41 +call rom -v=h4hrp -i=armv5 -b=urel -t=nandloader -m=_NAND2 --name=sys$rom.bin
    1.42 +copy /Y sys$rom.bin ..\..\..\..\..\..\sys$rom.bin
    1.43 +
    1.44 +:: Back to PREQ1818_NAND_LOADER dir
    1.45 +popd
    1.46 +:: Remove base source
    1.47 +rd /s /q src
    1.48 +
    1.49 +:: Back to main group dir
    1.50 +cd ..
    1.51 +
    1.52 +REM ----------------------Build the Core and ROFS1 image--------------------
    1.53 +
    1.54 +rmdir /S /Q PREQ2112_ROM_IMG
    1.55 +mkdir PREQ2112_ROM_IMG
    1.56 +cd PREQ2112_ROM_IMG
    1.57 +
    1.58 +call buildrom -D_NAND2 -D_FULL_DEBUG h4hrp techview centreptesthelper.iby preq2112_rofs1.iby
    1.59 +
    1.60 +rename h4hrp_001.techview.nand.IMG core.img
    1.61 +rename h4hrp_001.techview.nand.rofs.img rofs1.img
    1.62 +
    1.63 +REM --------------------- Build the ROFS2 image------------------------------
    1.64 +cd ..
    1.65 +rmdir /S /Q PREQ2112_ROFS2_IMG
    1.66 +mkdir PREQ2112_ROFS2_IMG
    1.67 +cd PREQ2112_ROFS2_IMG
    1.68 +call rofsbuild ../../include/PREQ2112_ROFS2.iby
    1.69 +