Changeset 7004 in vbox
- Timestamp:
- Feb 18, 2008 7:34:18 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 28205
- Location:
- trunk/src/VBox/HostDrivers/Support
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/Makefile.kmk
r6845 r7004 43 43 SYSMODS.os2 += VBoxDrv 44 44 SYSMODS.solaris += vboxdrv 45 OTHERS.linux += \ 46 $(PATH_BIN)/src/build_in_tmp \ 47 $(if $(VBOX_OSE),,$(PATH_BIN)/src/dkms.conf) 45 48 endif 46 49 … … 64 67 vboxmod-sh_MODE = a+rx,u+w 65 68 vboxmod-sh_SOURCES = $(subst ",,$(FILES_VBOXDRV_BIN)) #" 69 70 # Scripts needed for building the kernel modules 71 72 $(PATH_BIN)/src/build_in_tmp: \ 73 Support/linux/build_in_tmp 74 $(call MSG_TOOL,Creating,,$@) 75 $(QUIET)$(SED) -e "s;_VERSION_;${VBOX_VERSION_STRING};g" < $< > $@ 76 $(QUIET)chmod 0755 $@ 77 78 $(PATH_BIN)/src/dkms.conf: \ 79 Support/linux/dkms.conf 80 $(call MSG_TOOL,Creating,,$@) 81 $(QUIET)$(SED) -e "s;_VERSION_;${VBOX_VERSION_STRING};g" < $< > $@ 66 82 67 83 # -
trunk/src/VBox/HostDrivers/Support/linux/build_in_tmp
r5999 r7004 24 24 # terms and conditions of either the GPL or the CDDL or both. 25 25 # 26 27 # Attempt to build using DKMS first 28 DKMS=`which dkms` 29 if [ -n "$DKMS" ] 30 then 31 echo "Attempting to install using DKMS" 32 status=`$DKMS status -m vboxdrv -v _VERSION_` 33 if echo $status | grep added > /dev/null || 34 echo $status | grep built > /dev/null || 35 echo $status | grep installed > /dev/null 36 then 37 $DKMS remove -m vboxdrv -v _VERSION_ --all 38 fi 39 if $DKMS add -m vboxdrv -v _VERSION_ && 40 $DKMS build -m vboxdrv -v _VERSION_ && 41 $DKMS install -m vboxdrv -v _VERSION_ --force 42 then 43 exit 0 44 fi 45 echo "Failed to install using DKMS, attempting to install without" 46 fi 26 47 27 48 # find a unique temp directory -
trunk/src/VBox/HostDrivers/Support/linux/export_modules
r5999 r7004 39 39 VBOX_VERSION_MINOR=`sed -e "s/^ *VBOX_VERSION_MINOR *= \+\([0-9]\+\)/\1/;t;d" $PATH_ROOT/Config.kmk` 40 40 VBOX_VERSION_BUILD=`sed -e "s/^ *VBOX_VERSION_BUILD *= \+\([0-9]\+\)/\1/;t;d" $PATH_ROOT/Config.kmk` 41 VBOX_VERSION_STRING=$VBOX_VERSION_MAJOR.$VBOX_VERSION_MINOR.$VBOX_VERSION_BUILD 41 42 42 43 . $PATH_VBOXDRV/linux/files_vboxdrv … … 52 53 echo "#define VBOX_VERSION_MINOR $VBOX_VERSION_MINOR" >> $PATH_TMP/version-generated.h 53 54 echo "#define VBOX_VERSION_BUILD $VBOX_VERSION_BUILD" >> $PATH_TMP/version-generated.h 54 echo "#define VBOX_VERSION_STRING \"$VBOX_VERSION_ MAJOR.$VBOX_VERSION_MINOR.$VBOX_VERSION_BUILD\"" >> $PATH_TMP/version-generated.h55 echo "#define VBOX_VERSION_STRING \"$VBOX_VERSION_STRING\"" >> $PATH_TMP/version-generated.h 55 56 echo "" >> $PATH_TMP/version-generated.h 56 57 echo "#endif" >> $PATH_TMP/version-generated.h … … 64 65 install -D -m 0755 `echo $f|cut -d'=' -f1` "$PATH_TMP/vboxdrv/`echo $f|cut -d'>' -f2`" 65 66 done 67 sed -e "s;_VERSION_;$VBOX_VERSION_STRING;g" < $PATH_VBOXDRV/linux/build_in_tmp > $PATH_TMP/vboxdrv/build_in_tmp 68 chmod 0755 $PATH_TMP/vboxdrv/build_in_tmp 69 sed -e "s;_VERSION_;$VBOX_VERSION_STRING;g" < $PATH_VBOXDRV/linux/dkms.conf > $PATH_TMP/vboxdrv/dkms.conf 66 70 67 71 # Only temporary, omit from archive -
trunk/src/VBox/HostDrivers/Support/linux/files_vboxdrv
r6530 r7004 101 101 102 102 FILES_VBOXDRV_BIN=" \ 103 ${PATH_ROOT}/src/VBox/HostDrivers/Support/linux/build_in_tmp=>build_in_tmp \104 103 "
Note:
See TracChangeset
for help on using the changeset viewer.