VirtualBox

Changeset 39325 in vbox for trunk/src/VBox/Installer/linux


Ignore:
Timestamp:
Nov 16, 2011 10:00:12 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
74890
Message:

Installers/linux: restore debug logging in kernel modules.

Location:
trunk/src/VBox/Installer/linux
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/Makefile.include.footer

    r36585 r39325  
    3636KFLAGS   := -D__KERNEL__ -DMODULE $(MOD_DEFS)
    3737ifeq ($(BUILD_TYPE),debug)
    38  KFLAGS  += -DDEBUG
     38 KFLAGS  += -DDEBUG -DDEBUG_$(subst $(subst _, ,_),_,$(USERNAME)) -DDEBUG_USERNAME=$(subst $(subst _, ,_),_,$(USERNAME))
    3939endif
    4040
  • trunk/src/VBox/Installer/linux/Makefile.include.header

    r36585 r39325  
    7676  $(warning Using BUILD_TYPE='$(BUILD_TYPE)' from the $(origin BUILD_TYPE).)
    7777 endif
     78endif
     79ifeq ($(USERNAME),)
     80 USERNAME := noname
    7881endif
    7982
  • trunk/src/VBox/Installer/linux/install.sh

    r39223 r39325  
    443443    echo "INSTALL_VER='$VERSION'" >> $CONFIG_DIR/$CONFIG
    444444    echo "INSTALL_REV='$SVNREV'" >> $CONFIG_DIR/$CONFIG
     445    echo "# Build type and user name for logging purposes" >> $CONFIG_DIR/$CONFIG
     446    echo "BUILD_TYPE='$BUILD_TYPE'" >> $CONFIG_DIR/$CONFIG
     447    echo "USERNAME='$USERNAME'" >> $CONFIG_DIR/$CONFIG
    445448
    446449    # Make kernel module
  • trunk/src/VBox/Installer/linux/run-inst.sh

    r39323 r39325  
    3131ARCH="_ARCH_"
    3232INSTALLATION_VER="_VERSION_"
     33INSTALLATION_REV="_SVNREV_"
     34BUILD_TYPE="_BUILDTYPE_"
     35USERNAME="_USERNAME_"
    3336UNINSTALL_SCRIPTS="_UNINSTALL_SCRIPTS_"
    3437
     
    273276link_into_fs "src" "/usr/src"
    274277
    275 # Install, set up and start init scripts
    276 for i in "$INSTALLATION_DIR/init/"*; do
    277   if test -r "$i"; then
    278     install_init_script "$i" "`basename "$i"`"
    279     test -n "$DO_SETUP" && setup_init_script "`basename "$i"`" 1>&2
    280     start_init_script "`basename "$i"`"
    281   fi
    282 done
    283 
    284 # Remember our installation configuration
     278# Remember our installation configuration before we call any init scripts
    285279cat > "$CONFIG_DIR/$CONFIG" << EOF
    286280# $PACKAGE installation record.
     
    294288# Package version
    295289INSTALL_VER='$INSTALLATION_VER'
     290INSTALL_REV='$INSTALLATION_REV'
     291# Build type and user name for logging purposes
     292BUILD_TYPE='$BUILD_TYPE'
     293USERNAME='$USERNAME'
    296294EOF
     295
     296# Install, set up and start init scripts
     297for i in "$INSTALLATION_DIR/init/"*; do
     298  if test -r "$i"; then
     299    install_init_script "$i" "`basename "$i"`"
     300    test -n "$DO_SETUP" && setup_init_script "`basename "$i"`" 1>&2
     301    start_init_script "`basename "$i"`"
     302  fi
     303done
    297304
    298305cp $ROUTINES $INSTALLATION_DIR
Note: See TracChangeset for help on using the changeset viewer.

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