Changeset 39325 in vbox for trunk/src/VBox/Installer/linux
- Timestamp:
- Nov 16, 2011 10:00:12 AM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 74890
- Location:
- trunk/src/VBox/Installer/linux
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/linux/Makefile.include.footer
r36585 r39325 36 36 KFLAGS := -D__KERNEL__ -DMODULE $(MOD_DEFS) 37 37 ifeq ($(BUILD_TYPE),debug) 38 KFLAGS += -DDEBUG 38 KFLAGS += -DDEBUG -DDEBUG_$(subst $(subst _, ,_),_,$(USERNAME)) -DDEBUG_USERNAME=$(subst $(subst _, ,_),_,$(USERNAME)) 39 39 endif 40 40 -
trunk/src/VBox/Installer/linux/Makefile.include.header
r36585 r39325 76 76 $(warning Using BUILD_TYPE='$(BUILD_TYPE)' from the $(origin BUILD_TYPE).) 77 77 endif 78 endif 79 ifeq ($(USERNAME),) 80 USERNAME := noname 78 81 endif 79 82 -
trunk/src/VBox/Installer/linux/install.sh
r39223 r39325 443 443 echo "INSTALL_VER='$VERSION'" >> $CONFIG_DIR/$CONFIG 444 444 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 445 448 446 449 # Make kernel module -
trunk/src/VBox/Installer/linux/run-inst.sh
r39323 r39325 31 31 ARCH="_ARCH_" 32 32 INSTALLATION_VER="_VERSION_" 33 INSTALLATION_REV="_SVNREV_" 34 BUILD_TYPE="_BUILDTYPE_" 35 USERNAME="_USERNAME_" 33 36 UNINSTALL_SCRIPTS="_UNINSTALL_SCRIPTS_" 34 37 … … 273 276 link_into_fs "src" "/usr/src" 274 277 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 285 279 cat > "$CONFIG_DIR/$CONFIG" << EOF 286 280 # $PACKAGE installation record. … … 294 288 # Package version 295 289 INSTALL_VER='$INSTALLATION_VER' 290 INSTALL_REV='$INSTALLATION_REV' 291 # Build type and user name for logging purposes 292 BUILD_TYPE='$BUILD_TYPE' 293 USERNAME='$USERNAME' 296 294 EOF 295 296 # Install, set up and start init scripts 297 for 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 303 done 297 304 298 305 cp $ROUTINES $INSTALLATION_DIR
Note:
See TracChangeset
for help on using the changeset viewer.