Customizing, building and deploy

2021-12-07  本文已影响0人  semiscone

1 Patch the kernel

In this example, we create a patch for Linux GPIO driver. We should do the steps as below:

cd tmp/work/<machine>-fsl-linux/linux-s32/5.4-r0/git/drives/gpio

and edit the source file gpio-siul2-s32gen1.c

cd <builddirectory>/tmp/work/<machine>-fsl-linux/linux-s32/5.4-r0/git
git add drivers/gpio/gpio-siul2-s32gen1.c
git commit -s -m <title of your commit>
git format-patch -1
Check in <builddirectory>/tmp/work/<machine>-fsl-linux/linux-s32/5.4-r0/git folder, there is a patch file created, e.g.
0001-test-gpio-repackage.patch
SRC_URI += "file://0001-test-gpio-repackage.patch"
source ./SOURCE_THIS
bitbake virtual/kernel -c cleansstate
bitbake virtual/kernel
上一篇 下一篇

猜你喜欢

热点阅读