VirtualBox

Changeset 99624 in vbox


Ignore:
Timestamp:
May 5, 2023 9:29:44 AM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
157150
Message:

Config.kmk,Makefile.kmk,tools/Makefile.kmk: Set up the parfait toolchain as a tools package and make it easier to run the static code analysis for users, bugref:3409

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r99611 r99624  
    13851385 endif
    13861386endif
     1387
     1388
     1389ifdef VBOX_WITH_PARFAIT
     1390 #
     1391 # This includes the tool overrides for running with parfait.
     1392 # Ideally there would be a dedicated parfait tool but when targetting
     1393 # different hosts with different compiler toolchains and compiler flags
     1394 # we would have to duplicate a lot of the already existing tools for each
     1395 # supported toolchain. Instead we just override the paths to the compilers
     1396 # for the currently used tools (as this is kind of static and doesn't change that often).
     1397 # To not clutter this file too much this lives in a separate file.
     1398 #
     1399 include $(PATH_ROOT)/tools/ParfaitConfig.kmk
     1400endif
     1401
    13871402
    13881403#
  • trunk/Makefile.kmk

    r99445 r99624  
    21612161                $(if-expr defined(VBOX_WITH_SDS),VBoxSDS,) \
    21622162                $(if-expr defined(VBOX_WITH_QTGUI),VirtualBox,)
     2163
     2164
     2165#
     2166# Runs the analysis with parfait
     2167#
     2168run-parfait:
     2169ifdef VBOX_WITH_PARFAIT
     2170        + $(TIME) -- $(KMK) all
     2171        $(TIME) -- $(VBOX_PARFAIT) \
     2172         -p \
     2173         $(if-expr defined(VBOX_PARFAIT_SERVER),-s $(VBOX_PARFAIT_SERVER),) \
     2174         -j $(if-expr $(KMK_OPTS_JOBS) > 0,$(expr $(KMK_OPTS_JOBS) / 2),$(NUMBER_OF_PROCESSORS)) \
     2175         -o $(PATH_OUT)/report.txt \
     2176         -g $(PATH_OUT)/html \
     2177         -c $(PATH_ROOT)/webtools/tinderbox/client/parfait-vbox.conf \
     2178         -e all -d misaligned-access \
     2179         -z $(PATH_ROOT) \
     2180         -r $(VBOX_SVN_REV) \
     2181         $(PATH_OUT)/obj
     2182else
     2183        $(ECHO) This target requires VBOX_WITH_PARFAIT to be set.
     2184        exit 1
     2185endif
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