author | Mike Kinghan <mikek@symbian.org> |
Thu, 25 Nov 2010 14:35:45 +0000 | |
branch | GCC_SURGE |
changeset 305 | 1ba12ef4ef89 |
parent 304 | 65c392e2638d |
permissions | -rw-r--r-- |
99
6e5f9f6173bc
re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
1 |
# |
6e5f9f6173bc
re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
2 |
# Copyright (c) 2009 Symbian. All rights reserved. |
6e5f9f6173bc
re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
3 |
# |
6e5f9f6173bc
re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
4 |
|
303
9b85206a602c
We need a way to pass flags to rombuilds in Raptor via extension flm interfaces, so that the CPP pass
Mike Kinghan <mikek@symbian.org>
parents:
205
diff
changeset
|
5 |
ifdef ROM_DEFS |
9b85206a602c
We need a way to pass flags to rombuilds in Raptor via extension flm interfaces, so that the CPP pass
Mike Kinghan <mikek@symbian.org>
parents:
205
diff
changeset
|
6 |
ROMBUILD_FLAGS := --define="$(ROM_DEFS)" |
9b85206a602c
We need a way to pass flags to rombuilds in Raptor via extension flm interfaces, so that the CPP pass
Mike Kinghan <mikek@symbian.org>
parents:
205
diff
changeset
|
7 |
endif |
9b85206a602c
We need a way to pass flags to rombuilds in Raptor via extension flm interfaces, so that the CPP pass
Mike Kinghan <mikek@symbian.org>
parents:
205
diff
changeset
|
8 |
|
304
65c392e2638d
Use the portable rom builder romnibus.pl for Windows as well as Linux hosts.
Mike Kinghan <mikek@symbian.org>
parents:
303
diff
changeset
|
9 |
rombuilder := $(EPOCROOT)/epoc32/rom/tools/romnibus.pl |
205
0b74fa7370f0
Support rom building under Linux, using the FCL/interim/sftools/linux_build/ tools
Mike Kinghan <mikek@symbian.org>
parents:
99
diff
changeset
|
10 |
|
99
6e5f9f6173bc
re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
11 |
# macro for all the rules |
6e5f9f6173bc
re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
12 |
define rom |
6e5f9f6173bc
re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
13 |
|
6e5f9f6173bc
re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
14 |
FINAL:: |
6e5f9f6173bc
re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
15 |
$(call startrule,rom) \ |
305
1ba12ef4ef89
Enhance the base/rom extension to generate the symbol file of the rom built.
Mike Kinghan <mikek@symbian.org>
parents:
304
diff
changeset
|
16 |
$(PERL) $(rombuilder) $(ROMBUILD_FLAGS) --symbol --variant=$(REE_TARGET) --inst=$(PLATFORM) --build=$(CFG) --type=$(TYPE) --clean --name=$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG).img \ |
99
6e5f9f6173bc
re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
17 |
$(call endrule,rom) |
6e5f9f6173bc
re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
18 |
|
6e5f9f6173bc
re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
19 |
FINAL:: |
6e5f9f6173bc
re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
20 |
$(call startrule,copy) \ |
6e5f9f6173bc
re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
21 |
mv rom.oby $(EPOCROOT)/epoc32/rom/$(REE_TARGET)/$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG)_rom.oby; \ |
6e5f9f6173bc
re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
22 |
mv ROMBUILD.LOG $(EPOCROOT)/epoc32/rom/$(REE_TARGET)/$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG)_ROMBUILD.LOG; \ |
6e5f9f6173bc
re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
23 |
mv $(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG).img $(EPOCROOT)/epoc32/rom/$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG).img; \ |
305
1ba12ef4ef89
Enhance the base/rom extension to generate the symbol file of the rom built.
Mike Kinghan <mikek@symbian.org>
parents:
304
diff
changeset
|
24 |
mv $(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG).symbol $(EPOCROOT)/epoc32/rom/$(REE_TARGET)/$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG).symbol; \ |
99
6e5f9f6173bc
re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
25 |
$(call endrule,copy) |
6e5f9f6173bc
re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
26 |
|
6e5f9f6173bc
re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
27 |
endef |
6e5f9f6173bc
re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
28 |
|
6e5f9f6173bc
re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
29 |
# expand |
6e5f9f6173bc
re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
30 |
$(eval $(rom)) |
6e5f9f6173bc
re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
31 |
|
6e5f9f6173bc
re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
32 |
# The items produced by this FLM: |
6e5f9f6173bc
re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
33 |
RELEASEABLES:=$(EPOCROOT)/epoc32/rom/$(REE_TARGET)/$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG)_rom.oby $(EPOCROOT)/epoc32/rom/$(REE_TARGET)/$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG)_ROMBUILD.LOG $(EPOCROOT)/epoc32/rom/$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG).img |
6e5f9f6173bc
re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
34 |
|
6e5f9f6173bc
re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
35 |
## What targets -- declare the files produced here |
6e5f9f6173bc
re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
36 |
$(eval $(call whatmacro, $(RELEASEABLES))) |
6e5f9f6173bc
re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
37 |
## Clean up |
6e5f9f6173bc
re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
38 |
$(eval $(call GenerateStandardCleanTarget, $(RELEASEABLES))) |
6e5f9f6173bc
re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
39 |
|
6e5f9f6173bc
re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
40 |
|
6e5f9f6173bc
re-apply changes to support syborg rom
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
41 |