author | Ross Qin <ross.qin@nokia.com> |
Tue, 30 Nov 2010 14:05:41 +0800 | |
changeset 713 | 7b7f0409fc00 |
parent 674 | 37ee82a83d43 |
permissions | -rw-r--r-- |
625
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
1 |
# Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
2 |
# All rights reserved. |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
3 |
# This component and the accompanying materials are made available |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
4 |
# under the terms of the License "Eclipse Public License v1.0" |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
5 |
# which accompanies this distribution, and is available |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
6 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html". |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
7 |
# |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
8 |
# Initial Contributors: |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
9 |
# Nokia Corporation - initial contribution. |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
10 |
# |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
11 |
# Contributors: |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
12 |
# |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
13 |
# Description: |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
14 |
# |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
15 |
|
674 | 16 |
TOBLDINF:=$(dir $(subst :,,$(subst $(EPOCROOT)/,,$(COMPONENT_META)))) |
625
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
17 |
|
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
18 |
ifeq ($(ROMFILE_$(call sanitise,$(TOBLDINF)$(TARGET).$(REQUESTEDTARGETEXT))),) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
19 |
ROMFILE_$(call sanitise,$(TOBLDINF)$(TARGET).$(REQUESTEDTARGETEXT)):=1 |
674 | 20 |
ROMDIR:=$(EPOCROOT)/epoc32/rom/$(TOBLDINF) |
625
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
21 |
|
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
22 |
# Default values |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
23 |
ROMFILETYPE:=file |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
24 |
ROMFILE:=$(TARGET).$(REQUESTEDTARGETEXT) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
25 |
ROMPATH:=$(if $(TARGETPATH),$(TARGETPATH)/,sys/bin/) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
26 |
ROMDECORATIONS:= |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
27 |
ROMFILETYPE_RAM:=data |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
28 |
ROMFILE_RAM:=$(TARGET).$(REQUESTEDTARGETEXT) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
29 |
ROMPATH_RAM:=sys/bin/ |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
30 |
BUILDROMTARGET:=1 |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
31 |
ABIDIR:=MAIN |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
32 |
|
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
33 |
define DoRomSet |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
34 |
ifeq ($(call uppercase,$(TARGETTYPE)),LIB) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
35 |
BUILDROMTARGET:= |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
36 |
endif |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
37 |
|
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
38 |
ifeq ($(call uppercase,$(TARGETTYPE)),KEXT) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
39 |
ROMFILETYPE:=extension[MAGIC] |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
40 |
ABIDIR:=KMAIN |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
41 |
endif |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
42 |
ifeq ($(call uppercase,$(TARGETTYPE)),LDD) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
43 |
ROMFILETYPE:=device[MAGIC] |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
44 |
ABIDIR:=KMAIN |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
45 |
endif |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
46 |
ifeq ($(call uppercase,$(TARGETTYPE)),PDD) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
47 |
ROMFILETYPE:=device[MAGIC] |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
48 |
ABIDIR:=KMAIN |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
49 |
endif |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
50 |
ifeq ($(call uppercase,$(TARGETTYPE)),VAR) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
51 |
ROMFILETYPE:=variant[MAGIC] |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
52 |
ABIDIR:=KMAIN |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
53 |
endif |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
54 |
ifeq ($(call uppercase,$(TARGETTYPE)),KDLL) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
55 |
ABIDIR:=KMAIN |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
56 |
endif |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
57 |
|
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
58 |
ifneq ($(CALLDLLENTRYPOINTS),) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
59 |
ROMFILETYPE:=dll |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
60 |
endif |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
61 |
ifeq ($(ROMFILETYPE),primary) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
62 |
ABIDIR:=KMAIN |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
63 |
endif |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
64 |
endef |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
65 |
|
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
66 |
$(eval $(call DoRomSet)) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
67 |
|
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
68 |
ifneq ($(EPOCFIXEDPROCESS),) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
69 |
ROMDECORATIONS:=$(ROMDECORATIONS) fixed |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
70 |
endif |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
71 |
ifeq ($(PAGED),1) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
72 |
ROMDECORATIONS:=$(ROMDECORATIONS) paged |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
73 |
endif |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
74 |
ifeq ($(PAGED),0) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
75 |
ROMDECORATIONS:=$(ROMDECORATIONS) unpaged |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
76 |
endif |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
77 |
|
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
78 |
|
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
79 |
DATATEXT:= |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
80 |
ifeq ($(TESTCODE),TRUE) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
81 |
# Add 'TEST' to the .iby filename |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
82 |
ROMTEST:=test |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
83 |
ifeq ($(TEST_OPTION),BOTH) |
674 | 84 |
DATATEXT:="data=/epoc32/data/z/test/$(MODULE)/$(VARIANTPLATFORM).auto.bat test/$(VARIANTPLATFORM).auto.bat"\n"data=/epoc32/data/z/test/$(MODULE)/$(VARIANTPLATFORM).manual.bat test/$(VARIANTPLATFORM).manual.bat" |
625
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
85 |
else |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
86 |
ifneq ($(TEST_OPTION),NONE) |
674 | 87 |
DATATEXT:="data=/epoc32/data/z/test/$(MODULE)/$(VARIANTPLATFORM).$(TEST_OPTION).bat test/$(VARIANTPLATFORM).$(TEST_OPTION).bat" |
625
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
88 |
endif |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
89 |
endif |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
90 |
endif |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
91 |
|
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
92 |
# ROMTARGET |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
93 |
ifneq ($(ROMTARGET),) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
94 |
ifneq ($(words $(ROMTARGET)),1) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
95 |
ROMTARGETALL:=$(ROMTARGET) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
96 |
ROMTARGET:=$(word 1,$(ROMTARGET)) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
97 |
endif |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
98 |
|
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
99 |
ifeq ($(ROMTARGET),<none>) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
100 |
BUILDROMTARGET:= |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
101 |
else |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
102 |
ifneq ($(ROMTARGET),+) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
103 |
ifneq ($(notdir $(ROMTARGET)),) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
104 |
ROMFILE:=$(notdir $(ROMTARGET)) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
105 |
endif |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
106 |
ifneq ($(dir $(ROMTARGET)),./) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
107 |
ROMPATH:=$(dir $(ROMTARGET)) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
108 |
endif |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
109 |
endif |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
110 |
endif |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
111 |
endif |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
112 |
endif |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
113 |
|
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
114 |
ROMFILENAME:=$(ROMDIR)$(PLATFORM)$(ROMTEST).iby |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
115 |
|
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
116 |
# RAMTARGET |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
117 |
ifneq ($(RAMTARGET),) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
118 |
ROMDECORATIONS_RAM:=" attrib=r" |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
119 |
ifneq ($(RAMTARGET),+) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
120 |
ifneq ($(notdir $(RAMTARGET)),) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
121 |
ROMFILE_RAM:=$(notdir $(RAMTARGET)) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
122 |
endif |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
123 |
ifneq ($(dir $(RAMTARGET)),./) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
124 |
ROMPATH_RAM:=$(dir $(RAMTARGET)) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
125 |
endif |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
126 |
endif |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
127 |
endif |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
128 |
|
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
129 |
define BuildRomfileTarget |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
130 |
$(ALLTARGET)::ROMFILE |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
131 |
ROMFILE:: |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
132 |
$(call startrule,rombuild) \ |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
133 |
$(GNUMKDIR) -p $(ROMDIR) \ |
674 | 134 |
$(if $(ROMFILE_CREATED_$(TOBLDINF)),,&& echo -e "// $(subst $(EPOCROOT)/,,$(ROMFILENAME))\n//\n$(DATATEXT)" > $(ROMFILENAME)) \ |
625
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
135 |
$(if $(BUILDROMTARGET),&& echo "$(ROMFILETYPE)=/epoc32/release/##$(ABIDIR)##/##BUILD##/$(TARGET)$(if $(EXPLICITVERSION),{$(VERSIONHEX)},).$(REQUESTEDTARGETEXT) $(1)$(ROMDECORATIONS)" >> $(ROMFILENAME)) \ |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
136 |
$(if $(RAMTARGET),&& echo "$(ROMFILETYPE_RAM)=/epoc32/release/##$(ABIDIR)##/##BUILD##/$(TARGET)$(if $(EXPLICITVERSION),{$(VERSIONHEX)},).$(REQUESTEDTARGETEXT) $(ROMPATH_RAM)$(ROMFILE_RAM)$(ROMDECORATIONS_RAM)" >> $(ROMFILENAME)) \ |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
137 |
$(call endrule,buildromfiletarget) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
138 |
endef |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
139 |
|
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
140 |
# When VARIANTTYPE changes, romfile is finished, |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
141 |
# apart from if this is a new component...... |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
142 |
ifneq ($(PREVIOUSVARIANTTYPE),) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
143 |
ifneq ($(VARIANTTYPE),$(PREVIOUSVARIANTTYPE)) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
144 |
ifneq ($(ROMFILE_CREATED_$(TOBLDINF)),) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
145 |
ROMFILEFINISHED:=1 |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
146 |
else |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
147 |
ROMFILEFINISHED:= |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
148 |
endif |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
149 |
endif |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
150 |
endif |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
151 |
|
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
152 |
# When romfile is finished, don't continue to add to it |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
153 |
ifeq ($(ROMFILEFINISHED),) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
154 |
$(eval $(call BuildRomfileTarget,$(ROMPATH)$(ROMFILE))) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
155 |
endif |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
156 |
|
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
157 |
# Don't allow romfile to be recreated for every MMP |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
158 |
ifeq ($(ROMFILE_CREATED_$(TOBLDINF)),) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
159 |
ROMFILE_CREATED_$(TOBLDINF):=1 |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
160 |
endif |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
161 |
|
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
162 |
# Build other ROMTARGETs if there is more than one |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
163 |
ifneq ($(ROMTARGETALL),) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
164 |
RAMTARGET:= |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
165 |
$(foreach ROMTARGET,$(wordlist 2,$(words $(ROMTARGETALL)),$(ROMTARGETALL)),$(eval $(call BuildRomfileTarget,$(ROMTARGET)))) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
166 |
ROMTARGETALL:= |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
167 |
endif |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
168 |
|
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
169 |
# Keep track of variant type while romfile is being created |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
170 |
PREVIOUSVARIANTTYPE:=$(VARIANTTYPE) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
171 |
|
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
172 |
WHATRELEASE:=$(WHATRELEASE) $(ROMFILENAME) |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
173 |
|
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
590
diff
changeset
|
174 |