Files
handyohos 2e433f4cc0 xpm: Remove header symlink creation for linux-6.6
For linux-6.6, OpenHarmony headers are directly injected into the kernel
source tree, so we no longer need to create symlinks from linux-5.10.

This change:
- Removes XPM_HEADER_SOURCE_ROOT variable pointing to linux-5.10 headers
- Removes symlink creation for xpm.h and xpm_types.h

Related: #150

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: handyohos <zhangxiaotian@huawei.com>
Change-Id: If4c6fac20fd7aaaed0052c91e69f24a21747e62c
2026-05-18 21:25:40 +08:00

29 lines
541 B
Bash
Executable File

#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2022 Huawei Device Co., Ltd.
#
set -e
OHOS_SOURCE_ROOT=$1
KERNEL_BUILD_ROOT=$2
PRODUCT_NAME=$3
KERNEL_VERSION=$4
XPM_SOURCE_ROOT=$OHOS_SOURCE_ROOT/kernel/linux/common_modules/xpm
function main()
{
pushd .
if [ ! -d "$KERNEL_BUILD_ROOT/security/xpm" ]; then
mkdir -p $KERNEL_BUILD_ROOT/security/xpm
fi
cd $KERNEL_BUILD_ROOT/security/xpm
ln -s -f $(realpath --relative-to=$KERNEL_BUILD_ROOT/security/xpm/ $XPM_SOURCE_ROOT)/* ./
popd
}
main