yocto 更新补丁方法

    技术2022-07-13  73

    新建一个自定义的layer层,补丁kernel:

    需要建立相关的配方以及属性

    features  linux-imx_4.9.11.bbappend cxt@ubuntu:~/code/nxp/imx6ull_morty/sources/meta-custom/recipes-kernel/linux$ 

     linux-imx_4.9.11.bbappend 需要与kernel的版本号匹配

    FILESEXTRAPATHS_prepend := "${THISDIR}/features:" SRC_URI_append = " \  file://0001-cxt-add-for-kernel.patch \ file://0001-cxt-delete-some-logs.patch \ file://custom_defconfig \ " do_copy_defconfig_append () {     cp ${WORKDIR}/custom_defconfig ${WORKDIR}/defconfig         cp ${WORKDIR}/custom_defconfig ${WORKDIR}/build/.config } PATCHTOOL = "git"

    custom_defconfig  用于定义自己添加的defconfig文件。

    PATCHTOOL 用于表示patch打补丁用git am方式,yocto默认的打补丁用quilt管理,打上的补丁不会有提交记录,不方便查看。

    给uboot 打补丁方法类似

    files  u-boot-imx_2017.03.bbappend cxt@ubuntu:~/code/nxp/imx6ull_morty/sources/meta-custom/recipes-kernel/u-boot$

    Processed: 0.009, SQL: 9