mirror of
https://github.com/openharmony/kernel_linux_common_modules.git
synced 2026-08-27 01:31:36 -04:00
90dc7a386f
ohos inclusion category: feature issue: #I76RYD CVE:NA Signed-off-by: Huzhaodong <huzhaodong@huawei.com>
32 lines
706 B
Bash
32 lines
706 B
Bash
#!/bin/bash
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (c) 2023 Huawei Device Co., Ltd.
|
|
#
|
|
|
|
set -e
|
|
|
|
OHOS_SOURCE_ROOT=$1
|
|
KERNEL_BUILD_ROOT=$2
|
|
PRODUCT_NAME=$3
|
|
KERNEL_VERSION=$4
|
|
QOS_AUTH_SOURCE_ROOT=$OHOS_SOURCE_ROOT/kernel/linux/common_modules/qos_auth
|
|
|
|
function main()
|
|
{
|
|
pushd .
|
|
|
|
cd $KERNEL_BUILD_ROOT/include/linux/sched
|
|
ln -sf $(realpath --relative-to=$KERNEL_BUILD_ROOT/include/linux/sched $QOS_AUTH_SOURCE_ROOT/include)/*.h ./
|
|
|
|
if [ ! -d "$KERNEL_BUILD_ROOT/drivers/auth_ctl" ]; then
|
|
mkdir $KERNEL_BUILD_ROOT/drivers/auth_ctl
|
|
fi
|
|
|
|
cd $KERNEL_BUILD_ROOT/drivers/auth_ctl
|
|
ln -sf $(realpath --relative-to=$KERNEL_BUILD_ROOT/drivers/auth_ctl $QOS_AUTH_SOURCE_ROOT/auth_ctl)/* ./
|
|
|
|
popd
|
|
}
|
|
|
|
main
|