| 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 |
|
|---|
| 6 | ifdef UNIT_Extra
|
|---|
| 7 | $(error kBuild: The Extra unit was included twice!)
|
|---|
| 8 | endif
|
|---|
| 9 | UNIT_Extra = Extra
|
|---|
| 10 |
|
|---|
| 11 | #
|
|---|
| 12 | # Rules to enerate .sym 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).
|
|---|
| 16 | #
|
|---|
| 17 |
|
|---|
| 18 | define TOOL_BUILD_SYM_CMDS
|
|---|
| 19 | ifeq ($(ld_debug),split)
|
|---|
| 20 | $(QUIET)$(PATH_ROOT)/tools/bin/runmapsym.cmd \
|
|---|
| 21 | $(PATH_ROOT)/tools/bin/wmapsym.cmd $(outbase).map $(outbase).sym \
|
|---|
| 22 | 1>nul
|
|---|
| 23 | endif
|
|---|
| 24 | endef
|
|---|
| 25 |
|
|---|
| 26 | TOOL_GXX3OMF_LINK_DLL_OUTPUT_DEBUG += $(outbase).sym
|
|---|
| 27 | TOOL_GXX3OMF_LINK_DLL_CMDS += $(NL)$(TOOL_BUILD_SYM_CMDS)
|
|---|
| 28 |
|
|---|
| 29 | TOOL_GXX3OMF_LINK_PROGRAM_OUTPUT_DEBUG += $(outbase).sym
|
|---|
| 30 | TOOL_GXX3OMF_LINK_PROGRAM_CMDS += $(NL)$(TOOL_BUILD_SYM_CMDS)
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.