566 <arg value="${sf.brag.log}"/> |
566 <arg value="${sf.brag.log}"/> |
567 </exec> |
567 </exec> |
568 <!-- And copy the XSL so the output can be transformed by a browser --> |
568 <!-- And copy the XSL so the output can be transformed by a browser --> |
569 <copy file="${sf.common.config.dir}/tools/brag/brag.xsl" toDir="${build.log.dir}/summary/"/> |
569 <copy file="${sf.common.config.dir}/tools/brag/brag.xsl" toDir="${build.log.dir}/summary/"/> |
570 </target> |
570 </target> |
571 |
571 |
|
572 |
|
573 <target name="sf-rombuild"> |
|
574 <!-- TODO If ANT gets a better way to do conditions based on value then use it instead! --> |
|
575 <property name="sf.rombuild.dir" value="${build.drive}/sf/os/kernelhwsrv/kernel/eka/rombuild"/> |
|
576 |
|
577 <for list="${sf.spec.sbs.config}" delimiter="," param="sf.spec.sbs.config.variant"> |
|
578 <sequential> |
|
579 <propertyregex property="udeb" input="@{sf.spec.sbs.config.variant}" regexp="(armv5$|armv5\.|armv5_udeb)" select="\1"/> |
|
580 <propertyregex property="urel" input="@{sf.spec.sbs.config.variant}" regexp="(armv5$|armv5\.|armv5_urel)" select="\1"/> |
|
581 </sequential> |
|
582 </for> |
|
583 |
|
584 <condition property="sf.spec.sbs.config.expanded" value="udeb"> |
|
585 <and><isset property="udeb"/><not><isset property="urel"/></not></and> |
|
586 </condition> |
|
587 |
|
588 <condition property="sf.spec.sbs.config.expanded" value="urel"> |
|
589 <and><isset property="urel"/><not><isset property="udeb"/></not></and> |
|
590 </condition> |
|
591 |
|
592 <condition property="sf.spec.sbs.config.expanded" value="udeb,urel"> |
|
593 <and><isset property="udeb"/><isset property="urel"/></and> |
|
594 </condition> |
|
595 |
|
596 <if><isset property="sf.spec.sbs.config.expanded"/> |
|
597 <then> |
|
598 <echo message="INFO Found armv5, building ${sf.spec.sbs.config.expanded}"/> |
|
599 |
|
600 <for list="${sf.spec.referenceroms.list}" delimiter="," param="sf.spec.referenceroms.variant"> |
|
601 <sequential> |
|
602 <for list="${sf.spec.sbs.config.expanded}" delimiter="," param="sf.spec.sbs.config.expanded.i"> |
|
603 <sequential> |
|
604 <echo message="INFO Building textshell ROM variant @{sf.spec.sbs.config.expanded.i} @{sf.spec.referenceroms.variant}"/> |
|
605 <exec executable="cmd" dir="${sf.rombuild.dir}" failonerror="false" |
|
606 output="${build.log.dir}/ROM_@{sf.spec.referenceroms.variant}_@{sf.spec.sbs.config.expanded.i}_out.log" logError="true"> |
|
607 <arg value="/c"/> |
|
608 <arg value="rom --variant=@{sf.spec.referenceroms.variant} --inst=armv5 --build=@{sf.spec.sbs.config.expanded.i} --type=tshell"/> |
|
609 </exec> |
|
610 |
|
611 <if><available file="${sf.rombuild.dir}/ROMBUILD.LOG"/> |
|
612 <then> |
|
613 <move file="${sf.rombuild.dir}/ROMBUILD.LOG" tofile="${build.log.dir}/ROMBUILD_@{sf.spec.referenceroms.variant}_@{sf.spec.sbs.config.expanded.i}.log"/> |
|
614 </then> |
|
615 <else> |
|
616 <echo message="ERROR Failed to build @{sf.spec.sbs.config.expanded.i} ROM for @{sf.spec.referenceroms.variant} variant"/> |
|
617 </else> |
|
618 </if> |
|
619 </sequential> |
|
620 </for> |
|
621 </sequential> |
|
622 </for> |
|
623 |
|
624 <move todir="${build.drive}/epoc32/rom/" verbose="true" failonerror="false"> |
|
625 <fileset dir="${sf.rombuild.dir}"> |
|
626 <include name="**/*.IMG"/> |
|
627 </fileset> |
|
628 </move> |
|
629 </then> |
|
630 <else><echo message="INFO ROM Build requested but no valid build variants defined by sf.spec.sbs.config. Skipping."/></else> |
|
631 </if> |
|
632 </target> |
|
633 |
572 </project> |
634 </project> |
573 |
635 |