source: branches/branch590/Extra.kmk@ 621

Last change on this file since 621 was 554, checked in by Gregg Young, 9 years ago

Fix typo add comment

  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1## @file
2# Extra definitions for kBuild implemented using a UNIT so that some things
3# can be overriden/hacked at the right time.
4#
5
6ifdef UNIT_Extra
7 $(error kBuild: The Extra unit was included twice!)
8endif
9UNIT_Extra = Extra
10
11#
12# Rules to generate .sym/.xqs files from .map files. (This works only for the GXX3OMF
13# tool so far. A proper solution would be to extend GXX3OMF but something
14# doesn't work right in kBuild, e.g. _COMPILE_*_OUTPUT and friends are not
15# inherited). This note is from the odin SVN and doesn't appear to be true
16# any more.
17#
18
19define TOOL_BUILD_SYM_CMDS
20#ifeq ($(ld_debug),split)
21 $(QUIET)$(if $(PATH_SDK_OS2TK4),PATH="$(PATH_SDK_OS2TK4)/bin;$(PATH);") \
22 $(PATH_ROOT)/tools/runmapsym.cmd $(PATH_ROOT)/tools/wmapsym.cmd \
23 $(outbase).map $(outbase).sym \
24 1>nul
25#endif
26endef
27
28define TOOL_BUILD_XQS_CMDS
29#ifeq ($(ld_debug),split)
30 $(QUIET)mapxqs.exe $(outbase).map -o $(outbase).xqs \
31 1>nul
32#endif
33endef
34
35TOOL_GXX3OMF_LINK_DLL_OUTPUT += $(outbase).sym
36TOOL_GXX3OMF_LINK_DLL_OUTPUT += $(outbase).xqs
37TOOL_GXX3OMF_LINK_DLL_CMDS += $(TOOL_BUILD_SYM_CMDS)
38TOOL_GXX3OMF_LINK_DLL_CMDS += $(TOOL_BUILD_XQS_CMDS)
39
40TOOL_GCC3OMF_LINK_PROGRAM_OUTPUT += $(outbase).sym
41TOOL_GCC3OMF_LINK_PROGRAM_OUTPUT += $(outbase).xqs
42TOOL_GCC3OMF_LINK_PROGRAM_CMDS += $(TOOL_BUILD_SYM_CMDS)
43TOOL_GCC3OMF_LINK_PROGRAM_CMDS += $(TOOL_BUILD_XQS_CMDS)
Note: See TracBrowser for help on using the repository browser.