LoginSignup
0
0

More than 1 year has passed since last update.

PetaLinuxのカーネルにパッチをあてる

Posted at

環境

  • PetaLinux 2020.2

方法

PetaLinux 2020.2のRelease Notesを確認する。

LinuxのGitリポジトリとタグが分かる。

09.png

適当なフォルダにcloneする。

$ git clone https://github.com/Xilinx/linux-xlnx.git
$ cd linux-xlnx
$ git checkout xlnx_rebase_v5.4_2020.2

カーネルをカスタマイズする。

パッチファイルを作成する。

$ git diff > sample.patch

作成したパッチファイルを {PetaLinuxのプロジェクトフォルダ}/project-spec/meta-user/recipes-kernel/linux/linux-xlnx/ 以下にコピーする。

{PetaLinuxのプロジェクトフォルダ}/project-spec/meta-user/recipes-kernel/linux/linux-xlnx_%.bbappendファイルを作成し、内容を以下のように編集する。

linux-xlnx_%.bbappend
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

SRC_URI += "file://sample.patch"

PetaLinuxをリビルドする。

$ petalinux-build

参考URL

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0