1d6aed566Sopenharmony_ci<?xml version="1.0" encoding="UTF-8"?>
2d6aed566Sopenharmony_ci<!-- Copyright (c) 2021 Huawei Device Co., Ltd.
3d6aed566Sopenharmony_ci
4d6aed566Sopenharmony_ci     Licensed under the Apache License, Version 2.0 (the "License");
5d6aed566Sopenharmony_ci     you may not use this file except in compliance with the License.
6d6aed566Sopenharmony_ci     You may obtain a copy of the License at
7d6aed566Sopenharmony_ci
8d6aed566Sopenharmony_ci          http://www.apache.org/licenses/LICENSE-2.0
9d6aed566Sopenharmony_ci
10d6aed566Sopenharmony_ci     Unless required by applicable law or agreed to in writing, software
11d6aed566Sopenharmony_ci     distributed under the License is distributed on an "AS IS" BASIS,
12d6aed566Sopenharmony_ci     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13d6aed566Sopenharmony_ci     See the License for the specific language governing permissions and
14d6aed566Sopenharmony_ci     limitations under the License.
15d6aed566Sopenharmony_ci
16d6aed566Sopenharmony_ci    This is the configuration file template for OpenHarmony OSS Audit Tool, please copy it to your project root dir and modify it refer to OpenHarmony/tools_oat/README.
17d6aed566Sopenharmony_ci
18d6aed566Sopenharmony_ci-->
19d6aed566Sopenharmony_ci
20d6aed566Sopenharmony_ci<configuration>
21d6aed566Sopenharmony_ci    <oatconfig>
22d6aed566Sopenharmony_ci        <licensefile></licensefile>
23d6aed566Sopenharmony_ci        <policylist>
24d6aed566Sopenharmony_ci            <policy name="projectPolicy" desc="">
25d6aed566Sopenharmony_ci                <policyitem type="copyright" name="Huawei Technologies Co., Ltd. All rights reserved." path=".*" desc="original liteos copyright"/>
26d6aed566Sopenharmony_ci                <policyitem type="license" name="BSD-3-Clause" path=".*" desc="LiteOS kernel use bsd3 license"/>
27d6aed566Sopenharmony_ci            </policy>
28d6aed566Sopenharmony_ci        </policylist>
29d6aed566Sopenharmony_ci        <filefilterlist>
30d6aed566Sopenharmony_ci            <filefilter name="defaultFilter" desc="文件属于海思的license,但是属于apache2.0">
31d6aed566Sopenharmony_ci                <filteritem type="filepath" name="drivers/uart/.*" desc="文件属于海思的license,但是属于apache2.0"/>
32d6aed566Sopenharmony_ci            </filefilter>
33d6aed566Sopenharmony_ci            <filefilter name="defaultFilter" desc="apache license">
34d6aed566Sopenharmony_ci                <filteritem type="filepath" name="SmartL_E802/liteos_m/board/hals/csky_driver/include/csi_config.h" desc="文件属于社区贡献,不用提供额外的说明"/>
35d6aed566Sopenharmony_ci                <filteritem type="filepath" name="SmartL_E802/liteos_m/board/hals/csky_driver/include/.*" desc="apache license"/>
36d6aed566Sopenharmony_ci                <filteritem type="filepath" name="SmartL_E802/liteos_m/board/hals/csky_driver/src/.*" desc="apache license"/>
37d6aed566Sopenharmony_ci                <filteritem type="filepath" name="SmartL_E802/liteos_m/board/startup.S" desc="apache license"/>
38d6aed566Sopenharmony_ci            </filefilter>
39d6aed566Sopenharmony_ci            <filefilter name="defaultFilter" desc="文件属于Nuttx的license">
40d6aed566Sopenharmony_ci                <filteritem type="filepath" name="riscv32_virt/liteos_m/board/driver/video/fb.c" desc="文件属于Nuttx的license"/>
41d6aed566Sopenharmony_ci                <filteritem type="filepath" name="riscv32_virt/liteos_m/board/driver/video/fb.h" desc="文件属于Nuttx的license"/>
42d6aed566Sopenharmony_ci            </filefilter>
43d6aed566Sopenharmony_ci            <filefilter name="defaultFilter" desc="三方驱动文件,属于apache license">
44d6aed566Sopenharmony_ci                <filteritem type="filepath" name="arm_mps2_an386/liteos_m/board/driver/arm_uart_drv.*" desc="apache license"/>
45d6aed566Sopenharmony_ci                <filteritem type="filepath" name="arm_mps2_an386/liteos_m/board/driver/net/lan9118_eth_drv.*" desc="apache license"/>
46d6aed566Sopenharmony_ci                <filteritem type="filepath" name="arm_mps2_an386/liteos_m/board/driver/LICENSE-apache-2.0.txt" desc="license file"/>
47d6aed566Sopenharmony_ci            </filefilter>
48d6aed566Sopenharmony_ci            <filefilter name="defaultFilter" desc="三方驱动文件,属于apache license">
49d6aed566Sopenharmony_ci                <filteritem type="filepath" name="arm_mps3_an547/liteos_m/board/driver/arm_uart_drv.*" desc="apache license"/>
50d6aed566Sopenharmony_ci                <filteritem type="filepath" name="arm_mps3_an547/liteos_m/board/driver/LICENSE-apache-2.0.txt" desc="license file"/>
51d6aed566Sopenharmony_ci            </filefilter>
52d6aed566Sopenharmony_ci            <filefilter name="defaultFilter" desc="Files not to check">
53d6aed566Sopenharmony_ci                <filteritem type="filepath" name="arm_virt/linux/chipset/etc/fstab*.*" desc="fstab配置文件,不能加其他注释"/>
54d6aed566Sopenharmony_ci                <filteritem type="filepath" name="arm_virt/linux/rootfs/*.cfg" desc="init配置文件,不能加其他注释"/>
55d6aed566Sopenharmony_ci                <filteritem type="filepath" name="arm_virt/linux/rootfs/*.para" desc="默认系统参数文件,不添加注释"/>
56d6aed566Sopenharmony_ci            </filefilter>
57d6aed566Sopenharmony_ci            <filefilter name="defaultFilter" desc="Files not to check">
58d6aed566Sopenharmony_ci                <filteritem type="filepath" name="x86_64_virt/linux/chipset/etc/fstab*.*" desc="fstab配置文件,不能加其他注释"/>
59d6aed566Sopenharmony_ci                <filteritem type="filepath" name="x86_64_virt/linux/rootfs/*.cfg" desc="init配置文件,不能加其他注释"/>
60d6aed566Sopenharmony_ci                <filteritem type="filepath" name="x86_64_virt/linux/rootfs/*.para" desc="默认系统参数文件,不添加注释"/>
61d6aed566Sopenharmony_ci            </filefilter>
62d6aed566Sopenharmony_ci            <filefilter name="defaultFilter" desc="Files not to check">
63d6aed566Sopenharmony_ci                <filteritem type="filepath" name="riscv64_virt/linux/chipset/etc/fstab*.*" desc="fstab配置文件,不能加其他注释"/>
64d6aed566Sopenharmony_ci                <filteritem type="filepath" name="riscv64_virt/linux/rootfs/*.cfg" desc="init配置文件,不能加其他注释"/>
65d6aed566Sopenharmony_ci                <filteritem type="filepath" name="riscv64_virt/linux/rootfs/*.para" desc="默认系统参数文件,不添加注释"/>
66d6aed566Sopenharmony_ci            </filefilter>
67d6aed566Sopenharmony_ci            <filefilter name="defaultFilter" desc="Files not to check">
68d6aed566Sopenharmony_ci                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
69d6aed566Sopenharmony_ci                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
70d6aed566Sopenharmony_ci                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
71d6aed566Sopenharmony_ci            </filefilter>
72d6aed566Sopenharmony_ci            <filefilter name="defaultPolicyFilter" desc="Filters for compatibility,license header policies">
73d6aed566Sopenharmony_ci                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
74d6aed566Sopenharmony_ci                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
75d6aed566Sopenharmony_ci                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
76d6aed566Sopenharmony_ci            </filefilter>
77d6aed566Sopenharmony_ci            <filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies">
78d6aed566Sopenharmony_ci                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
79d6aed566Sopenharmony_ci                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
80d6aed566Sopenharmony_ci                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
81d6aed566Sopenharmony_ci            </filefilter>
82d6aed566Sopenharmony_ci            <filefilter name="licenseFileNamePolicyFilter" desc="Filters for LICENSE file policies">
83d6aed566Sopenharmony_ci                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
84d6aed566Sopenharmony_ci                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
85d6aed566Sopenharmony_ci                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
86d6aed566Sopenharmony_ci            </filefilter>
87d6aed566Sopenharmony_ci            <filefilter name="readmeFileNamePolicyFilter" desc="Filters for README file policies">
88d6aed566Sopenharmony_ci                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
89d6aed566Sopenharmony_ci                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
90d6aed566Sopenharmony_ci                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
91d6aed566Sopenharmony_ci            </filefilter>
92d6aed566Sopenharmony_ci            <filefilter name="readmeOpenSourcefileNamePolicyFilter" desc="Filters for README.OpenSource file policies">
93d6aed566Sopenharmony_ci                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
94d6aed566Sopenharmony_ci                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
95d6aed566Sopenharmony_ci                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
96d6aed566Sopenharmony_ci            </filefilter>
97d6aed566Sopenharmony_ci            <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies">
98d6aed566Sopenharmony_ci                <filteritem type="filepath" name="riscv32_virt/liteos_m/gen_fs/mklittlefs" desc="littlefs image making tools"/>
99d6aed566Sopenharmony_ci                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
100d6aed566Sopenharmony_ci                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
101d6aed566Sopenharmony_ci                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
102d6aed566Sopenharmony_ci            </filefilter>
103d6aed566Sopenharmony_ci
104d6aed566Sopenharmony_ci        </filefilterlist>
105d6aed566Sopenharmony_ci        <licensematcherlist>
106d6aed566Sopenharmony_ci            <!--licensematcher name="uvwxyz License" desc="If the scanning result is InvalidLicense, you can define matching rules here. Note that quotation marks must be escaped.">
107d6aed566Sopenharmony_ci                <licensetext name="
108d6aed566Sopenharmony_ci                    uvwxyz license textA xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
109d6aed566Sopenharmony_ci                " desc=""/>
110d6aed566Sopenharmony_ci                <licensetext name="
111d6aed566Sopenharmony_ci                    uvwxyz license textB xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
112d6aed566Sopenharmony_ci                " desc=""/>
113d6aed566Sopenharmony_ci            </licensematcher-->
114d6aed566Sopenharmony_ci        </licensematcherlist>
115d6aed566Sopenharmony_ci    </oatconfig>
116d6aed566Sopenharmony_ci</configuration>
117