mirror of
https://github.com/openharmony/kernel_linux_common_modules.git
synced 2026-08-26 17:16:37 -04:00
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
This commit is contained in:
@@ -10,7 +10,6 @@ KERNEL_BUILD_ROOT=$2
|
||||
PRODUCT_NAME=$3
|
||||
KERNEL_VERSION=$4
|
||||
XPM_SOURCE_ROOT=$OHOS_SOURCE_ROOT/kernel/linux/common_modules/xpm
|
||||
XPM_HEADER_SOURCE_ROOT=$OHOS_SOURCE_ROOT/kernel/linux/linux-5.10/include/linux
|
||||
|
||||
function main()
|
||||
{
|
||||
@@ -20,10 +19,6 @@ function main()
|
||||
mkdir -p $KERNEL_BUILD_ROOT/security/xpm
|
||||
fi
|
||||
|
||||
cd $KERNEL_BUILD_ROOT/include/linux
|
||||
ln -s -f $(realpath --relative-to=$KERNEL_BUILD_ROOT/include/linux $XPM_HEADER_SOURCE_ROOT)/xpm.h ./
|
||||
ln -s -f $(realpath --relative-to=$KERNEL_BUILD_ROOT/include/linux $XPM_HEADER_SOURCE_ROOT)/xpm_types.h ./
|
||||
|
||||
cd $KERNEL_BUILD_ROOT/security/xpm
|
||||
ln -s -f $(realpath --relative-to=$KERNEL_BUILD_ROOT/security/xpm/ $XPM_SOURCE_ROOT)/* ./
|
||||
|
||||
|
||||
Reference in New Issue
Block a user