1094332d3Sopenharmony_ci<?xml version="1.0" encoding="UTF-8"?>
2094332d3Sopenharmony_ci<!-- Copyright (c) 2021-2022 Huawei Device Co., Ltd.
3094332d3Sopenharmony_ci
4094332d3Sopenharmony_ci     HDF is dual licensed: you can use it either under the terms of
5094332d3Sopenharmony_ci     the GPL, or the BSD license, at your option.
6094332d3Sopenharmony_ci     See the LICENSE file in the root of this repository for complete details.
7094332d3Sopenharmony_ci-->
8094332d3Sopenharmony_ci<!-- OAT(OSS Audit Tool) configuration guide:
9094332d3Sopenharmony_cibasedir: Root dir, the basedir + project path is the real source file location.
10094332d3Sopenharmony_cilicensefile:
11094332d3Sopenharmony_ci1.If the project don't have "LICENSE" in root dir, please define all the license files in this project in , OAT will check license files according to this rule.
12094332d3Sopenharmony_ci
13094332d3Sopenharmony_citasklist(only for batch mode):
14094332d3Sopenharmony_ci1. task: Define oat check thread, each task will start a new thread.
15094332d3Sopenharmony_ci2. task name: Only an name, no practical effect.
16094332d3Sopenharmony_ci3. task policy: Default policy for projects under this task, this field is required and the specified policy must defined in policylist.
17094332d3Sopenharmony_ci4. task filter: Default filefilter for projects under this task, this field is required and the specified filefilter must defined in filefilterlist.
18094332d3Sopenharmony_ci5. task project: Projects to be checked, the path field define the source root dir of the project.
19094332d3Sopenharmony_ci
20094332d3Sopenharmony_ci
21094332d3Sopenharmony_cipolicyList:
22094332d3Sopenharmony_ci1. policy: All policyitems will be merged to default OAT.xml rules, the name of policy doesn't affect OAT check process.
23094332d3Sopenharmony_ci2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is:
24094332d3Sopenharmony_ci<policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/>
25094332d3Sopenharmony_ci3. policyitem type:
26094332d3Sopenharmony_ci    "compatibility" is used to check license compatibility in the specified path;
27094332d3Sopenharmony_ci    "license" is used to check source license header in the specified path;
28094332d3Sopenharmony_ci    "copyright" is used to check source copyright header in the specified path;
29094332d3Sopenharmony_ci    "import" is used to check source dependency in the specified path, such as import ... ,include ...
30094332d3Sopenharmony_ci    "filetype" is used to check file type in the specified path, supported file types: archive, binary
31094332d3Sopenharmony_ci    "filename" is used to check whether the specified file exists in the specified path(support projectroot in default OAT.xml), supported file names: LICENSE, README, README.OpenSource
32094332d3Sopenharmony_ci
33094332d3Sopenharmony_ci4. policyitem name: This field is used for define the license, copyright, "*" means match all, the "!" prefix means could not match this value. For example, "!GPL" means can not use GPL license.
34094332d3Sopenharmony_ci5. policyitem path: This field is used for define the source file scope to apply this policyitem, the "!" prefix means exclude the files. For example, "!.*/lib/.*" means files in lib dir will be exclude while process this policyitem.
35094332d3Sopenharmony_ci6. policyitem rule and group: These two fields are used together to merge policy results. "may" policyitems in the same group means any one in this group passed, the result will be passed.
36094332d3Sopenharmony_ci7. policyitem filefilter: Used to bind filefilter which define filter rules.
37094332d3Sopenharmony_ci8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is used to filter file path.
38094332d3Sopenharmony_ci
39094332d3Sopenharmony_ciNote:If the text contains special characters, please escape them according to the following rules:
40094332d3Sopenharmony_ci" == &gt;
41094332d3Sopenharmony_ci& == &gt;
42094332d3Sopenharmony_ci' == &gt;
43094332d3Sopenharmony_ci< == &gt;
44094332d3Sopenharmony_ci> == &gt;
45094332d3Sopenharmony_ci-->
46094332d3Sopenharmony_ci<configuration>
47094332d3Sopenharmony_ci    <oatconfig>
48094332d3Sopenharmony_ci        <licensefile></licensefile>
49094332d3Sopenharmony_ci        <policylist>
50094332d3Sopenharmony_ci            <policy name="projectPolicy" desc="">
51094332d3Sopenharmony_ci                <policyitem type="copyright" name="Huawei Technologies Co., Ltd." path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="Developed by Huawei Technologies"/>
52094332d3Sopenharmony_ci                <policyitem type="copyright" name="Huawei Device Co., Ltd." path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="Developed by Huawei Device"/>
53094332d3Sopenharmony_ci                <policyitem type="copyright" name="xu" path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="kernel ps driver codes"/>
54094332d3Sopenharmony_ci                <policyitem type="copyright" name="Rockchip Electronics Co., Ltd." path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="Developed By Rockchip"/>
55094332d3Sopenharmony_ci                <policyitem type="copyright" name="Shenzhen Kaihong DID Co., Ltd." path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="Developed by Shenzhen Kaihong DID"/>
56094332d3Sopenharmony_ci                <policyitem type="license" name="GPL" path=".*" desc="linux kernel adapter codes"/>
57094332d3Sopenharmony_ci                <policyitem type="license" name="BSD" path=".*" desc="huawei codes"/>
58094332d3Sopenharmony_ci                <policyitem type="copyright" name="Chipsea Technologies (Shenzhen) Corp., Ltd." path=".*" rule="may" group="defaultGroup"/>
59094332d3Sopenharmony_ci                <policyitem type="copyright" name="Nanjing Xiaoxiongpai Intelligent Technology Co., Ltd." path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="Developed By Xiaoxiongpai"/>
60094332d3Sopenharmony_ci                <policyitem type="copyright" name="Archermind Technology (Nanjing) Co. Ltd." path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="Developed by Nanjing Archermind"/>
61094332d3Sopenharmony_ci                <policyitem type="copyright" name="Bosch Sensortec GmbH. All rights reserved." path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="Developed by Bosch"/>
62094332d3Sopenharmony_ci            </policy>
63094332d3Sopenharmony_ci        </policylist>
64094332d3Sopenharmony_ci        <filefilterlist>
65094332d3Sopenharmony_ci            <filefilter name="defaultFilter" desc="Files not to check">
66094332d3Sopenharmony_ci                <filteritem type="filename" name="*.lds|*.pod"/>
67094332d3Sopenharmony_ci                <filteritem type="filename" name="*.a|*.d|*.o|*.so|*.cmd|*.hcb|*.swp"/>
68094332d3Sopenharmony_ci                <filteritem type="filename" name="*.clang-format"/>
69094332d3Sopenharmony_ci                <filteritem type="filepath" name="dir name underproject/.*" desc="Describe the reason for filtering scan results"/>
70094332d3Sopenharmony_ci            </filefilter>
71094332d3Sopenharmony_ci            <filefilter name="defaultPolicyFilter" desc="Filters for compatibility,license header policies">
72094332d3Sopenharmony_ci                <filteritem type="filename" name="README.OpenSource"/>
73094332d3Sopenharmony_ci                <filteritem type="filename" name="README"/>
74094332d3Sopenharmony_ci                <filteritem type="filename" name="BUILD.gn"/>
75094332d3Sopenharmony_ci                <filteritem type="filename" name="*.gni"/>
76094332d3Sopenharmony_ci                <filteritem type="filepath" name="dir name underproject/.*" desc="Describe the reason for filtering scan results"/>
77094332d3Sopenharmony_ci            </filefilter>
78094332d3Sopenharmony_ci            <filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies" >
79094332d3Sopenharmony_ci                <filteritem type="filename" name="README.OpenSource"/>
80094332d3Sopenharmony_ci                <filteritem type="filename" name="README"/>
81094332d3Sopenharmony_ci                <filteritem type="filename" name="BUILD.gn"/>
82094332d3Sopenharmony_ci                <filteritem type="filename" name="*.gni"/>
83094332d3Sopenharmony_ci                <filteritem type="filepath" name="dir name underproject/.*" desc="Describe the reason for filtering scan results"/>
84094332d3Sopenharmony_ci            </filefilter>
85094332d3Sopenharmony_ci            <filefilter name="licenseFileNamePolicyFilter" desc="Filters for LICENSE file policies" >
86094332d3Sopenharmony_ci                <filteritem type="filepath" name="dir name underproject/.*" desc="Describe the reason for filtering scan results"/>
87094332d3Sopenharmony_ci                <filteritem type="filename" name="BUILD.gn"/>
88094332d3Sopenharmony_ci                <filteritem type="filename" name="*.gni"/>
89094332d3Sopenharmony_ci            </filefilter>
90094332d3Sopenharmony_ci            <filefilter name="readmeFileNamePolicyFilter" desc="Filters for README file policies" >
91094332d3Sopenharmony_ci                <filteritem type="filepath" name="README.md" desc="Describe the reason for filtering scan results"/>
92094332d3Sopenharmony_ci            </filefilter>
93094332d3Sopenharmony_ci            <filefilter name="readmeOpenSourcefileNamePolicyFilter" desc="Filters for README.OpenSource file policies" >
94094332d3Sopenharmony_ci                <filteritem type="filepath" name="dir name underproject/.*" desc="Describe the reason for filtering scan results"/>
95094332d3Sopenharmony_ci            </filefilter>
96094332d3Sopenharmony_ci            <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies" >
97094332d3Sopenharmony_ci                <filteritem type="filepath" name="audio/figures/.*.png" desc="audio architecture diagram"/>
98094332d3Sopenharmony_ci                <filteritem type="filepath" name="display/figures/.*.png" desc="display architecture diagram"/>
99094332d3Sopenharmony_ci                <filteritem type="filepath" name="input/figures/.*.png" desc="input architecture diagram"/>
100094332d3Sopenharmony_ci                <filteritem type="filepath" name="sensor/figures/.*.png" desc="sensor architecture diagram"/>
101094332d3Sopenharmony_ci                <filteritem type="filepath" name="wlan/figures/.*.png" desc="wlan architecture diagram"/>
102094332d3Sopenharmony_ci                <filteritem type="filepath" name="camera/figures/.*.png" desc="camera architecture diagram"/>
103094332d3Sopenharmony_ci                <filteritem type="filepath" name="usb/figures/.*.png" desc="usb architecture diagram"/>
104094332d3Sopenharmony_ci                <filteritem type="filepath" name="display/test/resources/.*.bmp" desc="display test image"/>
105094332d3Sopenharmony_ci                <filteritem type="filepath" name="battery/charger/resources/HarmonyOS_Sans_SC_Regular_Small.ttf" desc="charger font library"/>
106094332d3Sopenharmony_ci                <filteritem type="filepath" name="motion/figures/.*.png" desc="motion architecture diagram"/>
107094332d3Sopenharmony_ci                <filteritem type="filepath" name="audio/test/resource/.*.wav" desc="audio architecture audio"/>
108094332d3Sopenharmony_ci                <filteritem type="filepath" name="ril/figures/.*.png" desc="ril architecture diagram"/>
109094332d3Sopenharmony_ci                <filteritem type="filepath" name="vibrator/figures/.*.png" desc="vibrator architecture diagram"/>
110094332d3Sopenharmony_ci                <filteritem type="filepath" name="light/figures/.*.png" desc="light architecture diagram"/>
111094332d3Sopenharmony_ci            </filefilter>
112094332d3Sopenharmony_ci        </filefilterlist>
113094332d3Sopenharmony_ci    </oatconfig>
114094332d3Sopenharmony_ci</configuration>
115