VirtualBox

source: vbox/trunk/src/VBox/VMM/testcase/Instructions/Makefile.kmk@ 85416

Last change on this file since 85416 was 82968, checked in by vboxsync, 5 years ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1# $Id: Makefile.kmk 82968 2020-02-04 10:35:17Z vboxsync $
2## @file
3# Sub-Makefile for the X86 and AMD64 Instruction Tests.
4#
5
6#
7# Copyright (C) 2006-2020 Oracle Corporation
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17
18SUB_DEPTH = ../../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21#
22# Python linting (can't live without pylint!).
23#
24ifdef VBOX_WITH_PYLINT
25TESTING +=
26endif
27BLDDIRS += $(PATH_TARGET)/pylint
28
29define def_vbox_instructions_py_check
30$(eval name:=$(basename $(notdir $(py))))
31
32pylint: $(name)-py-phony.o
33$(name).o: $(name)-py-phony.o
34$(PATH_TARGET)/pylint/$(name).o $(name)-py-phony.o:: $(py) | $(PATH_TARGET)/pylint/
35ifdef VBOX_WITH_PYLINT
36 $(QUIET2)$(call MSG_L1,Subjecting $(py) to pylint...)
37 $(QUIET)$(REDIRECT_EXT) -E LC_ALL=C -E PYTHONPATH="$(dir $(py))" -C $(dir $(py)) \
38 -- $$(VBOX_PYLINT) $$(VBOX_PYLINT_FLAGS) $$($(py)_VBOX_PYLINT_FLAGS) ./$(notdir $(py))
39endif
40 $(QUIET)$(APPEND) -t "$(PATH_TARGET)/pylint/$(name).o"
41
42TESTING += $(name)-py-phony.o
43endef # def_vbox_instructions_py_check
44
45
46$(foreach py, $(addprefix $(PATH_SUB_CURRENT)/, InstructionTestGen.py ) , $(eval $(def_vbox_instructions_py_check)))
47
48
49
50#
51# Ring-3 test program based on IPRT.
52#
53PROGRAMS += tstVBInsTstR3
54tstVBInsTstR3_TEMPLATE = VBOXR3TSTEXE
55tstVBInsTstR3_INCS = .
56tstVBInsTstR3_SOURCES = \
57 tstVBInsTstR3.cpp \
58 $(tstVBInsTstR3_0_OUTDIR)/tstVBInsTstR3A.asm
59tstVBInsTstR3_CLEAN = \
60 $(tstVBInsTstR3_0_OUTDIR)/tstVBInsTstR3A.asm
61
62$$(tstVBInsTstR3_0_OUTDIR)/tstVBInsTstR3A.asm: $(PATH_SUB_CURRENT)/InstructionTestGen.py
63 $(VBOX_BLD_PYTHON) $(PATH_SUB_CURRENT)/InstructionTestGen.py \
64 --target iprt-r3-$(if-expr $(intersects $(KBUILD_TARGET_ARCH), $(KBUILD_ARCHES_64)),64,32) \
65 --output-base $(basename $@)
66
67
68include $(FILE_KBUILD_SUB_FOOTER)
69
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette