buildframework/helium/sf/java/imaker/src/com/nokia/helium/imaker/ant/engines/build_imaker_roms_signing.mk.ftl
author wbernard
Wed, 16 Jun 2010 16:51:40 +0300
changeset 588 c7c26511138f
parent 587 85df38eb4012
permissions -rw-r--r--
helium-10.0.0-bc45d50958fe
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     1
<#--
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     2
============================================================================ 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     3
Name        : build_imaker_roms_signing.mk.ftl 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     4
Part of     : Helium 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     5
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     6
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     7
All rights reserved.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     8
This component and the accompanying materials are made available
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     9
under the terms of the License "Eclipse Public License v1.0"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    10
which accompanies this distribution, and is available
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    11
at the URL "http://www.eclipse.org/legal/epl-v10.html".
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    12
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    13
Initial Contributors:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    14
Nokia Corporation - initial contribution.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    15
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    16
Contributors:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    17
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    18
Description:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    19
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    20
============================================================================
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    21
-->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    22
############################################################################
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    23
# Makefile generated by the emake engine 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    24
############################################################################
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    25
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    26
# Are we using linux?
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    27
USE_UNIX  := $(if $(findstring cmd.exe,$(SHELL))$(findstring mingw,$(call lcase,$(MAKE))),0,1)
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    28
EXECUTOR_CLASS = com.nokia.helium.imaker.utils.ParallelExecutor
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    29
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    30
# Path conversion macro
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    31
true        = $(if $(filter-out 0,$(subst 0,0 ,$1)),1)
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    32
iif         = $(if $(call true,$1),$2,$3)
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    33
lcase       = $(call tr,$([A-Z]),$([a-z]),$1)
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    34
pathconv    = $(call iif,$(USE_UNIX),$(subst \,/,$1),$(subst /,\,$1))
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    35
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    36
# Some variables
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    37
ROMBUILD_TEMPDIR=$(call pathconv,epoc32/rombuild/temp)
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    38
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    39
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    40
$(ROMBUILD_TEMPDIR)/:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    41
	-mkdir $(ROMBUILD_TEMPDIR)
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    42
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    43
<#assign cid=0>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    44
<#assign iid=0>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    45
<#assign deps="">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    46
<#list cmdSets as cmds>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    47
<#assign configdeps="">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    48
<#assign configimagedeps="">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    49
<#assign firstiid=iid>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    50
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    51
#pragma runlocal
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    52
configuration_${cid}-dir: $(ROMBUILD_TEMPDIR)/config_${iid} <#if (cid>0)>configuration_${cid-1}</#if> <#if (cmds?size == 0)>;</#if>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    53
	$(call iif,$(USE_UNIX),touch,@echo off >) $(ROMBUILD_TEMPDIR)/command-dir-list-${cid}.txt
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    54
    <#list cmds as cmd>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    55
        <#assign cmdline="">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    56
        <#list cmd.getArguments() as arg>
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    57
            <#assign cmdline="${cmdline} \"${arg}\"">
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    58
        </#list>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    59
        <#assign vars=cmd.getVariables()>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    60
        <#list vars?keys as var>
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    61
            <#assign cmdline="${cmdline} \"${var}=${vars[var]}\"">
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    62
        </#list>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    63
	@echo $(call iif,$(USE_UNIX),,cmd /c) ${cmd.getCommand()} WORKDIR=$(ROMBUILD_TEMPDIR)/config_${iid} ${cmdline} ${cmd.getTarget()}-dir >> $(ROMBUILD_TEMPDIR)/command-dir-list-${cid}.txt 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    64
<#assign iid=iid+1>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    65
    </#list>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    66
	-@${java_home}/bin/java -cp "${java_utils_classpath}" $(EXECUTOR_CLASS) $(ROMBUILD_TEMPDIR)/command-dir-list-${cid}.txt
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    67
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    68
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    69
<#assign iid=firstiid>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    70
    <#list cmds as cmd>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    71
        <#assign cmdline="">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    72
        <#list cmd.getArguments() as arg>
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    73
            <#assign cmdline="${cmdline} \"${arg}\"">
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    74
        </#list>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    75
        <#assign vars=cmd.getVariables()>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    76
        <#list vars?keys as var>
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    77
            <#assign cmdline="${cmdline} \"${var}=${vars[var]}\"">
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    78
        </#list>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    79
#
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    80
#  Building configuration ${iid}.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    81
#
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    82
$(ROMBUILD_TEMPDIR)/config_${iid}/: $(ROMBUILD_TEMPDIR)
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    83
	-mkdir $(call pathconv,$(ROMBUILD_TEMPDIR)/config_${iid})
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    84
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    85
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    86
rom_${iid}-image: configuration_${cid}-dir
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    87
	@echo -- ${cmd.getCmdLine()}-image
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    88
	-@perl -e "print '++ Started at '.localtime().\"\n\""
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    89
	-@python -c "import time; print '+++ HiRes Start ',time.time();"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    90
	-${cmd.getCommand()} WORKDIR=$(ROMBUILD_TEMPDIR)/config_${iid} ${cmdline} ${cmd.getTarget()}-image
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    91
	-@python -c "import time; print '+++ HiRes End ',time.time();"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    92
	-@perl -e "print '++ Finished at '.localtime().\"\n\""
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    93
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    94
<#assign configimagedeps="${configimagedeps} rom_${iid}-image">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    95
<#assign iid=iid+1>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    96
    </#list>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    97
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    98
configuration_${cid}-image: ${configimagedeps} ;
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    99
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   100
<#assign iid=firstiid>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   101
#pragma runlocal
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   102
configuration_${cid}-e2flash: configuration_${cid}-image
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   103
	$(call iif,$(USE_UNIX),touch,@echo off >) $(ROMBUILD_TEMPDIR)/command-e2flash-list-${cid}.txt
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   104
    <#list cmds as cmd>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   105
        <#assign cmdline="">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   106
        <#list cmd.getArguments() as arg>
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   107
            <#assign cmdline="${cmdline} \"${arg}\"">
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   108
        </#list>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   109
        <#assign vars=cmd.getVariables()>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   110
        <#list vars?keys as var>
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   111
            <#assign cmdline="${cmdline} \"${var}=${vars[var]}\"">
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   112
        </#list>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   113
	@echo $(call iif,$(USE_UNIX),,cmd /c) ${cmd.getCommand()} WORKDIR=$(ROMBUILD_TEMPDIR)/config_${iid} ${cmdline} ${cmd.getTarget()}-e2flash >> $(ROMBUILD_TEMPDIR)/command-e2flash-list-${cid}.txt 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   114
<#assign iid=iid+1>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   115
    </#list>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   116
	 -@${java_home}/bin/java -cp "${java_utils_classpath}" $(EXECUTOR_CLASS) $(ROMBUILD_TEMPDIR)/command-e2flash-list-${cid}.txt
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   117
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   118
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   119
configuration_${cid}: <#if (cid>0)>configuration_${cid-1}</#if> configuration_${cid}-dir configuration_${cid}-image configuration_${cid}-e2flash ;
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   120
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   121
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   122
<#assign deps="configuration_${cid}">        
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   123
<#assign cid=cid+1>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   124
</#list>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   125
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   126
all: ${deps} ;
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   127
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   128
# End of config