VirtualBox

Changeset 68292 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Aug 3, 2017 6:40:25 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
117408
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.

File:
1 edited

Legend:

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

    r68289 r68292  
    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
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