Commit Graph
153 Commits
Author SHA1 Message Date
Konstantin Kostiuk e7183ebc25 RHEL-73393: Add format/check options for clang-format-helper
Signed-off-by: Konstantin Kostiuk <[email protected]>
2025-01-12 14:31:20 +01:00
Konstantin Kostiuk 18d183e30e RHEL-73393: Update clang-format-helper to work properly on Windows
Signed-off-by: Konstantin Kostiuk <[email protected]>
2025-01-12 14:31:20 +01:00
Yuri Benditovich cf4a1c94ac RHEL-67132: trace: fix readme file
Correct order of parameters in call of ParseTrace.bat

Signed-off-by: Yuri Benditovich <[email protected]>
2024-12-24 10:07:16 +01:00
Vitalii Chulak a01c696977 RHEL-69597: [CollectSystemInfo] Gather SetupAPI logs
Signed-off-by: Vitalii Chulak <[email protected]>
2024-12-11 12:06:57 +01:00
Kostiantyn Kostiuk e15b1aba27 CI: Use the proper version of clang-format
Signed-off-by: Kostiantyn Kostiuk <[email protected]>
2024-12-11 12:05:25 +01:00
Konstantin Kostiuk 8aeb5775ef RHEL-65784: CI: Enable code style chacking with clang-format
Add empty config for clang-format.

Jira: https://issues.redhat.com/browse/RHEL-65784

Signed-off-by: Konstantin Kostiuk <[email protected]>
2024-11-20 15:48:35 +02:00
Yuri Benditovich ff57c6c6e6 tools/trace: add Readme file
Signed-off-by: Yuri Benditovich <[email protected]>
2024-11-12 10:26:52 +02:00
Yuri Benditovich d05a8b954a tools/trace: add trace utility for viofs
Signed-off-by: Yuri Benditovich <[email protected]>
2024-11-12 10:26:52 +02:00
Yuri Benditovich f43ec95c98 tools/trace: fix typo in ParseTrace.bat
Signed-off-by: Yuri Benditovich <[email protected]>
2024-11-12 10:26:52 +02:00
Konstantin Kostiuk 9251374ee0 Merge Tools/trace and Tools/Trace folders
Signed-off-by: Konstantin Kostiuk <[email protected]>
2024-10-13 14:42:20 +02:00
Konstantin Kostiuk 84b50b8ecb Move build/sign related tools into a separate folder
Signed-off-by: Konstantin Kostiuk <[email protected]>
2024-10-13 14:41:59 +02:00
Vitalii Chulak c87ea56b92 Add script to helpers to enable full range of logging for SetupAPI
Signed-off-by: Vitalii Chulak <[email protected]>
2024-08-15 13:56:53 +03:00
Vitalii Chulak f5f84b1088 Create a helper script to turn on kernel dump gathering
Signed-off-by: Vitalii Chulak <[email protected]>
2024-08-15 13:56:53 +03:00
Dehan Meng 9e589f535d [CI-NO-BUILD] Classify original folders and solve a failure
Splite original summary folder to Log and Dump folders for data
classification.
And solve a problem that archive big file encounter failure.

Solves: https://issues.redhat.com/browse/RHEL-52721
Signed-off-by: Dehan Meng <[email protected]>
2024-08-06 15:42:24 +03:00
Dehan Meng 31f178454a [CI-NO-BUILD] Hot-fix for RHEL50330: Add another situation
'.\CollectSystemInfo.ps1 wrongtype' without '-' still is a common
input errors.  Previously, only the ones starting with '-'
were filtered.

Solves: https://issues.redhat.com/browse/RHEL-50330
Signed-off-by: Dehan Meng <[email protected]>
2024-08-04 14:20:47 +03:00
Dehan Meng 335262ec87 [CI-NO-BUILD] Fix dmp file missing issue
After running script with param 'IncludeSensitiveData',
Only the Minidump directory was copied, the dmp file wasn't copied

Solves: https://issues.redhat.com/browse/RHEL-52479
Signed-off-by: Dehan Meng <[email protected]>
2024-08-04 13:29:56 +03:00
Dehan Meng 7bf2d4eff4 [CI-NO-BUILD] Add Input validation to CollectSystemInfo
Input parameters that are missing, no mechanism for handling
abnormal input, for now, if user type `.\CollectSystemInfo.ps1 -?
(-help, --help)` or `.\CollectSystemInfo.ps1 noniput` , script
always runs without any warning output to the users.
It's not what we expected.

Solves: https://issues.redhat.com/browse/RHEL-50330
Signed-off-by: Dehan Meng <[email protected]>
2024-07-30 10:45:34 +03:00
Dehan Meng cb30535bca [CI-NO-BUILD] Hot-fix for Jiraissue_50169
If user operate 'ctrl+c' or exit powershell to break the
script-running, the Collecting_Status.txt would be opened and
cause the folder couldn't be removed/cleaned.

Solves: https://issues.redhat.com/browse/RHEL-50169
Signed-off-by: Dehan Meng <[email protected]>
2024-07-30 10:45:34 +03:00
Dehan Meng 6194a7bf23 [CI-NO-BUILD] Add interruption handler to CollectSystemInfo
Add an interruption handler. When the script is not finished
running, the generated file name could be marked with the
ongoing process, such as Collecting_Status.txt. and it would
be delete after completion. In this way, when the script is
waiting to be interrupted, it will be clearer to the user
which directory was interrupted.

Solves: https://issues.redhat.com/browse/RHEL-50169
Signed-off-by: Dehan Meng <[email protected]>
2024-07-24 15:23:22 +03:00
Vitalii Chulak 0d8f037ce4 Add network configuration to CollectSystemInfo.ps1
Signed-off-by: Vitalii Chulak <[email protected]>
2024-07-24 09:16:25 +03:00
Vitalii Chulak cd547dd361 Create README.md for CollectSystemInfo tool
Signed-off-by: Vitalii Chulak <[email protected]>
2024-07-18 16:41:55 +03:00
Vitalii Chulak a81d3ab48b Reconsidering the logging and output of system collection tools
Signed-off-by: Vitalii Chulak <[email protected]>
2024-07-18 16:41:55 +03:00
mkedzier 3b9387bf73 Fixed driver date. https://issues.redhat.com/browse/RHEL-36568 2024-07-16 10:43:42 +03:00
Vitalii Chulak 1ae2d15440 RHEL-1472: Add System info collection tool
Signed-off-by: Vitalii Chulak <[email protected]>
2024-07-14 15:37:15 +03:00
Kostiantyn Kostiuk eb8a2f1aa1 Update ENV variable for new EWDK
Signed-off-by: Kostiantyn Kostiuk <[email protected]>
2024-06-23 10:44:14 +03:00
Kostiantyn Kostiuk 769195d9bd Updata CodeQL CLI for version 2.15.4
Signed-off-by: Kostiantyn Kostiuk <[email protected]>
2024-06-23 10:44:14 +03:00
Kostiantyn Kostiuk 2c5ef33e40 Fix SDV artifacts cleanup
Signed-off-by: Kostiantyn Kostiuk <[email protected]>
2024-06-23 10:44:14 +03:00
Kostiantyn Kostiuk b02b9a7f58 Fix CodeQL build env initialization
Signed-off-by: Kostiantyn Kostiuk <[email protected]>
2024-06-23 10:44:14 +03:00
Kostiantyn Kostiuk ee7be579f4 Add INX_* replacements for drivers dir
If we use DIRID 13 in Win10 drivers, we can't perform attestation signing
As Windows Server 2016 has build lower than 16299, we should
have DIRID 12 for Win10 drivers.

Resolve: https://issues.redhat.com/browse/RHEL-1214

Signed-off-by: Kostiantyn Kostiuk <[email protected]>
2024-03-28 13:29:32 +02:00
Kostiantyn Kostiuk 9af43da9e1 Set TargetOSVersion in INF for Windows 11
HLK for Server 2025 fail INF Verification with the error:

The syntax 'DIRID 13 (CopyFiles)' was introduced in OS
version 10.0.16299, but DDInstall sections utilizing
the syntax will install on earlier OS versions. Those
DDInstall sections should be restricted to only install
on 10.0.16299 or higher using a TargetOSVersion decoration.

As Windows 10 before build 16299 is EOL and we don't
support it. This is ok, to have DIRID 13 in Windows 10
INF without TargetOSVersion decoration.

Resolve: https://issues.redhat.com/browse/RHEL-1214

Signed-off-by: Kostiantyn Kostiuk <[email protected]>
2024-03-26 11:54:23 +02:00
Kostiantyn Kostiuk 4c4d1812a8 Add Windows 11 target
Update build scripts to use EWDK 11 21H2 for Win10 target
and EWDK 11 22H2 for Win11 target

Signed-off-by: Kostiantyn Kostiuk <[email protected]>
2023-12-19 15:55:31 +02:00
Kostiantyn Kostiuk c165bd5498 Remove Win8.1 targets and build scripts
Signed-off-by: Kostiantyn Kostiuk <[email protected]>
2023-11-07 13:11:11 +01:00
Kostiantyn Kostiuk d39a39ca74 Remove Win8 targets and build scripts
Signed-off-by: Kostiantyn Kostiuk <[email protected]>
2023-11-07 13:11:11 +01:00
Kostiantyn Kostiuk c02bee48c3 Specify KmdfVersion for all drivers
Signed-off-by: Kostiantyn Kostiuk <[email protected]>
2023-04-30 11:42:01 +03:00
Kostiantyn Kostiuk 2e6ff47532 Add auto detect for VisualStudioToolset v143
Fixes for https://bugzilla.redhat.com/show_bug.cgi?id=2138115

