12fe4e5f8Sopenharmony_ci<?xml version="1.0" encoding="UTF-8"?> 22fe4e5f8Sopenharmony_ci<!-- Copyright (C) 2021 Huawei Device Co., Ltd. 32fe4e5f8Sopenharmony_ci 42fe4e5f8Sopenharmony_ci Licensed under the Apache License, Version 2.0 (the "License"); 52fe4e5f8Sopenharmony_ci you may not use this file except in compliance with the License. 62fe4e5f8Sopenharmony_ci You may obtain a copy of the License at 72fe4e5f8Sopenharmony_ci 82fe4e5f8Sopenharmony_ci http://www.apache.org/licenses/LICENSE-2.0 92fe4e5f8Sopenharmony_ci 102fe4e5f8Sopenharmony_ci Unless required by applicable law or agreed to in writing, software 112fe4e5f8Sopenharmony_ci distributed under the License is distributed on an "AS IS" BASIS, 122fe4e5f8Sopenharmony_ci WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 132fe4e5f8Sopenharmony_ci See the License for the specific language governing permissions and 142fe4e5f8Sopenharmony_ci limitations under the License. 152fe4e5f8Sopenharmony_ci 162fe4e5f8Sopenharmony_ci Notes: 172fe4e5f8Sopenharmony_ci This is project config file for OpenHarmony OSS Audit Tool, if you have any questions or concerns, please email chenyaxun. 182fe4e5f8Sopenharmony_ci--> 192fe4e5f8Sopenharmony_ci<!-- OAT(OSS Audit Tool) configuration guide: 202fe4e5f8Sopenharmony_cibasedir: Root dir, the basedir + project path is the real source file location. 212fe4e5f8Sopenharmony_cilicensefile: 222fe4e5f8Sopenharmony_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. 232fe4e5f8Sopenharmony_ci 242fe4e5f8Sopenharmony_citasklist(only for batch mode): 252fe4e5f8Sopenharmony_ci1. task: Define oat check thread, each task will start a new thread. 262fe4e5f8Sopenharmony_ci2. task name: Only an name, no practical effect. 272fe4e5f8Sopenharmony_ci3. task policy: Default policy for projects under this task, this field is required and the specified policy must defined in policylist. 282fe4e5f8Sopenharmony_ci4. task filter: Default filefilter for projects under this task, this field is required and the specified filefilter must defined in filefilterlist. 292fe4e5f8Sopenharmony_ci5. task project: Projects to be checked, the path field define the source root dir of the project. 302fe4e5f8Sopenharmony_ci 312fe4e5f8Sopenharmony_ci 322fe4e5f8Sopenharmony_cipolicyList: 332fe4e5f8Sopenharmony_ci1. policy: All policyitems will be merged to default OAT.xml rules, the name of policy doesn't affect OAT check process. 342fe4e5f8Sopenharmony_ci2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is: 352fe4e5f8Sopenharmony_ci<policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/> 362fe4e5f8Sopenharmony_ci3. policyitem type: 372fe4e5f8Sopenharmony_ci "compatibility" is used to check license compatibility in the specified path; 382fe4e5f8Sopenharmony_ci "license" is used to check source license header in the specified path; 392fe4e5f8Sopenharmony_ci "copyright" is used to check source copyright header in the specified path; 402fe4e5f8Sopenharmony_ci "import" is used to check source dependency in the specified path, such as import ... ,include ... 412fe4e5f8Sopenharmony_ci "filetype" is used to check file type in the specified path, supported file types: archive, binary 422fe4e5f8Sopenharmony_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 432fe4e5f8Sopenharmony_ci 442fe4e5f8Sopenharmony_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. 452fe4e5f8Sopenharmony_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. 462fe4e5f8Sopenharmony_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. 472fe4e5f8Sopenharmony_ci7. policyitem filefilter: Used to bind filefilter which define filter rules. 482fe4e5f8Sopenharmony_ci8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is used to filter file path. 492fe4e5f8Sopenharmony_ci 502fe4e5f8Sopenharmony_ciNote:If the text contains special characters, please escape them according to the following rules: 512fe4e5f8Sopenharmony_ci" == > 522fe4e5f8Sopenharmony_ci& == > 532fe4e5f8Sopenharmony_ci' == > 542fe4e5f8Sopenharmony_ci< == > 552fe4e5f8Sopenharmony_ci> == > 562fe4e5f8Sopenharmony_ci--> 572fe4e5f8Sopenharmony_ci<configuration> 582fe4e5f8Sopenharmony_ci <oatconfig> 592fe4e5f8Sopenharmony_ci <licensefile>hispark_taurus/linux/LICENSE|hispark_taurus/liteos_a/board/LICENSE|hispark_taurus/uboot/reg/LICENSE|hispark_aries/uboot/reg/LICENSE|hispark_taurus/audio_drivers/LICENSE|</licensefile> 602fe4e5f8Sopenharmony_ci <policylist> 612fe4e5f8Sopenharmony_ci <policy name="projectPolicy" desc=""> 622fe4e5f8Sopenharmony_ci <policyitem type="copyright" name="Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED." path=".*" desc="HiSilicon copyright"/> 632fe4e5f8Sopenharmony_ci <policyitem type="copyright" name="Copyright (c) 2021 HiSilicon (Shanghai) Technologies CO., LIMITED." path=".*" desc="HiSilicon copyright"/> 642fe4e5f8Sopenharmony_ci <policyitem type="copyright" name="Copyright (C) 2020 Hisilicon (Shanghai) Technologies Co., Ltd. All rights reserved." path=".*" desc="HiSilicon copyright"/> 652fe4e5f8Sopenharmony_ci <policyitem type="copyright" name="Copyright (C) 2022 Hisilicon (Shanghai) Technologies Co., Ltd. All rights reserved." path=".*" desc="HiSilicon copyright"/> 662fe4e5f8Sopenharmony_ci <policyitem type="license" name="BSD-3-Clause" path=".*" desc="HiSilicon copyright"/> 672fe4e5f8Sopenharmony_ci <policyitem type="license" name="EndUserLicenseAgreement" path=".*" desc="HiSilicon copyright"/> 682fe4e5f8Sopenharmony_ci <policyitem type="copyright" name="Huawei Technologies Co., Ltd. All rights reserved." path=".*" desc="original huawei copyright"/> 692fe4e5f8Sopenharmony_ci <policyitem type="copyright" name="Copyright (C) 2009-2018 Realtek Corporation" path=".*" desc="Realtek copyright"/> 702fe4e5f8Sopenharmony_ci <policyitem type="copyright" name="Copyright 2009-2012 Broadcom Corporation" path=".*" desc="Realtek copyright"/> 712fe4e5f8Sopenharmony_ci <policyitem type="copyright" name="Copyright (c) 2022 Huawei Device Co., Ltd." path=".*" desc="original huawei copyright"/> 722fe4e5f8Sopenharmony_ci <policyitem type="license" name="GPL-2.0" path=".*" desc="Kernel space code"/> 732fe4e5f8Sopenharmony_ci </policy> 742fe4e5f8Sopenharmony_ci </policylist> 752fe4e5f8Sopenharmony_ci <filefilterlist> 762fe4e5f8Sopenharmony_ci <filefilter name="defaultFilter" desc="Files not to check"> 772fe4e5f8Sopenharmony_ci <!--filteritem type="filename" name="*.lds|*.pod"/--> 782fe4e5f8Sopenharmony_ci <!--filteritem type="filepath" name="dir name underproject/.*" desc="Describe the reason for filtering scan results"/--> 792fe4e5f8Sopenharmony_ci <filteritem type="filename" name="fstab.Hi3751V350" desc="initial script for mounting partions"/> 802fe4e5f8Sopenharmony_ci <filteritem type="filename" name="Hi3751V350-slaveboot-emmc.xml" desc="partion table for burning images"/> 812fe4e5f8Sopenharmony_ci </filefilter> 822fe4e5f8Sopenharmony_ci <filefilter name="defaultPolicyFilter" desc="Filters for compatibility, license header policies"> 832fe4e5f8Sopenharmony_ci <filteritem type="filepath" name="hispark_taurus/uboot/.*" desc="uboot"/> 842fe4e5f8Sopenharmony_ci <filteritem type="filepath" name="hispark_aries/uboot/.*" desc="uboot"/> 852fe4e5f8Sopenharmony_ci <filteritem type="filepath" name="hispark_taurus/linux/updater/.*" desc="updater config"/> 862fe4e5f8Sopenharmony_ci <filteritem type="filepath" name="hispark_taurus/linux/system/.*.xml" desc="burn config"/> 872fe4e5f8Sopenharmony_ci <filteritem type="filepath" name="hispark_taurus/linux/config.gni" desc="build config"/> 882fe4e5f8Sopenharmony_ci <filteritem type="filepath" name="hispark_pegasus/liteos_m/config.gni" desc="build config"/> 892fe4e5f8Sopenharmony_ci <!--filteritem type="filepath" name="dir name underproject/.*" desc="Describe the reason for filtering scan results"/--> 902fe4e5f8Sopenharmony_ci <filteritem type="filename" name="NOTICE" desc="Temp files"/> 912fe4e5f8Sopenharmony_ci <filteritem type="filename" name="BUILD.gn" desc="Temp files"/> 922fe4e5f8Sopenharmony_ci <filteritem type="filepath" name="hispark_phoenix/linux/boot/logo.img" desc="Temp file"/> 932fe4e5f8Sopenharmony_ci <filteritem type="filepath" name="hispark_phoenix/linux/boot/bootargs.bin" desc="Temp file"/> 942fe4e5f8Sopenharmony_ci <filteritem type="filepath" name="hispark_phoenix/linux/boot/slaveboot.bin" desc="Temp file"/> 952fe4e5f8Sopenharmony_ci <filteritem type="filepath" name="hispark_phoenix/linux/boot/atf.bin" desc="Temp file"/> 962fe4e5f8Sopenharmony_ci <filteritem type="filepath" name="hispark_phoenix/linux/boot/fastboot.bin" desc="Temp file"/> 972fe4e5f8Sopenharmony_ci <filteritem type="filepath" name="hispark_phoenix/linux/boot/panel.img" desc="prebuilt boot image"/> 982fe4e5f8Sopenharmony_ci <filteritem type="filepath" name="hispark_phoenix/linux/boot/dtbo.img" desc="prebuilt boot image"/> 992fe4e5f8Sopenharmony_ci </filefilter> 1002fe4e5f8Sopenharmony_ci <filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies" > 1012fe4e5f8Sopenharmony_ci <filteritem type="filename" name="NOTICE" desc="Temp files"/> 1022fe4e5f8Sopenharmony_ci <filteritem type="filename" name="BUILD.gn" desc="Temp files"/> 1032fe4e5f8Sopenharmony_ci <filteritem type="filepath" name="hispark_taurus/uboot/.*" desc="uboot"/> 1042fe4e5f8Sopenharmony_ci <filteritem type="filepath" name="hispark_aries/uboot/.*" desc="uboot"/> 1052fe4e5f8Sopenharmony_ci <filteritem type="filepath" name="hispark_taurus/linux/updater/.*" desc="updater config"/> 1062fe4e5f8Sopenharmony_ci <filteritem type="filepath" name="hispark_taurus/linux/system/.*.xml" desc="burn config"/> 1072fe4e5f8Sopenharmony_ci <filteritem type="filepath" name="hispark_taurus/linux/config.gni" desc="build config"/> 1082fe4e5f8Sopenharmony_ci <filteritem type="filepath" name="hispark_phoenix/linux/boot/logo.img" desc="Temp file"/> 1092fe4e5f8Sopenharmony_ci <filteritem type="filepath" name="hispark_phoenix/linux/boot/bootargs.bin" desc="Temp file"/> 1102fe4e5f8Sopenharmony_ci <filteritem type="filepath" name="hispark_phoenix/linux/boot/slaveboot.bin" desc="Temp file"/> 1112fe4e5f8Sopenharmony_ci <filteritem type="filepath" name="hispark_phoenix/linux/boot/atf.bin" desc="Temp file"/> 1122fe4e5f8Sopenharmony_ci <filteritem type="filepath" name="hispark_phoenix/linux/boot/fastboot.bin" desc="Temp file"/> 1132fe4e5f8Sopenharmony_ci <filteritem type="filepath" name="hispark_phoenix/linux/boot/panel.img" desc="prebuilt boot image"/> 1142fe4e5f8Sopenharmony_ci <filteritem type="filepath" name="hispark_phoenix/linux/boot/dtbo.img" desc="prebuilt boot image"/> 1152fe4e5f8Sopenharmony_ci </filefilter> 1162fe4e5f8Sopenharmony_ci <filefilter name="licenseFileNamePolicyFilter" desc="Filters for LICENSE file policies" > 1172fe4e5f8Sopenharmony_ci <!--filteritem type="filepath" name="dir name underproject/.*" desc="Describe the reason for filtering scan results"/--> 1182fe4e5f8Sopenharmony_ci </filefilter> 1192fe4e5f8Sopenharmony_ci <filefilter name="readmeFileNamePolicyFilter" desc="Filters for README file policies" > 1202fe4e5f8Sopenharmony_ci </filefilter> 1212fe4e5f8Sopenharmony_ci <filefilter name="readmeOpenSourcefileNamePolicyFilter" desc="Filters for README.OpenSource file policies" > 1222fe4e5f8Sopenharmony_ci <!--filteritem type="filepath" name="dir name underproject/.*" desc="Describe the reason for filtering scan results"/--> 1232fe4e5f8Sopenharmony_ci </filefilter> 1242fe4e5f8Sopenharmony_ci <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies" > 1252fe4e5f8Sopenharmony_ci <filteritem type="filename" name="*.a|*.so|*.bin|*.png" desc="Temp files"/> 1262fe4e5f8Sopenharmony_ci <filteritem type="filename" name="mkimage" desc="The third-party tool mkimage comes from device/hisilicon/third_party/uboot in where its license and copyright information were retained"/> 1272fe4e5f8Sopenharmony_ci <filteritem type="filename" name="rsa_private_key2048.pem" desc="key value and cannot add extra info"/> 1282fe4e5f8Sopenharmony_ci <filteritem type="filename" name="*.img|*.gif" desc="prebuilt boot images"/> 1292fe4e5f8Sopenharmony_ci <filteritem type="filename" name="rtl8723d_config" desc="rtl8723d config"/> 1302fe4e5f8Sopenharmony_ci <filteritem type="filename" name="rtl8723d_fw" desc="rtl8723d fw"/> 1312fe4e5f8Sopenharmony_ci </filefilter> 1322fe4e5f8Sopenharmony_ci 1332fe4e5f8Sopenharmony_ci </filefilterlist> 1342fe4e5f8Sopenharmony_ci 1352fe4e5f8Sopenharmony_ci </oatconfig> 1362fe4e5f8Sopenharmony_ci</configuration> 137