* [PATCH 12/15] SecurityPkg/SecurityPkg.ci.yaml: Add configuration for LicenseCheck
@ 2020-07-20 8:39 Zhang, Shenglei
0 siblings, 0 replies; 3+ messages in thread
From: Zhang, Shenglei @ 2020-07-20 8:39 UTC (permalink / raw)
To: devel; +Cc: Jiewen Yao, Jian J Wang
Add configuration IgnoreFiles for package config files.
So users can rely on this to skip license conflict for
some generated files.
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com>
---
SecurityPkg/SecurityPkg.ci.yaml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/SecurityPkg/SecurityPkg.ci.yaml b/SecurityPkg/SecurityPkg.ci.yaml
index 953219053318..1ef1d2e67ead 100644
--- a/SecurityPkg/SecurityPkg.ci.yaml
+++ b/SecurityPkg/SecurityPkg.ci.yaml
@@ -5,6 +5,9 @@
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
{
+ "LicenseCheck": {
+ "IgnoreFiles": []
+ },
"CompilerPlugin": {
"DscPath": "SecurityPkg.dsc"
},
--
2.18.0.windows.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 00/15] Add a plugin LicenseCheck in open ci
@ 2020-07-20 8:36 Zhang, Shenglei
2020-07-20 8:37 ` [PATCH 12/15] SecurityPkg/SecurityPkg.ci.yaml: Add configuration for LicenseCheck Zhang, Shenglei
0 siblings, 1 reply; 3+ messages in thread
From: Zhang, Shenglei @ 2020-07-20 8:36 UTC (permalink / raw)
To: devel
Cc: Michael D Kinney, Sean Brogan, Bret Barkelew, Eric Dong,
Laszlo Ersek, Zhichao Gao, Jiewen Yao, Chao Zhang, Jordan Justen,
Maciej Rabeda, Jiaxin Wu, Siyuan Fu, Liming Gao, Jian J Wang,
Hao A Wu, Andrew Fish, Ray Ni, Xiaoyu Lu, Ard Biesheuvel,
Leif Lindholm
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2691
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2833
LicenseCheck is now enabled in PatchCheck.py. But there's
a patch "Revert 'BaseTools/PatchCheck.py: Add LicenseCheck'"
to suggest revert the change.These patch series introduce
a plugin LicenseCheck into open ci so that license issues can
still be checked after the checker is disabled in PatchCheck.py.
1/15 is the plugin implementation.
2/15 ~ 15/15 introduce sections "IgnoreFiles" to allow developers
to skip license check for some files like generated files.
Only BSD-2-Clause-Patent and BSD-3-Clause-Patent can pass this checker.
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Sean Brogan <sean.brogan@microsoft.com>
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Zhichao Gao <zhichao.gao@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Chao Zhang <chao.b.zhang@intel.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Maciej Rabeda <maciej.rabeda@linux.intel.com>
Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Siyuan Fu <siyuan.fu@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Andrew Fish <afish@apple.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Xiaoyu Lu <xiaoyux.lu@intel.com>
Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
Cc: Leif Lindholm <leif@nuviainc.com>
Shenglei Zhang (15):
.pytool/Plugin: Add a plugin LicenseCheck
FatPkg/FatPkg.ci.yaml: Add configuration for LicenseCheck
ArmVirtPkg/ArmVirtPkg.ci.yaml: Add configuration for LicenseCheck
CryptoPkg/CryptoPkg.ci.yaml: Add configuration for LicenseCheck
EmulatorPkg/EmulatorPkg.ci.yaml: Add configuration for LicenseCheck
FmpDevicePkg/FmpDevicePkg.ci.yaml: Add configuration for LicenseCheck
MdeModulePkg/MdeModulePkg.ci.yaml: Add configuration for LicenseCheck
MdePkg/MdePkg.ci.yaml: Add configuration for LicenseCheck
NetworkPkg/NetworkPkg.ci.yaml: Add configuration for LicenseCheck
OvmfPkg/OvmfPkg.ci.yaml: Add configuration for LicenseCheck
PcAtChipsetPkg/PcAtChipsetPkg.ci.yaml: Add configuration for
LicenseCheck
SecurityPkg/SecurityPkg.ci.yaml: Add configuration for LicenseCheck
ShellPkg/ShellPkg.ci.yaml: Add configuration for LicenseCheck
UefiCpuPkg/UefiCpuPkg.ci.yaml: Add configuration for LicenseCheck
UnitTestFrameworkPkg: Add configuration for LicenseCheck in yaml file
.pytool/Plugin/LicenseCheck/LicenseCheck.py | 118 ++++++++++++++++++
.../LicenseCheck/LicenseCheck_plug_in.yaml | 11 ++
.pytool/Plugin/LicenseCheck/Readme.md | 17 +++
ArmVirtPkg/ArmVirtPkg.ci.yaml | 4 +
CryptoPkg/CryptoPkg.ci.yaml | 3 +
EmulatorPkg/EmulatorPkg.ci.yaml | 4 +
FatPkg/FatPkg.ci.yaml | 3 +
FmpDevicePkg/FmpDevicePkg.ci.yaml | 3 +
MdeModulePkg/MdeModulePkg.ci.yaml | 4 +
MdePkg/MdePkg.ci.yaml | 4 +
NetworkPkg/NetworkPkg.ci.yaml | 3 +
OvmfPkg/OvmfPkg.ci.yaml | 4 +
PcAtChipsetPkg/PcAtChipsetPkg.ci.yaml | 3 +
SecurityPkg/SecurityPkg.ci.yaml | 3 +
ShellPkg/ShellPkg.ci.yaml | 3 +
UefiCpuPkg/UefiCpuPkg.ci.yaml | 3 +
.../UnitTestFrameworkPkg.ci.yaml | 4 +
17 files changed, 194 insertions(+)
create mode 100644 .pytool/Plugin/LicenseCheck/LicenseCheck.py
create mode 100644 .pytool/Plugin/LicenseCheck/LicenseCheck_plug_in.yaml
create mode 100644 .pytool/Plugin/LicenseCheck/Readme.md
--
2.18.0.windows.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 12/15] SecurityPkg/SecurityPkg.ci.yaml: Add configuration for LicenseCheck
2020-07-20 8:36 [PATCH 00/15] Add a plugin LicenseCheck in open ci Zhang, Shenglei
@ 2020-07-20 8:37 ` Zhang, Shenglei
2020-07-20 14:24 ` Yao, Jiewen
0 siblings, 1 reply; 3+ messages in thread
From: Zhang, Shenglei @ 2020-07-20 8:37 UTC (permalink / raw)
To: devel; +Cc: Jiewen Yao, Jian J Wang, Chao Zhang
Add configuration IgnoreFiles for package config files.
So users can rely on this to skip license conflict for
some generated files.
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Chao Zhang <chao.b.zhang@intel.com>
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com>
---
SecurityPkg/SecurityPkg.ci.yaml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/SecurityPkg/SecurityPkg.ci.yaml b/SecurityPkg/SecurityPkg.ci.yaml
index 953219053318..1ef1d2e67ead 100644
--- a/SecurityPkg/SecurityPkg.ci.yaml
+++ b/SecurityPkg/SecurityPkg.ci.yaml
@@ -5,6 +5,9 @@
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
{
+ "LicenseCheck": {
+ "IgnoreFiles": []
+ },
"CompilerPlugin": {
"DscPath": "SecurityPkg.dsc"
},
--
2.18.0.windows.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 12/15] SecurityPkg/SecurityPkg.ci.yaml: Add configuration for LicenseCheck
2020-07-20 8:37 ` [PATCH 12/15] SecurityPkg/SecurityPkg.ci.yaml: Add configuration for LicenseCheck Zhang, Shenglei
@ 2020-07-20 14:24 ` Yao, Jiewen
0 siblings, 0 replies; 3+ messages in thread
From: Yao, Jiewen @ 2020-07-20 14:24 UTC (permalink / raw)
To: Zhang, Shenglei, devel@edk2.groups.io; +Cc: Wang, Jian J, Chao Zhang
Reviewed-by: Jiewen.yao@intel.com
> -----Original Message-----
> From: Zhang, Shenglei <shenglei.zhang@intel.com>
> Sent: Monday, July 20, 2020 4:37 PM
> To: devel@edk2.groups.io
> Cc: Yao, Jiewen <jiewen.yao@intel.com>; Wang, Jian J <jian.j.wang@intel.com>;
> Chao Zhang <chao.b.zhang@intel.com>
> Subject: [PATCH 12/15] SecurityPkg/SecurityPkg.ci.yaml: Add configuration for
> LicenseCheck
>
> Add configuration IgnoreFiles for package config files.
> So users can rely on this to skip license conflict for
> some generated files.
>
> Cc: Jiewen Yao <jiewen.yao@intel.com>
> Cc: Jian J Wang <jian.j.wang@intel.com>
> Cc: Chao Zhang <chao.b.zhang@intel.com>
> Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com>
> ---
> SecurityPkg/SecurityPkg.ci.yaml | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/SecurityPkg/SecurityPkg.ci.yaml b/SecurityPkg/SecurityPkg.ci.yaml
> index 953219053318..1ef1d2e67ead 100644
> --- a/SecurityPkg/SecurityPkg.ci.yaml
> +++ b/SecurityPkg/SecurityPkg.ci.yaml
> @@ -5,6 +5,9 @@
> # SPDX-License-Identifier: BSD-2-Clause-Patent
> ##
> {
> + "LicenseCheck": {
> + "IgnoreFiles": []
> + },
> "CompilerPlugin": {
> "DscPath": "SecurityPkg.dsc"
> },
> --
> 2.18.0.windows.1
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-07-20 14:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-20 8:39 [PATCH 12/15] SecurityPkg/SecurityPkg.ci.yaml: Add configuration for LicenseCheck Zhang, Shenglei
-- strict thread matches above, loose matches on Subject: below --
2020-07-20 8:36 [PATCH 00/15] Add a plugin LicenseCheck in open ci Zhang, Shenglei
2020-07-20 8:37 ` [PATCH 12/15] SecurityPkg/SecurityPkg.ci.yaml: Add configuration for LicenseCheck Zhang, Shenglei
2020-07-20 14:24 ` Yao, Jiewen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox