VirtualBox

Changeset 23006 in vbox for trunk/src


Ignore:
Timestamp:
Sep 14, 2009 2:08:16 PM (15 years ago)
Author:
vboxsync
Message:

Additions/linux/installer: add debug symbols to the Linux Additions, second try

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/Makefile.kmk

    r22962 r23006  
    9393# All the bin files that go into the archives.
    9494#
    95 VBOX_LNX_ADD_INS_FILES := $(addprefix $(VBOX_LNX_ADD_INS_OUT_DIR)/,$(VBOX_LNX_ADD_STRIP_BIN) $(VBOX_LNX_ADD_STRIP_OBJ))
     95VBOX_LNX_ADD_DBG_SYM_FILES := $(addsuffix .dbgsym,$(VBOX_LNX_ADD_STRIP_BIN))
     96VBOX_LNX_ADD_INS_FILES := $(addprefix $(VBOX_LNX_ADD_INS_OUT_DIR)/,$(VBOX_LNX_ADD_STRIP_BIN) $(VBOX_LNX_ADD_STRIP_OBJ) $(VBOX_LNX_ADD_DBG_SYM_FILES))
    9697VBOX_LNX_ADD_INS_MODULES := $(addprefix $(VBOX_LNX_ADD_INS_OUT_DIR)/module/,$(VBOX_LNX_ADD_MODULES))
    9798
    9899# Cleanup of the the installer directory files
    99100OTHER_CLEAN += $(VBOX_LNX_ADD_INS_FILES)) $(VBOX_LNX_ADD_INS_MODULES)
     101
     102# pattern rule for copying the debug info from the VBOX_LNX_ADD_STRIP_BIN files to the installation directory
     103$(addprefix $(VBOX_LNX_ADD_INS_OUT_DIR)/,$(VBOX_LNX_ADD_DBG_SYM_FILES)): \
     104                $(VBOX_LNX_ADD_INS_OUT_DIR)/%.dbgsym : $(PATH_BIN)/additions/% | $$(dir $$@)
     105        $(call MSG_TOOL,copydbg,$<,$@)
     106        $(QUIET)objcopy --only-keep-debug $< $@
    100107
    101108# pattern rule for stripping and copying the VBOX_LNX_ADD_STRIP_BIN files to the installation directory
    102109$(addprefix $(VBOX_LNX_ADD_INS_OUT_DIR)/,$(VBOX_LNX_ADD_STRIP_BIN)): \
    103110                $(VBOX_LNX_ADD_INS_OUT_DIR)/% : $(PATH_BIN)/additions/% \
     111                $(VBOX_LNX_ADD_INS_OUT_DIR)/%.dbgsym \
    104112                | $$(dir $$@)
    105113        $(call MSG_INST_FILE,$<,$@)
    106114        $(QUIET)$(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
     115        $(QUIET)objcopy --add-gnu-debuglink=$(addsuffix .dbgsym,$@) $@
    107116
    108117# pattern rule for stripping and copying the VBOX_LNX_ADD_STRIP_OBJ files to the installation directory
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette