# HG changeset patch # User Shabe Razvi # Date 1268757289 0 # Node ID 20147f9352da19e61b12a37e2e79e11dcd31ef54 # Parent d14e8ee6e64a41bfa7eba4bd0846fd701c57280e Add downloadkit functionality to PDK_Raptor, to allow download of required zips from the job itself. diff -r d14e8ee6e64a -r 20147f9352da PDK_Raptor/config.xml --- a/PDK_Raptor/config.xml Mon Mar 15 18:05:35 2010 +0000 +++ b/PDK_Raptor/config.xml Tue Mar 16 16:34:49 2010 +0000 @@ -12,6 +12,9 @@ false + + false + @@ -25,14 +28,39 @@ M: + KIT_VERSION + Version of the Bill of Materials (BOM), tools and prebuilt binaries to download/build e.g. +<li>2.0.2 +<li>3.0.h + + + + DOWNLOAD_KIT + This will download the Bill of Materials (BOM), tools and prebuilt binaries from the web. Select if - +<li>You havnt downloaded these archives already +<li>You're not sure if you have the correct archives + false + + RELEASE_ZIP_LOCATION - Location of <a href="http://developer.symbian.org/main/tools_and_kits/">release zipfiles</a> e.g. -<li>build_BOM.zip -<li>tools_epoc.zip - + Location of <a href="http://developer.symbian.org/main/tools_and_kits/">release zipfiles</a>. +<li>If you're downloading the kit (above), then archives will be stored in this location - and can be reused later +<li>If you have the kit downloaded already, then this is its location on disk + + SRC_LOCATION + How to get source for building the Platform - +<li>BOM - download source direct from <a href="https://developer.symbian.org/oss">web</a> using downloaded Bill Of Materials +<li>ZIPFILES - unpack source zips such as src_oss_os.zip from specified location on disk + + + BOM + ZIPFILES + + + REBUILD_TOOLS Tick this if you want to rebuild "TOOLS" target as well @@ -59,18 +87,6 @@ - - SRC_LOCATION - How to get src for building the Platform. -<li>BOM - download source direct from <a href="https://developer.symbian.org/oss">web</a> using downloaded Bill Of Materials -<li>ZIPFILES - unpack source zips such as src_oss_os.zip from specified location on disk - - - BOM - ZIPFILES - - - LEGACY_BLDMEFIRST Tick this if building older Symbian^2 PDKs. e.g. 2.0.d or earlier. @@ -83,8 +99,9 @@ HG_PASSWORD - Enter your Mercurial symbian developer web password <i>(required for download of packages from BOM, not needed when using source zip packages)</i> -<br> + Enter your symbian developer web password <i>(required for any downloading of packages from BOM)</i> +<br> +Note: Please be aware that your password will be displayed in <b>cleartext</b> in the top of the console log @@ -111,16 +128,33 @@ + + - master - false + true false false true + @ECHO OFF +IF "%DOWNLOAD_KIT%"=="false" EXIT 0 +IF "%SRC_LOCATION%"=="BOM" SET DO_SRC_DOWNLOAD=--nosrc +IF NOT EXIST C:\Symbian\utilities\.hg GOTO CLONE +hg pull --update -R C:\Symbian\utilities +GOTO DOWNLOADKIT +:CLONE +hg clone https://developer.symbian.org/oss/MCL/utilities/ C:\Symbian\utilities +:DOWNLOADKIT +mkdir %RELEASE_ZIP_LOCATION% +cd /d %RELEASE_ZIP_LOCATION% +@ECHO ON +C:\Symbian\utilities\downloadkit\downloadkit.py --nowinscw --noarmv5 --nounzip --progress %DO_SRC_DOWNLOAD% %KIT_VERSION% --username=%HG_USERNAME% --password=%HG_PASSWORD% +exit 0 + + %BUILD_DRIVE% cd\ mkdir build_%JOB_NAME%.%BUILD_NUMBER%\tmp @@ -178,7 +212,7 @@ echo "You must enter a UserName and Password when using the BOM option" exit 1 :HG_OK -\tmp\utilities\clone_packages\clone_all_packages.pl -packagelist \build_info\logs\BOM\build-info.xml -username %HG_USERNAME% -password %HG_PASSWORD% -retries=7 +perl \tmp\utilities\clone_packages\clone_all_packages.pl -packagelist \build_info\logs\BOM\build-info.xml -username %HG_USERNAME% -password %HG_PASSWORD% -retries=7 IF %LEGACY_BLDMEFIRST% == true exit @@ -209,7 +243,7 @@ cmd /c sbs EXPORT %TARGET% --ignore-os-detection --export-only -b %SUBST_DRIVE%\sf\os\devicesrv\devicesrv_pub\common_platform_security_definitions_api\group\bld.inf cmd /c sbs EXPORT %TARGET% --ignore-os-detection --export-only -b %SUBST_DRIVE%\sf\os\devicesrv\commonservices\commonengine\group\bld.inf cmd /c sbs EXPORT %TARGET% --ignore-os-detection --export-only -b %SUBST_DRIVE%\sf\mw\web\web_plat\browser_platform_api\group\bld.inf -cmd /c sbs EXPORT %TARGET% --ignore-os-detection --export-only -b %SUBST_DRIVE%\sf\tools\homescreentools\dtdinstaller\group\bld.inf +cmd /c sbs EXPORT %TARGET% --ignore-os-detection --export-only -b %SUBST_DRIVE%\sf\app\homescreentools\dtdinstaller\group\bld.inf IF %LEGACY_BLDMEFIRST% == true exit