how to set up kernel modifications in NXP/yocto build system?

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

how to set up kernel modifications in NXP/yocto build system?

1,588 次查看
tylernol
Contributor IV

I am setting up a build system for the imx6ul with NXP's support in yocto. I can generate sd card images for the evk board. The next step I want to do is use a local, eventually Gerrit-hosted, branch of the kernel_imx , add custom kernel drivers and build locally using that rather than having it pulled in from the bb layers source. I should be able to do something like the following , where I have git cloned linux-imx from the NXP repo.

```

DEV_DIR = "/ebs_data/yocto-dev"

KERNEL_SRC = "git://${DEV_DIR}/linux-imx;protocol=file"

SRCBRANCH = "imx_4.9.11_1.0.0_ga"

SRCREV = "427eb8371fd5e9bceec18ca8838ac6eb1e51ad3a"

```

however the local.conf is not the place for it to be since, SRCREV and SRCBRANCH are getting picked up by many recipes and I want it localized to the kernel only. What is the appropriate .bb file to place this in? Thanks!

标签 (2)
标记 (2)
0 项奖励
3 回复数

1,403 次查看
tylernol
Contributor IV

I have,  in this case I believe it does not work in the case for NXP, because NXP has layers that already substitute the linux-imx kernel for the yocto kernel, NXP diverges from the yocto Documentation. Does NXP have documentation that reflects the steps needed for their variant? 

0 项奖励

1,403 次查看
karangajjar
Senior Contributor II

Hi Tyler Arnold,

Please go through below document and let us know for any concerns:

Building Linux Kernel 

You can build kernel without yocto and copy the kernel image to your booting device.

Regards,

Karan Gajjar

0 项奖励

1,403 次查看
karangajjar
Senior Contributor II

Hi Tyler Arnold,

Have you followed below link from the yocto reference manual? It says about working with your own sources

Yocto Project Linux Kernel Development Manual 

Let us know in case of any concern.

Regards,

Karan Gajjar

0 项奖励