From 2e433f4cc088eca6c2750a0b5bcb752e97554e51 Mon Sep 17 00:00:00 2001 From: handyohos Date: Mon, 18 May 2026 21:25:40 +0800 Subject: [PATCH] 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) Signed-off-by: handyohos Change-Id: If4c6fac20fd7aaaed0052c91e69f24a21747e62c --- xpm/apply_xpm.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/xpm/apply_xpm.sh b/xpm/apply_xpm.sh index 6a4f3a2..6ee454e 100755 --- a/xpm/apply_xpm.sh +++ b/xpm/apply_xpm.sh @@ -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)/* ./