|
1 # |
|
2 # Copyright (c) 2009-2010 Symbian. All rights reserved. |
|
3 # All rights reserved. |
|
4 # This component and the accompanying materials are made available |
|
5 # under the terms of "Eclipse Public License v1.0" |
|
6 # which accompanies this distribution, and is available |
|
7 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 |
|
9 # macro for all the rules |
|
10 define rom |
|
11 |
|
12 FINAL:: |
|
13 ifeq ($(OSTYPE),unix) |
|
14 $(call startrule,rom) \ |
|
15 echo "This is not supported currently"; \ |
|
16 $(call endrule,rom) |
|
17 else |
|
18 $(call startrule,rom) \ |
|
19 $(PERL) $(EPOCROOT)/sf/os/kernelhwsrv/kernel/eka/rombuild/rom_sbs.pl --variant=$(REE_TARGET) --inst=$(REE_PLATFORM) --build=$(CFG) --type=$(TYPE) --clean $(ROM_OPTIONS) --name=$(FULL_ROM_NAME).img \ |
|
20 $(call endrule,rom) |
|
21 endif |
|
22 |
|
23 $(call startrule,copy) \ |
|
24 mv rom.oby $(EPOCROOT)/epoc32/rom/$(REE_TARGET)/$(FULL_ROM_NAME)_rom.oby; \ |
|
25 mv ROMBUILD.LOG $(EPOCROOT)/epoc32/rom/$(REE_TARGET)/$(FULL_ROM_NAME)_ROMBUILD.LOG; \ |
|
26 mv $(FULL_ROM_NAME).img $(EPOCROOT)/epoc32/rom/$(FULL_ROM_NAME).img; \ |
|
27 $(call endrule,copy) |
|
28 |
|
29 endef |
|
30 |
|
31 # expand |
|
32 ROM_OPTIONS:=$(foreach macro,$(REE_DEFINES), -d $(macro)) |
|
33 REE_PLATFORM:=$(PLATFORM) |
|
34 ifneq ($(findstring SMP,$(REE_PLATFORM)),) |
|
35 # SMP target, so select underlying instruction set |
|
36 ROM_OPTIONS:=$(ROM_OPTIONS) --xabi=$(PLATFORM) |
|
37 REE_PLATFORM:=$(subst SMP,,$(REE_PLATFORM)) |
|
38 endif |
|
39 |
|
40 ifeq "$(ROM_NAME)" "" |
|
41 ROM_NAME:=$(REE_TARGET) |
|
42 endif |
|
43 FULL_ROM_NAME:=$(ROM_NAME)_$(TYPE)_$(PLATFORM)_$(CFG) |
|
44 |
|
45 $(eval $(rom)) |
|
46 |
|
47 # The items produced by this FLM: |
|
48 RELEASEABLES:=$(EPOCROOT)/epoc32/rom/$(REE_TARGET)/$(FULL_ROM_NAME)_rom.oby $(EPOCROOT)/epoc32/rom/$(REE_TARGET)/$(FULL_ROM_NAME)_ROMBUILD.LOG $(EPOCROOT)/epoc32/rom/$(FULL_ROM_NAME).img |
|
49 |
|
50 ## What targets -- declare the files produced here |
|
51 $(eval $(call whatmacro, $(RELEASEABLES))) |
|
52 ## Clean up |
|
53 $(eval $(call GenerateStandardCleanTarget, $(RELEASEABLES))) |
|
54 |
|
55 |
|
56 |