How can I create a patch for .config in my custom layer

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How can I create a patch for .config in my custom layer

跳至解决方案
1,805 次查看
Derek0902
Contributor II

Hi,

 

After I modified kernel config use this command below, there is a .config in <build_dir>/tmp/work/imx8mqevk-poky-linux/linux-imx/6.1.36+gitAUTOINC+04b05c5527-r0/build

 

$ bitbake linux-imx -c menuconfig 

 

Then I override defconfig with .config and create a patch in my custom layer. But it didn't take effect in my board.

 

$ cp .config <build_dir>/tmp/work/imx8mqevk-poky-linux/linux-imx/6.1.36+gitAUTOINC+04b05c5527-r0/git/arch/arm64/configs/defconfig

 

 

I want to create a patch for this config in my custom layer. How can I do that?

 

Thanks & Regards,

Derek Lin

0 项奖励
回复
1 解答
1,762 次查看
pengyong_zhang
NXP Employee
NXP Employee

HI, @Derek0902 

Sorry to reply late

1. Make sure you have added the configuration changes in your customization layer. This is usually done by adding a conf/layer.conf file, which is read during the build process.

2. In the top-level directory of your customization layer, run the following command to create the patch file:
bitbake-diff . > custom-layer-config-patch
3. This command compares the current.config file in your build directory with the prebuild pristine.config file and generates a patch file custom-layer-config-patch.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,763 次查看
pengyong_zhang
NXP Employee
NXP Employee

HI, @Derek0902 

Sorry to reply late

1. Make sure you have added the configuration changes in your customization layer. This is usually done by adding a conf/layer.conf file, which is read during the build process.

2. In the top-level directory of your customization layer, run the following command to create the patch file:
bitbake-diff . > custom-layer-config-patch
3. This command compares the current.config file in your build directory with the prebuild pristine.config file and generates a patch file custom-layer-config-patch.

0 项奖励
回复
1,761 次查看
Derek0902
Contributor II

Hi @pengyong_zhang ,

 

Thanks for your help. I have found that is in ../source/meta-freescale/recipes-kernel/linux-imx_6.1.bb. 

KBUILD_DEFCONFIG:mx6-generic-bsp = "imx_v7_defconfig"
KBUILD_DEFCONFIG:mx7-generic-bsp = "imx_v7_defconfig"
KBUILD_DEFCONFIG:mx8-generic-bsp = "imx_v8_defconfig"
KBUILD_DEFCONFIG:mx9-generic-bsp = "imx_v8_defconfig"

I modified the kernel config successfully.

 

Thanks & Regards,

 

