11 # Contributors: |
11 # Contributors: |
12 # |
12 # |
13 # Description: |
13 # Description: |
14 # |
14 # |
15 |
15 |
16 EPOC_ROOT:=$(patsubst %/,%,$(EPOCROOT)) |
16 TOBLDINF:=$(dir $(subst :,,$(subst $(EPOCROOT)/,,$(COMPONENT_META)))) |
17 TOBLDINF:=$(dir $(subst :,,$(subst $(EPOC_ROOT)/,,$(COMPONENT_META)))) |
|
18 |
17 |
19 ifeq ($(ROMFILE_$(call sanitise,$(TOBLDINF)$(TARGET).$(REQUESTEDTARGETEXT))),) |
18 ifeq ($(ROMFILE_$(call sanitise,$(TOBLDINF)$(TARGET).$(REQUESTEDTARGETEXT))),) |
20 ROMFILE_$(call sanitise,$(TOBLDINF)$(TARGET).$(REQUESTEDTARGETEXT)):=1 |
19 ROMFILE_$(call sanitise,$(TOBLDINF)$(TARGET).$(REQUESTEDTARGETEXT)):=1 |
21 ROMDIR:=$(EPOC_ROOT)/epoc32/rom/$(TOBLDINF) |
20 ROMDIR:=$(EPOCROOT)/epoc32/rom/$(TOBLDINF) |
22 |
21 |
23 # Default values |
22 # Default values |
24 ROMFILETYPE:=file |
23 ROMFILETYPE:=file |
25 ROMFILE:=$(TARGET).$(REQUESTEDTARGETEXT) |
24 ROMFILE:=$(TARGET).$(REQUESTEDTARGETEXT) |
26 ROMPATH:=$(if $(TARGETPATH),$(TARGETPATH)/,sys/bin/) |
25 ROMPATH:=$(if $(TARGETPATH),$(TARGETPATH)/,sys/bin/) |
80 DATATEXT:= |
79 DATATEXT:= |
81 ifeq ($(TESTCODE),TRUE) |
80 ifeq ($(TESTCODE),TRUE) |
82 # Add 'TEST' to the .iby filename |
81 # Add 'TEST' to the .iby filename |
83 ROMTEST:=test |
82 ROMTEST:=test |
84 ifeq ($(TEST_OPTION),BOTH) |
83 ifeq ($(TEST_OPTION),BOTH) |
85 DATATEXT:="data=/epoc32/data/z/test/$(MODULE)/$(VARIANTPLATFORM).auto.bat test/$(MODULE).auto.bat"\n"data=/epoc32/data/z/test/$(MODULE)/$(VARIANTPLATFORM).manual.bat test/$(MODULE).manual.bat" |
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" |
86 else |
85 else |
87 ifneq ($(TEST_OPTION),NONE) |
86 ifneq ($(TEST_OPTION),NONE) |
88 DATATEXT:="data=/epoc32/data/z/test/$(MODULE)/$(VARIANTPLATFORM).$(TEST_OPTION).bat test/$(MODULE).$(TEST_OPTION).bat" |
87 DATATEXT:="data=/epoc32/data/z/test/$(MODULE)/$(VARIANTPLATFORM).$(TEST_OPTION).bat test/$(VARIANTPLATFORM).$(TEST_OPTION).bat" |
89 endif |
88 endif |
90 endif |
89 endif |
91 endif |
90 endif |
92 |
91 |
93 # ROMTARGET |
92 # ROMTARGET |
130 define BuildRomfileTarget |
129 define BuildRomfileTarget |
131 $(ALLTARGET)::ROMFILE |
130 $(ALLTARGET)::ROMFILE |
132 ROMFILE:: |
131 ROMFILE:: |
133 $(call startrule,rombuild) \ |
132 $(call startrule,rombuild) \ |
134 $(GNUMKDIR) -p $(ROMDIR) \ |
133 $(GNUMKDIR) -p $(ROMDIR) \ |
135 $(if $(ROMFILE_CREATED_$(TOBLDINF)),,&& echo -e "// $(subst $(EPOC_ROOT)/,,$(ROMFILENAME))\n//\n$(DATATEXT)" > $(ROMFILENAME)) \ |
134 $(if $(ROMFILE_CREATED_$(TOBLDINF)),,&& echo -e "// $(subst $(EPOCROOT)/,,$(ROMFILENAME))\n//\n$(DATATEXT)" > $(ROMFILENAME)) \ |
136 $(if $(BUILDROMTARGET),&& echo "$(ROMFILETYPE)=/epoc32/release/##$(ABIDIR)##/##BUILD##/$(TARGET)$(if $(EXPLICITVERSION),{$(VERSIONHEX)},).$(REQUESTEDTARGETEXT) $(1)$(ROMDECORATIONS)" >> $(ROMFILENAME)) \ |
135 $(if $(BUILDROMTARGET),&& echo "$(ROMFILETYPE)=/epoc32/release/##$(ABIDIR)##/##BUILD##/$(TARGET)$(if $(EXPLICITVERSION),{$(VERSIONHEX)},).$(REQUESTEDTARGETEXT) $(1)$(ROMDECORATIONS)" >> $(ROMFILENAME)) \ |
137 $(if $(RAMTARGET),&& echo "$(ROMFILETYPE_RAM)=/epoc32/release/##$(ABIDIR)##/##BUILD##/$(TARGET)$(if $(EXPLICITVERSION),{$(VERSIONHEX)},).$(REQUESTEDTARGETEXT) $(ROMPATH_RAM)$(ROMFILE_RAM)$(ROMDECORATIONS_RAM)" >> $(ROMFILENAME)) \ |
136 $(if $(RAMTARGET),&& echo "$(ROMFILETYPE_RAM)=/epoc32/release/##$(ABIDIR)##/##BUILD##/$(TARGET)$(if $(EXPLICITVERSION),{$(VERSIONHEX)},).$(REQUESTEDTARGETEXT) $(ROMPATH_RAM)$(ROMFILE_RAM)$(ROMDECORATIONS_RAM)" >> $(ROMFILENAME)) \ |
138 $(call endrule,buildromfiletarget) |
137 $(call endrule,buildromfiletarget) |
139 endef |
138 endef |
140 |
139 |