author | William Roberts <williamr@symbian.org> |
Fri, 03 Sep 2010 14:54:26 +0100 | |
changeset 260 | a1a318fd91af |
parent 214 | aa7a21cbc82b |
child 205 | 0b74fa7370f0 |
permissions | -rw-r--r-- |
214
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
1 |
# |
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
2 |
# Copyright (c) 2009 Symbian. All rights reserved. |
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
3 |
# |
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
4 |
|
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
5 |
# macro for all the rules |
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
6 |
define rom |
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
7 |
|
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
8 |
FINAL:: |
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
9 |
ifeq ($(OSTYPE),unix) |
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
10 |
$(call startrule,rom) \ |
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
11 |
echo "This is not supported currently"; \ |
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
12 |
$(call endrule,rom) |
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
13 |
else |
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
14 |
$(call startrule,rom) \ |
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
15 |
$(PERL) $(EPOCROOT)/sf/os/kernelhwsrv/kernel/eka/rombuild/rom_sbs.pl --variant=$(REE_TARGET) --inst=$(PLATFORM) --build=$(CFG) --type=$(TYPE) --clean --name=$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG).img \ |
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
16 |
$(call endrule,rom) |
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
17 |
endif |
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
18 |
|
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
19 |
FINAL:: |
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
20 |
$(call startrule,copy) \ |
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
21 |
mv rom.oby $(EPOCROOT)/epoc32/rom/$(REE_TARGET)/$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG)_rom.oby; \ |
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
22 |
mv ROMBUILD.LOG $(EPOCROOT)/epoc32/rom/$(REE_TARGET)/$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG)_ROMBUILD.LOG; \ |
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
23 |
mv $(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG).img $(EPOCROOT)/epoc32/rom/$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG).img; \ |
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
24 |
$(call endrule,copy) |
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
25 |
|
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
26 |
endef |
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
27 |
|
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
28 |
# expand |
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
29 |
$(eval $(rom)) |
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
30 |
|
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
31 |
# The items produced by this FLM: |
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
32 |
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 |
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
33 |
|
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
34 |
## What targets -- declare the files produced here |
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
35 |
$(eval $(call whatmacro, $(RELEASEABLES))) |
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
36 |
## Clean up |
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
37 |
$(eval $(call GenerateStandardCleanTarget, $(RELEASEABLES))) |
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
38 |
|
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
39 |
|
aa7a21cbc82b
Really supply rom.flm and friends (missed from previous commit)
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
40 |