sl@0
|
1 |
#
|
sl@0
|
2 |
# Copyright (c) 2009 Symbian. All rights reserved.
|
sl@0
|
3 |
#
|
sl@0
|
4 |
|
sl@0
|
5 |
# macro for all the rules
|
sl@0
|
6 |
define rom
|
sl@0
|
7 |
|
sl@0
|
8 |
FINAL::
|
sl@0
|
9 |
ifeq ($(OSTYPE),unix)
|
sl@0
|
10 |
$(call startrule,rom) \
|
sl@0
|
11 |
echo "This is not supported currently"; \
|
sl@0
|
12 |
$(call endrule,rom)
|
sl@0
|
13 |
else
|
sl@0
|
14 |
$(call startrule,rom) \
|
sl@0
|
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 \
|
sl@0
|
16 |
$(call endrule,rom)
|
sl@0
|
17 |
endif
|
sl@0
|
18 |
|
sl@0
|
19 |
FINAL::
|
sl@0
|
20 |
$(call startrule,copy) \
|
sl@0
|
21 |
mv rom.oby $(EPOCROOT)/epoc32/rom/$(REE_TARGET)/$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG)_rom.oby; \
|
sl@0
|
22 |
mv ROMBUILD.LOG $(EPOCROOT)/epoc32/rom/$(REE_TARGET)/$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG)_ROMBUILD.LOG; \
|
sl@0
|
23 |
mv $(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG).img $(EPOCROOT)/epoc32/rom/$(REE_TARGET)_$(TYPE)_$(PLATFORM)_$(CFG).img; \
|
sl@0
|
24 |
$(call endrule,copy)
|
sl@0
|
25 |
|
sl@0
|
26 |
endef
|
sl@0
|
27 |
|
sl@0
|
28 |
# expand
|
sl@0
|
29 |
$(eval $(rom))
|
sl@0
|
30 |
|
sl@0
|
31 |
# The items produced by this FLM:
|
sl@0
|
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
|
sl@0
|
33 |
|
sl@0
|
34 |
## What targets -- declare the files produced here
|
sl@0
|
35 |
$(eval $(call whatmacro, $(RELEASEABLES)))
|
sl@0
|
36 |
## Clean up
|
sl@0
|
37 |
$(eval $(call GenerateStandardCleanTarget, $(RELEASEABLES)))
|
sl@0
|
38 |
|
sl@0
|
39 |
|
sl@0
|
40 |
|