Changeset 89370 in vbox
- Timestamp:
- May 28, 2021 7:24:37 PM (3 years ago)
- Location:
- trunk/src/VBox/HostDrivers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c
r89368 r89370 93 93 #define VBoxDrvLinuxIOCtl RT_CONCAT(VBoxDrvLinuxIOCtl_,VBoxDrvLinuxVersion) 94 94 95 /* Once externally provided, this string will be printed into kernel log on 96 * module start together with the rest of versioning information. */ 97 #ifndef VBOX_EXTRA_VERSION_STRING 98 # define VBOX_EXTRA_VERSION_STRING "" 99 #endif 95 100 96 101 … … 361 366 LogFlow(("VBoxDrv::ModuleInit returning %#x\n", rc)); 362 367 printk(KERN_DEBUG "vboxdrv: Successfully loaded version " 363 VBOX_VERSION_STRING " (interface " RT_XSTR(SUPDRV_IOC_VERSION) ")\n"); 368 VBOX_VERSION_STRING " r" RT_XSTR(VBOX_SVN_REV) 369 VBOX_EXTRA_VERSION_STRING 370 " (interface " RT_XSTR(SUPDRV_IOC_VERSION) ")\n"); 364 371 return rc; 365 372 } -
trunk/src/VBox/HostDrivers/linux/export_modules.sh
r85386 r89370 32 32 # What this script does: 33 33 usage_msg="\ 34 Usage: `basename ${0}` --file <path>|--folder <path> [--without-hardening] 34 Usage: `basename ${0}` --file <path>|--folder <path> \ 35 [--override-svn-rev <rev>] [--extra-version-string <string>] [--without-hardening] 35 36 36 37 Exports the VirtualBox host kernel modules to the tar.gz archive or folder in \ … … 68 69 FOLDER="${2}" 69 70 shift 2 ;; 71 --override-svn-rev) 72 OVERRIDE_SVN_REV="${2}" 73 shift 2 ;; 74 --extra-version-string) 75 EXTRA_VERSION_STRING="${2}" 76 shift 2 ;; 70 77 --without-hardening) 71 78 unset VBOX_WITH_HARDENING … … 104 111 VBOX_SVN_CONFIG_REV=`sed -e 's/^ *VBOX_SVN_REV_CONFIG_FALLBACK *:= \+\$(patsubst *%:,, *\$Rev: *\([0-9]\+\) *\$ *) */\1/;t;d' $PATH_ROOT/Config.kmk` 105 112 VBOX_SVN_VERSION_REV=`sed -e 's/^ *VBOX_SVN_REV_VERSION_FALLBACK *:= \+\$(patsubst *%:,, *\$Rev: *\([0-9]\+\) *\$ *) */\1/;t;d' $PATH_ROOT/Version.kmk` 106 if [ "$VBOX_SVN_CONFIG_REV" -gt "$VBOX_SVN_VERSION_REV" ]; then 113 114 if [ -n "$OVERRIDE_SVN_REV" ]; then 115 VBOX_SVN_REV=$OVERRIDE_SVN_REV 116 elif [ "$VBOX_SVN_CONFIG_REV" -gt "$VBOX_SVN_VERSION_REV" ]; then 107 117 VBOX_SVN_REV=$VBOX_SVN_CONFIG_REV 108 118 else … … 136 146 echo "#define VBOX_VERSION_STRING \"$VBOX_VERSION_STRING\"" >> $PATH_TMP/version-generated.h 137 147 echo "#define VBOX_API_VERSION_STRING \"${VBOX_VERSION_MAJOR}_${VBOX_VERSION_MINOR}\"" >> $PATH_TMP/version-generated.h 148 [ -n "$EXTRA_VERSION_STRING" ] && echo "#define VBOX_EXTRA_VERSION_STRING \" ${EXTRA_VERSION_STRING}\"" >> $PATH_TMP/version-generated.h 138 149 echo "#define VBOX_PRIVATE_BUILD_DESC \"Private build with export_modules\"" >> $PATH_TMP/version-generated.h 139 150 echo "" >> $PATH_TMP/version-generated.h
Note:
See TracChangeset
for help on using the changeset viewer.