Subversion Repositories DevTools

Rev

Rev 335 | Rev 5709 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 335 Rev 4488
Line 219... Line 219...
219
        $(cmdfile) -ko$(ld_cmdfile) "$($(notdir $(SHBASE))_ld)"
219
        $(cmdfile) -ko$(ld_cmdfile) "$($(notdir $(SHBASE))_ld)"
220
endef
220
endef
221
 
221
 
222
ifndef LEAVETMP
222
ifndef LEAVETMP
223
define ld_post
223
define ld_post
-
 
224
        $(call MCRFLASHEND,$@,$(BINDIR)/${SHBASE}.map,$($(notdir $(SHBASE))_FlashEnd))
224
        @$(rm) -f $(ld_cmdfile)
225
        @$(rm) -f $(ld_cmdfile)
225
endef
226
endef
226
else
227
else
227
define ld_post
228
define ld_post
-
 
229
        $(call MCRFLASHEND,$@,$(BINDIR)/${SHBASE}.map,$($(notdir $(SHBASE))_FlashEnd))
228
endef
230
endef
229
endif
231
endif
230
 
232
 
231
#..     Create Library dependency file
233
#..     Create Library dependency file
232
#
234
#
Line 234... Line 236...
234
        $(XX_PRE) export M16C_LIB; \
236
        $(XX_PRE) export M16C_LIB; \
235
                M16C_LIB="$(subst $(space),;,$(LIBDIRS))"; \
237
                M16C_LIB="$(subst $(space),;,$(LIBDIRS))"; \
236
	$(cmdfile) -ko$(@) "$($(DPLIST))";
238
	$(cmdfile) -ko$(@) "$($(DPLIST))";
237
endef
239
endef
238
 
240
 
-
 
241
#
-
 
242
#   Use the mcrflashend.pl tool to verify that the flash memory has not overflowed
-
 
243
#       $1      - Name of the build target
-
 
244
#       $2      - Map file
-
 
245
#       $3      - The first invalid flash address in hex
-
 
246
#
-
 
247
ifdef TOOL_MCRFLASHEND
-
 
248
define MCRFLASHEND
-
 
249
        $(XX_PRE)$(GBE_PERL) $(TOOL_MCRFLASHEND) -n "$1" -m "$2" -e "$3" 
-
 
250
endef
-
 
251
else
-
 
252
define MCRFLASHEND
-
 
253
endef
-
 
254
endif
239
 
255
 
240
#
256
#
241
#   Use the LMC utility to convert an .X30 file into a .mot file
257
#   Use the LMC utility to convert an .X30 file into a .mot file
242
#       $1      - Name of target .bin file
258
#       $1      - Name of target .bin file
243
#
259
#