VirtualBox

Changeset 68288 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 3, 2017 2:48:20 PM (7 years ago)
Author:
vboxsync
Message:

Additions/linux: run the kernel module source files through indent.

bugref:8524: Additions/linux: play nicely with distribution-installed Additions
In order to reduce the delta between in-kernel and our kernel modules, run
the source files through indent -linux when we copy them from our tree to
the Additions archive.

Location:
trunk/src/VBox/Additions
Files:
3 edited

Legend:

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

    r66072 r68288  
    200200 vboxguest-src_MODE     = a+r,u+w
    201201 vboxguest-src_SOURCES  = $(subst ",,$(FILES_VBOXGUEST_NOBIN))
     202 # The sed directive is because indent seems to have trouble with a macro
     203 # invocation in assembly at the end of memuserkernel-r0drv-linux.c.
     204 vboxguest-src_INSTALLER = $(RM_EXT) -f -- "$2" && \
     205    $(if $(filter %.c %.h,$2),indent -linux -o "$2" "$1",$(CP_EXT) "$1" "$2") && \
     206    $(SED) -i "s/_ASM_EXTABLE(1 b, 3 b)/_ASM_EXTABLE(1b, 3b)/g" "$2" && \
     207    $(CHMOD_EXT) "$(if $(mode),$(mode),0644)" "$2"
    202208
    203209 INSTALLS += vboxguest-scripts
  • trunk/src/VBox/Additions/linux/drm/Makefile.kmk

    r66071 r68288  
    2929vboxvideo_drm-mod_EXEC_SOURCES = \
    3030        $(subst $(DQUOTE),,$(FILES_VBOXVIDEO_DRM_BIN))
     31vboxvideo_drm-mod_INSTALLER = $(RM_EXT) -f -- "$2" && \
     32    $(if $(filter %.c %.h,$2),indent -linux -o "$2" "$1",$(CP_EXT) "$1" "$2") && \
     33    $(CHMOD_EXT) "$(if $(mode),$(mode),0644)" "$2"
    3134
    3235
  • trunk/src/VBox/Additions/linux/sharedfolders/Makefile.kmk

    r66071 r68288  
    3030vboxsf-mod_EXEC_SOURCES = \
    3131        $(subst $(DQUOTE),,$(FILES_VBOXSF_BIN))
     32vboxsf-mod_INSTALLER = $(RM_EXT) -f -- "$2" && \
     33    $(if $(filter %.c %.h,$2),indent -linux -o "$2" "$1",$(CP_EXT) "$1" "$2") && \
     34    $(CHMOD_EXT) "$(if $(mode),$(mode),0644)" "$2"
    3235
    3336
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