Derek Lin

 

 

 

 

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-1893462%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%A6%82%E4%BD%95%E5%9C%A8%E6%88%91%E7%9A%84%E8%87%AA%E5%AE%9A%E4%B9%89%E5%B1%82%E4%B8%AD%E4%B8%BA%20.config%20%E5%88%9B%E5%BB%BA%E8%A1%A5%E4%B8%81%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1893462%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E5%9C%A8%E6%88%91%E4%BF%AE%E6%94%B9%E5%86%85%E6%A0%B8%E9%85%8D%E7%BD%AE%E5%90%8E%E4%BD%BF%E7%94%A8%E4%B8%8B%E9%9D%A2%E7%9A%84%E5%91%BD%E4%BB%A4%EF%BC%8C%3CBUILD_DIR%3E%2Ftmp%2Fwork%2Fimx8mqevk-poky-linux%2Flinux-imx%2F6.1.36%2BgitAUTOINC%2B04b05c5527-r0%2Fbuild%20%E4%B8%AD%E6%9C%89%E4%B8%80%E4%B8%AA%20.config%3C%2FBUILD_DIR%3E%3C%2FP%3E%3CBR%20%2F%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%20translate%3D%22no%22%3E%24%20bitbake%20linux-imx%20-c%20menuconfig%20%3C%2FCODE%3E%3C%2FPRE%3E%3CBR%20%2F%3E%3CP%3E%E7%84%B6%E5%90%8E%E6%88%91%E7%94%A8%20.config%20%E8%A6%86%E7%9B%96%20defconfig%E5%B9%B6%E5%9C%A8%E6%88%91%E7%9A%84%E8%87%AA%E5%AE%9A%E4%B9%89%E5%B1%82%E4%B8%AD%E5%88%9B%E5%BB%BA%E4%B8%80%E4%B8%AA%E8%A1%A5%E4%B8%81%E3%80%82%E4%BD%86%E5%AE%83%3CSPAN%20class%3D%22%22%3E%E5%9C%A8%E6%88%91%E7%9A%84%E4%B8%BB%E6%9D%BF%E4%B8%8A%E6%B2%A1%E6%9C%89%E7%94%9F%E6%95%88%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%20translate%3D%22no%22%3E%24%20cp%20.config%20%3CBUILD_DIR%3E%2Ftmp%2Fwork%2Fimx8mqevk-poky-linux%2Flinux-imx%2F6.1.36%2BgitAUTOINC%2B04b05c5527-r0%2Fgit%2Farch%2Farm64%2Fconfigs%2Fdefconfig%3C%2FBUILD_DIR%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CP%3E%E6%88%91%E6%83%B3%E5%9C%A8%E6%88%91%E7%9A%84%E8%87%AA%E5%AE%9A%E4%B9%89%E5%B1%82%E4%B8%AD%E4%B8%BA%E8%AF%A5%E9%85%8D%E7%BD%AE%E5%88%9B%E5%BB%BA%E4%B8%80%E4%B8%AA%E8%A1%A5%E4%B8%81%E3%80%82%E6%88%91%E6%80%8E%E6%A0%B7%E6%89%8D%E8%83%BD%E5%81%9A%E5%88%B0%E8%BF%99%E4%B8%80%E7%82%B9%EF%BC%9F%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E8%B0%A2%E8%B0%A2%E5%92%8C%E9%97%AE%E5%80%99%EF%BC%8C%3C%2FP%3E%3CP%3EDerek%20Lin%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1893462%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MX%208%20%E7%B3%BB%E5%88%97%20%7C%20i.MX%208QuadMax%20(8QM)%20%7C%208QuadPlus%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1896265%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%A6%82%E4%BD%95%E5%9C%A8%E6%88%91%E7%9A%84%E8%87%AA%E5%AE%9A%E4%B9%89%E5%B1%82%E4%B8%AD%E4%B8%BA%20.config%20%E5%88%9B%E5%BB%BA%E8%A1%A5%E4%B8%81%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1896265%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F202673%22%20target%3D%22_blank%22%3E%40pengyong_zhang%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E6%84%9F%E8%B0%A2%E6%82%A8%E7%9A%84%E5%B8%AE%E5%8A%A9%E3%80%82%E6%88%91%E5%8F%91%E7%8E%B0%E5%AE%83%E5%9C%A8..%2Fsource%2Fmeta-freescale%2Frecipes-kernel%2Flinux-imx_6.1.bb%E3%80%82%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%20translate%3D%22no%22%3EKBUILD_DEFCONFIG%3Amx6-generic-bsp%20%3D%20%22imx_v7_defconfig%22%0AKBUILD_DEFCONFIG%3Amx7-generic-bsp%20%3D%20%22imx_v7_defconfig%22%0AKBUILD_DEFCONFIG%3Amx8-generic-bsp%20%3D%20%22imx_v8_defconfig%22%0AKBUILD_DEFCONFIG%3Amx9-generic-bsp%20%3D%20%22imx_v8_defconfig%22%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%E6%88%91%E6%88%90%E5%8A%9F%E4%BF%AE%E6%94%B9%E4%BA%86%E5%86%85%E6%A0%B8%E9%85%8D%E7%BD%AE%E3%80%82%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E8%B0%A2%E8%B0%A2%E5%92%8C%E9%97%AE%E5%80%99%EF%BC%8C%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EDerek%20Lin%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1896255%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%A6%82%E4%BD%95%E5%9C%A8%E6%88%91%E7%9A%84%E8%87%AA%E5%AE%9A%E4%B9%89%E5%B1%82%E4%B8%AD%E4%B8%BA%20.config%20%E5%88%9B%E5%BB%BA%E8%A1%A5%E4%B8%81%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1896255%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHI%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F221567%22%20target%3D%22_blank%22%3E%40Derek0902%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%E6%8A%B1%E6%AD%89%E5%9B%9E%E5%A4%8D%E6%99%9A%E4%BA%86%3C%2FP%3E%0A%3CP%3E1.%20%E7%A1%AE%E4%BF%9D%E6%82%A8%E5%B7%B2%E5%9C%A8%E8%87%AA%E5%AE%9A%E4%B9%89%E5%B1%82%E4%B8%AD%E6%B7%BB%E5%8A%A0%E9%85%8D%E7%BD%AE%E6%9B%B4%E6%94%B9%E3%80%82%E8%BF%99%E9%80%9A%E5%B8%B8%E6%98%AF%E9%80%9A%E8%BF%87%E6%B7%BB%E5%8A%A0%20conf%2Flayer.conf%20%E6%96%87%E4%BB%B6%E6%9D%A5%E5%AE%8C%E6%88%90%E7%9A%84%EF%BC%8C%E8%AF%A5%E6%96%87%E4%BB%B6%E5%9C%A8%E6%9E%84%E5%BB%BA%E8%BF%87%E7%A8%8B%E4%B8%AD%E8%A2%AB%E8%AF%BB%E5%8F%96%E3%80%82%3C%2FP%3E%0A%3CP%3E2.%20%E5%9C%A8%E8%87%AA%E5%AE%9A%E4%B9%89%E5%B1%82%E7%9A%84%E9%A1%B6%E5%B1%82%E7%9B%AE%E5%BD%95%E4%B8%AD%EF%BC%8C%E8%BF%90%E8%A1%8C%E4%BB%A5%E4%B8%8B%E5%91%BD%E4%BB%A4%E6%9D%A5%E5%88%9B%E5%BB%BA%E8%A1%A5%E4%B8%81%E6%96%87%E4%BB%B6%EF%BC%9A%3CBR%20%2F%3E%20bitbake-diff%20%E3%80%82%26gt%3B%20%E8%87%AA%E5%AE%9A%E4%B9%89%E5%B1%82%E9%85%8D%E7%BD%AE%E8%A1%A5%E4%B8%81%3CBR%20%2F%3E3.%E6%AD%A4%E5%91%BD%E4%BB%A4%E5%B0%86%E6%9E%84%E5%BB%BA%E7%9B%AE%E5%BD%95%E4%B8%AD%E7%9A%84%20current.config%20%E6%96%87%E4%BB%B6%E4%B8%8E%E9%A2%84%E6%9E%84%E5%BB%BA%E7%9A%84%20pristine.config%20%E6%96%87%E4%BB%B6%E8%BF%9B%E8%A1%8C%E6%AF%94%E8%BE%83%EF%BC%8C%E5%B9%B6%E7%94%9F%E6%88%90%E8%A1%A5%E4%B8%81%E6%96%87%E4%BB%B6%20custom-layer-config-patch%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E