|
1 # |
|
2 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 # All rights reserved. |
|
4 # This component and the accompanying materials are made available |
|
5 # under the terms of the License "Symbian Foundation License v1.0" |
|
6 # which accompanies this distribution, and is available |
|
7 # at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
8 # |
|
9 # Initial Contributors: |
|
10 # Nokia Corporation - initial contribution. |
|
11 # |
|
12 # Contributors: |
|
13 # |
|
14 # Description: iMaker ROFS4 image configuration |
|
15 # |
|
16 |
|
17 |
|
18 |
|
19 ############################################################################### |
|
20 # ___ ___ ___ ___ _ _ |
|
21 # | _ \/ _ \| __/ __| | | | |
|
22 # | / (_) | _|\__ \ |_ _| |
|
23 # |_|_\\___/|_| |___/ |_| |
|
24 # |
|
25 |
|
26 ROFS4_TITLE = ROFS4 |
|
27 ROFS4_DIR = $(WORKDIR)/rofs4 |
|
28 ROFS4_NAME = $(NAME) |
|
29 ROFS4_PREFIX = $(ROFS4_DIR)/$(ROFS4_NAME) |
|
30 ROFS4_IDIR = |
|
31 ROFS4_HBY = |
|
32 ROFS4_OBY = |
|
33 ROFS4_OPT = |
|
34 ROFS4_MSTOBY = $(ROFS4_PREFIX)_rofs4_master.oby |
|
35 ROFS4_HEADER = |
|
36 ROFS4_INLINE = |
|
37 ROFS4_FOOTER = |
|
38 ROFS4_TIME = $(DAY)/$(MONTH)/$(YEAR) |
|
39 |
|
40 ROFS4_OBYGEN = |
|
41 |
|
42 ROFS4_VERSION = $(CORE_VERSION) |
|
43 |
|
44 ROFS4_IMG = $(ROFS4_PREFIX).rofs4.img |
|
45 ROFS4_LOG = $(ROFS4_PREFIX).rofs4.log |
|
46 ROFS4_OUTOBY = $(ROFS4_PREFIX).rofs4.oby |
|
47 ROFS4_SYM = $(ROFS4_PREFIX).rofs4.symbol |
|
48 |
|
49 ROFS4_PLUGINLOG = $(ROFS4_PREFIX)_rofs4_bldromplugin.log |
|
50 ROFS4_PAGEFILE = $(ODP_PAGEFILE) |
|
51 ROFS4_UDEBFILE = $(TRACE_UDEBFILE) |
|
52 |
|
53 ROFS4_ICHKLOG = $(ROFS4_PREFIX)_rofs4_imgcheck.log |
|
54 ROFS4_ICHKOPT = $(IMGCHK_OPT) |
|
55 ROFS4_ICHKIMG = $(ROFS4_IMG) $(ROFS2_ICHKIMG) |
|
56 |
|
57 ROFS4_I2FDIR = $(ROFS4_DIR)/img2file |
|
58 |
|
59 #============================================================================== |
|
60 |
|
61 define ROFS4_MSTOBYINFO |
|
62 $(BLDROM_HDRINFO) |
|
63 |
|
64 ROM_IMAGE 0 non-xip size=0x00000000 |
|
65 ROM_IMAGE 1 dummy1 non-xip size=$(ROFS_MAXSIZE) |
|
66 ROM_IMAGE 2 dummy2 non-xip size=$(ROFS_MAXSIZE) |
|
67 ROM_IMAGE 3 dummy3 non-xip size=$(ROFS_MAXSIZE) |
|
68 ROM_IMAGE 4 rofs4 non-xip size=$(ROFS_MAXSIZE) |
|
69 ROM_IMAGE 5 dummy5 non-xip size=$(ROFS_MAXSIZE) |
|
70 ROM_IMAGE 6 dummy6 non-xip size=$(ROFS_MAXSIZE) |
|
71 |
|
72 $(BLDROM_PLUGINFO) |
|
73 |
|
74 // ROFS4 header |
|
75 // |
|
76 $(ROFS4_HDRINFO) |
|
77 |
|
78 ROM_IMAGE[4] { |
|
79 $(call ODP_CODEINFO,4) |
|
80 $(BLR.ROFS4.OBY) |
|
81 $(ROFS4_INLINE) |
|
82 $(ROFS4_FOOTERINFO) |
|
83 } |
|
84 endef |
|
85 |
|
86 define ROFS4_HDRINFO |
|
87 $(DEFINE) _IMAGE_WORKDIR $(ROFS4_DIR) |
|
88 $(call mac2cppdef,$(BLR.ROFS4.OPT)) |
|
89 $(BLR.ROFS4.HBY) |
|
90 $(ROFS4_HEADER) |
|
91 endef |
|
92 |
|
93 define ROFS4_FOOTERINFO |
|
94 $(if $(ROFS4_TIME),time=$(ROFS4_TIME)) |
|
95 $(ROFS4_FOOTER) |
|
96 endef |
|
97 |
|
98 #============================================================================== |
|
99 |
|
100 CLEAN_ROFS4FILE =\ |
|
101 del | "$(ROFS4_MSTOBY)" |\ |
|
102 del | $(call getgenfiles,$(ROFS4_OBYGEN)) |
|
103 |
|
104 BUILD_ROFS4FILE =\ |
|
105 echo-q | Generating file(s) for $(ROFS4_TITLE) image creation |\ |
|
106 write | $(ROFS4_MSTOBY) | $(call def2str,$(ROFS4_MSTOBYINFO)) |\ |
|
107 $(ROFS4_OBYGEN) |
|
108 |
|
109 |
|
110 ############################################################################### |
|
111 # ROFS4 pre |
|
112 |
|
113 CLEAN_ROFS4PRE = $(CLEAN_ROFS4FILE) |
|
114 BUILD_ROFS4PRE =\ |
|
115 mkcd | $(ROFS4_DIR) |\ |
|
116 $(BUILD_ROFS4FILE) |
|
117 |
|
118 #============================================================================== |
|
119 # ROFS4 build |
|
120 |
|
121 BLR.ROFS4.IDIR = $(call dir2inc,$(ROFS4_IDIR) $(call iif,$(USE_FEATVAR),,$(FEATVAR_IDIR))) |
|
122 BLR.ROFS4.HBY = $(call includeiby,$(IMAGE_HBY) $(ROFS4_HBY)) |
|
123 BLR.ROFS4.OBY = $(call includeiby,$(ROFS4_OBY)) |
|
124 BLR.ROFS4.OPT = $(ROFS4_OPT) $(if $(filter 4,$(USE_PAGEDCODE)),$(if $(ODP_CODECOMP),-c$(ODP_CODECOMP))) -o$(ROFS4_NAME).img $(BLDROPT) |
|
125 BLR.ROFS4.POST = $(call iif,$(KEEPTEMP),,del | $(ROFS4_PREFIX).???) |
|
126 |
|
127 CLEAN_ROFS4 = $(CLEAN_BLDROM) |
|
128 BUILD_ROFS4 = $(BUILD_BLDROM) |
|
129 |
|
130 #============================================================================== |
|
131 # ROFS4 post |
|
132 |
|
133 CLEAN_ROFS4POST = $(CLEAN_IMGCHK) | $(CLEAN_MAKSYMROFS) |
|
134 BUILD_ROFS4POST =\ |
|
135 $(call iif,$(USE_IMGCHK),$(BUILD_IMGCHK) |)\ |
|
136 $(call iif,$(USE_SYMGEN),$(BUILD_MAKSYMROFS)) |
|
137 |
|
138 #============================================================================== |
|
139 |
|
140 SOS.ROFS4.STEPS = $(call iif,$(USE_ROFS4),$(call iif,$(SKIPPRE),,ROFS4PRE) $(call iif,$(SKIPBLD),,ROFS4) $(call iif,$(SKIPPOST),,ROFS4POST)) |
|
141 ALL.ROFS4.STEPS = $(SOS.ROFS4.STEPS) |
|
142 |
|
143 |
|
144 ############################################################################### |
|
145 # Targets |
|
146 |
|
147 .PHONY: rofs4 rofs4-all rofs4-image rofs4-pre rofs4-check rofs4-symbol rofs4-i2file |
|
148 |
|
149 rofs4 rofs4-% : IMAGE_TYPE = ROFS4 |
|
150 rofs4-all : USE_SYMGEN = 1 |
|
151 |
|
152 rofs4 rofs4-all: ;@$(call IMAKER,$$(ALL.ROFS4.STEPS)) |
|
153 rofs4-image : ;@$(call IMAKER,$$(SOS.ROFS4.STEPS)) |
|
154 |
|
155 rofs4-pre : ;@$(call IMAKER,ROFS4PRE) |
|
156 rofs4-check : ;@$(call IMAKER,IMGCHK) |
|
157 rofs4-symbol : ;@$(call IMAKER,MAKSYMROFS) |
|
158 |
|
159 rofs4-i2file : USE_ROFS = 4 |
|
160 rofs4-i2file : ;@$(call IMAKER,VARIANTI2F) |
|
161 |
|
162 |
|
163 # END OF IMAKER_ROFS4.MK |