VirtualBox

Changeset 66049 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
Mar 10, 2017 6:17:08 PM (8 years ago)
Author:
vboxsync
Message:

HostDrivers/Makefile.kmk: Moved the linux kernel module 'check' rule from installer to host drivers and cleaned it up. (untested)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Makefile.kmk

    r63535 r66049  
    5656endif # !defined(VBOX_ONLY_DOCS) && !defined(VBOX_ONLY_VALIDATIONKIT)
    5757
     58
     59#
     60# Build test for the linux host kernel modules.
     61#
     62if defined(VBOX_WITH_TESTCASES) && !defined(VBOX_ONLY_SDK) && "$(KBUILD_TARGET)" == "linux"
     63 VBOX_LNX_MOD_TEST        = $(PATH_TARGET)/tsthost_mod
     64 VBOX_LNX_MOD_TEST_TARGET = $(PATH_TARGET)/tsthost_mod.run
     65 TESTING     += $(VBOX_LNX_MOD_TEST_TARGET)
     66 OTHERS      += $(VBOX_LNX_MOD_TEST_TARGET)
     67 OTHER_CLEAN += $(VBOX_LNX_MOD_TEST_TARGET)
     68 $$(VBOX_LNX_MOD_TEST_TARGET): \
     69                $$(vboxdrv-mod_2_STAGE_TARGETS) \
     70                $$(VBoxNetFlt-src_2_STAGE_TARGETS) \
     71                $$(VBoxNetFlt-src_2_STAGE_TARGETS) \
     72                $$(VBoxPci-src_2_STAGE_TARGETS)
     73        $(QUIET)$(call MSG_L1,Doing a test build of the host kernel modules)
     74        $(QUIET)$(RM) -f -- "$@"
     75        $(QUIET)$(RM) -Rf -- "$(VBOX_LNX_MOD_TEST)"
     76        $(QUIET)$(MKDIR) -p -- "$(VBOX_LNX_MOD_TEST)"
     77        $(QUIET)$(CP) -R -- "$(PATH_STAGE_BIN)/src/" "$(VBOX_LNX_MOD_TEST)/"
     78        + $(QUIET)make -C $(VBOX_LNX_MOD_TEST) clean
     79        + $(QUIET)make -C $(VBOX_LNX_MOD_TEST)
     80        $(QUIET)$(RM) -Rf -- $(VBOX_LNX_MOD_TEST)
     81        $(QUIET)$(APPEND) -t "$@" "done"
     82
     83endif
     84
     85
    5886# Let kBuild generate the rules.
    5987include $(FILE_KBUILD_SUB_FOOTER)
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