最終更新:2016-04-11 (月) 14:38:25 (2934d)  

RHEL/Linuxカーネル/ビルド
Top / RHEL / Linuxカーネル / ビルド

How to patch the RHEL kernel with custom patch? (this is another way todo it)

コマンド

必要なパッケージ

必要なファイル

  • .rpmmacros?

テスト用パッチ

  • linux-kernel-test.patch?
    You have two choices here. If you're only patching one file, the RHEL3,
    RHEL4-post U2 and RHEL5 kernel spec files are set up with the necessary
    commands to automatically include a patch file called
    "linux-kernel-test.patch". If you change the name of your patch file to
    "linux-kernel-test.patch", it will automatically be built into the
    kernel when running the rpmbuild command.

スペックファイル

  • パッチをスペックファイルに追記
    Patch241: linux-2.6.9-22.EL-x86_64-reboot-rhel4u2-01.patch
  • That put the source file into the distribution, now it has to be applied. Add a corresponding
    #Description of kernel patch
    %patch241 -p1