Bootstrap

deepin15.5 建立内核源码树

简要说明

系统环境: deepin-15.5-amd64
deepin在安装系统时,已经有有内核源码树可直接使用:

# cd /lib/modules/4.9.0-deepin13-amd64/build

根据网上其他博客的整理,在自己电脑上按照如下步骤,重新完成新的源码树建立,步骤如下。

重新建立源码树

下面主要介绍重新建立新的源码树的过程
1.查看当前运行的内核版本

skyeworld@skyeworld-PC:~/Desktop$ uname -r
4.9.0-deepin13-amd64

2.查找可用的源码包

skyeworld@skyeworld-PC:~/Desktop$ sudo apt-cache search linux-source
[sudo] skyeworld 的密码:
linux-source - Linux kernel source (meta-package)
linux-source-4.1 - Linux kernel source for version 4.1 with Debian patches
linux-source-4.11 - Linux kernel source for version 4.11 with Debian patches
linux-source-4.2 - Linux kernel source for version 4.2 with Debian patches
linux-source-4.3 - Linux kernel source for version 4.3 with Debian patches
linux-source-4.4 - Linux kernel source for version 4
;