From d8ed270cd38f8b724850c78b9000bcb19764911f Mon Sep 17 00:00:00 2001 From: zhushengle Date: Tue, 27 Sep 2022 16:21:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0OpenSource=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=92=8CBUILD.gn=E7=94=9F=E6=88=90NOTICE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Close #I5TELU Signed-off-by: zhushengle --- BUILD.gn | 6 ++++++ NOTICE | 10 ++++++++++ README.OpenSource | 11 +++++++++++ 3 files changed, 27 insertions(+) create mode 100644 README.OpenSource diff --git a/BUILD.gn b/BUILD.gn index f4f28e1..c338e85 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -10,6 +10,7 @@ # See the Mulan PSL v2 for more details. # Create: 2022-09-21 # Description: UniProton内核编译脚本。 +import("//build/ohos.gni") import("//build/lite/config/component/lite_component.gni") import("//third_party/lwip/lwip.gni") import("//third_party/littlefs/littlefs.gni") @@ -167,6 +168,10 @@ config("os_config") { } } +ohos_static_library("notice") { + license_file = "./NOTICE" +} + static_library("libkernel") { include_dirs = KERNEL_BASE_INCLUDE_DIRS sources = KERNEL_BASE_SOURCES @@ -216,6 +221,7 @@ static_library("libkernel") { group("kernel") { deps = [ ":libkernel", + ":notice" ] } diff --git a/NOTICE b/NOTICE index e69de29..be72af3 100644 --- a/NOTICE +++ b/NOTICE @@ -0,0 +1,10 @@ +# Copyright (c) 2022-2022 Huawei Technologies Co., Ltd. All rights reserved. +# +# UniProton is licensed under Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. diff --git a/README.OpenSource b/README.OpenSource new file mode 100644 index 0000000..67ed759 --- /dev/null +++ b/README.OpenSource @@ -0,0 +1,11 @@ +[ + { + "Name" : "uniproton", + "License" : "MulanPSL-2.0", + "License File" : "LICENSE", + "Version Number" : "1.1", + "Owner" : "zhushengle@huawei.com", + "Upstream URL" : "https://gitee.com/openeuler/UniProton", + "Description" : "Uniproton is a highly real-time kernel implementation of the MulanPSL-2.0 license" + } +]