如何像在 kernel-ppa/mainline 一樣建立核心 .deb 檔案?

如何像在 kernel-ppa/mainline 一樣建立核心 .deb 檔案?

我想像在http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.15.4/

我已經轉到內核原始碼的根目錄並執行了以下操作:

fakeroot debian/rules binary

就像告訴的那樣https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel#Building_the_kernel

詳細資訊:我已從該核心版本的 kernel-ppa/mainline .deb 檔案中複製了 .config 文件

我越來越:

linux-headers-4.15.4_4.15.4-4_amd64.deb
linux-image-4.15.4_4.15.4-4_amd64.deb
linux-image-4.15.4-dbg_4.15.4-4_amd64.deb
linux-libc-dev_4.15.4-4_amd64.deb

但根據網站,我應該得到:

linux-headers-4..._all.deb
linux-headers-4....-generic_4.8.0-17.19_amd64.deb
linux-image-4....-generic_4.8.0-17.19_amd64.deb

以及可能的linux-extra...新版本的圖像。

這也是其他命令的輸出:

lz@air:~/Downloads/linux-4.15.4$ fakeroot debian/rules binary-headers binary-generic binary-perarch
make: *** No rule to make target 'binary-headers'.  Stop.
lz@air:~/Downloads/linux-4.15.4$ fakeroot debian/rules binary-generic binary-perarch
make: *** No rule to make target 'binary-generic'.  Stop.

更新:

值得一提的是,我的核心來自 kernel.org。和ubuntu的核心原始碼有什麼差別?如何獲得簽名的源代碼?我只看到了透過 git 克隆的選項。

相關內容