update openharmony 1.0.1

This commit is contained in:
mamingshuai
2021-03-11 18:43:57 +08:00
parent e351799d39
commit 73a7b66116
611 changed files with 17977 additions and 14077 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/bash
#
# Copyright (c) 2013-2019, Huawei Technologies Co., Ltd. All rights reserved.
# Copyright (c) 2020, Huawei Device Co., Ltd. All rights reserved.
# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
@@ -30,20 +30,26 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
set -e
echo "sh param:$1,$2,$3"
source="tools/build/config/$1_release.config"
echo "sh param:$1,$2,$3,$4,$5,$6,$7"
destination=".config"
tee=""
outdir="../..$3/test_info/gen/kernel/test"
if [ "$5" = "tee" ]; then
tee="_tee"
fi
productName="$(basename $7)"
source="tools/build/config/${productName}_release.config"
if [ "$2" = "clang" ]; then
if [ "$3" = "debug" ]; then
source="tools/build/config/debug/$1_$2.config"
if [ "$4" = "debug" ]; then
source="tools/build/config/debug/${productName}_$2$tee.config"
else
source="tools/build/config/$1_$2_release.config"
source="tools/build/config/${productName}_$2_release$tee.config"
fi
elif [ "$2" = "gcc" ]; then
if [ "$3" = "debug" ]; then
source="tools/build/config/$1_debug_shell.config"
if [ "$4" = "debug" ]; then
source="tools/build/config/${productName}_debug_shell$tee.config"
else
source="tools/build/config/$1_release.config"
source="tools/build/config/${productName}_release$tee.config"
fi
fi
if [ -d "./out" ]; then
@@ -53,3 +59,7 @@ if [ -f "$destination" ]; then
rm -rf $destination
fi
cp $source $destination
mkdir -p $outdir
cp kernel_test.sources $outdir