Signed-off-by: Kostiantyn Kostiuk <[email protected]>
2022-11-02 17:15:18 +02:00
Jon Kohler 2f68dfb35c build: enable msbuild maxCpuCount
build.bat will build the entire solution set one by one, which is single
threaded. On multi-processor builders in a CI/CD system, this is a bit
sluggish.

Enable msbuild -maxCpuCount on all msbuild commands, which will parallelize
msbuild actions where possible.

On an Azure Standard_DS2_v2 (i.e. a 2 vcpu builder) this change reduces
build_AllNoSdv.bat time from 12 min to 8 min.

Also, fix minor nit in top of file comments to reflect supported build targets,
which removes Win7, adds Win8.1.

Signed-off-by: Jon Kohler <[email protected]>
2022-02-21 18:59:13 +02:00
Kostiantyn Kostiuk fdd030bf26 Remove legacy OSes from generic build scripts and tools
Signed-off-by: Kostiantyn Kostiuk <[email protected]>
2022-01-17 10:48:00 +02:00
Kostiantyn Kostiuk 03ca1696b9 Add custom DVL logs for Windows Server 2019
DVL builder from EWDK11 build logs with CodeQL results, but
HLK for Windows Server 2019 can't parse these logs. So we use
old DVL.exe to build logs for old HLK.

This commit required an additional binary from EWDK1903.

Signed-off-by: Kostiantyn Kostiuk <[email protected]>
2021-12-07 11:43:39 +02:00
Kostiantyn Kostiuk 8833d0a1c2 build: Run CodeQL automatically if binary present
Signed-off-by: Kostiantyn Kostiuk <[email protected]>
2021-11-03 12:08:03 +02:00
Yuri Benditovich 9dbfee2710 build: delete unused xdate.exe
Signed-off-by: Yuri Benditovich <[email protected]>
2021-10-12 13:01:37 +03:00
Yuri Benditovich 327ad87112 build: prevent build failure when test signing required
If due to any reason the test signing of the driver is requested
the build with EWDK may fail due to unknown file digest algorithm.
Make sure the default algorithm is always defined (sha256).

Signed-off-by: Yuri Benditovich <[email protected]>
2021-10-12 13:01:37 +03:00
Kostiantyn Kostiuk 69bbc6708f Revert "build: autoselect build env"
This reverts commit 66d8b30a83.
2021-10-04 14:57:40 +03:00
Ilya Rudakov 1ae2cec220 build: enable CETCompat for all projects
Signed-off-by: Ilya Rudakov <[email protected]>
2021-09-12 09:12:21 +03:00
Ilya Rudakov 66d8b30a83 build: autoselect build env
EWDK is used to build drivers when run build scripts from the EWDK
environment or if EWDK_DIR var is set. Otherwise, drivers are built with
Visual Studio.

Signed-off-by: Ilya Rudakov <[email protected]>
2021-09-09 10:43:16 +03:00
Ilya Rudakov 93f976c546 build: Auto target for UM apps
Checking the current VS version and setting the supported version of the
platform toolset: v141 for VS2017 and v142 for VS2019, respectively. Set
PlatformToolset to AutoVSToolset in any UM app project where you want to
take advantage of auto target.

Signed-off-by: Ilya Rudakov <[email protected]>
2021-09-09 10:43:16 +03:00
Kostiantyn Kostiuk 8a8a809760 singAll: Update command line for new version of signtool
Signed-off-by: Kostiantyn Kostiuk <[email protected]>
2021-08-30 17:10:24 +03:00
Kostiantyn Kostiuk 551697dc33 build: use Windows 11 EWDK
Signed-off-by: Kostiantyn Kostiuk <[email protected]>
2021-08-30 17:10:24 +03:00
Kostiantyn Kostiuk 5fff442b2a build: Save Code Analysis log to file
Signed-off-by: Kostiantyn Kostiuk <[email protected]>
2021-08-30 17:10:24 +03:00
Kostiantyn Kostiuk e97c6a91fa build: Add semmle codeql support
Setup CodeQL for Static Logo Test according to
https://docs.microsoft.com/en-us/windows-hardware/drivers/devtest/static-tools-and-codeql

Set VIRTIO_WIN_RUN_CODEQL=1 to enable CodeQL checks as a
part of SDV running.

Signed-off-by: Kostiantyn Kostiuk <[email protected]>
2021-08-30 17:10:24 +03:00
Kostiantyn Kostiuk db5cfc2d4c build: Move DVL creation to separate function
This allows to run different code analysis tools for different EWDK.
Signed-off-by: Kostiantyn Kostiuk <[email protected]>
2021-08-30 17:10:24 +03:00