kernel 添加此commit内容
https://gitcode.com/openharmony/kernel_linux_5.10/commit/28807d3beffd4a730a1e318ef53c1ea5b9a27f82?ref=28807d3beffd4a730a1e318ef53c1ea5b9a27f82

git remote add gitcode_kernel https://gitcode.com/openharmony/kernel_linux_5.10.git
git fetch gitcode_kernel
git cherry-pick 28807d3beffd4a730a1e318ef53c1ea5b9a27f82

在config宏中打开

CONFIG_FS_VERITY=y
CONFIG_SECURITY_CODE_SIGN=y
CONFIG_SECURITY_XPM=y

device/board/{DEVICE}/tv/common/kernel/build_kernel.sh
中加入

XPM_PATCH_FILE=${ROOT_DIR}/kernel/linux/common_modules/xpm/apply_xpm.sh
CODE_SIGN_PATCH_FILE=${ROOT_DIR}/kernel/linux/common_modules/code_sign/apply_code_sign.sh


    #xpm
    if [ -f $XPM_PATCH_FILE ]; then
        bash $XPM_PATCH_FILE ${ROOT_DIR} ${KERNEL_SRC_TMP_PATH} ${DEVICE_NAME} ${KERNEL_VERSION}
    fi

    #code_sign
    if [ -f $CODE_SIGN_PATCH_FILE ]; then
        bash $CODE_SIGN_PATCH_FILE ${ROOT_DIR} ${KERNEL_SRC_TMP_PATH} ${DEVICE_NAME} ${KERNEL_VERSION}
    fi
Logo

社区规范:仅讨论OpenHarmony相关问题。

更多推荐