Commit 3d4b775 1 parent 8f4b8f1 commit 3d4b775 Copy full SHA for 3d4b775
File tree 4 files changed +1064
-633
lines changed
4 files changed +1064
-633
lines changed Original file line number Diff line number Diff line change 10
10
#### 2. 更新 config 文件
11
11
在本地将您获取的 config 文件替换根目录下的 ` config ` ,可以从您系统的 ` /boot/config* ` 文件复制,或者手动编辑
12
12
13
- #### 3. 编写自定义修改脚本
14
- 当前 ` /patch.d/ ` 目录下的修改脚本是只针对我自己的需求编写的,建议您先将其删掉,然后编写自己的脚本放在这个目录下,在脚本执行过程中会自动应用该目录下的所有脚本
13
+ #### 3. 编写自定义path
14
+ 首先下载一份需要编译的内核源码,然后cp一份整个源码目录
15
+ ~~~ bash
16
+ xz -d linux-5.15.102.tar.xz
17
+ tar -xvf linux-5.15.102.tar
18
+ cp -r linux-5.15.102 linux-5.15.102-modify
19
+ ~~~
20
+
21
+ 之后在linux-5.15.102-modify中修改后,在上级目录中 生成patch
22
+ ~~~ bash
23
+ diff -Nur linux-5.15.102 linux-5.15.102-modify > xxx.patch
24
+ ~~~
25
+
26
+ 应用patch方法
27
+ ~~~ bash
28
+ cd linux-5.15.102
29
+ path -p1 < /path/to/xxx.path
30
+ ~~~
15
31
16
32
#### 4. 推送修改
17
33
推送后,action 自动触发,可以在您的仓库页面的 ` Actions ` 选项卡查看进度详情。
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- VERSION=$( grep ' Kernel Configuration ' < config | awk ' {print $3} ' )
3
+ VERSION=" 5.15.102 "
4
4
5
5
# add deb-src to sources.list
6
6
sed -i " /deb-src/s/# //g" /etc/apt/sources.list
@@ -26,7 +26,7 @@ scripts/config --disable DEBUG_INFO
26
26
27
27
# apply patches
28
28
# shellcheck source=src/util.sh
29
- source ../patch.d/* .sh
29
+ patch -p1 < ../patch.d/gpl.patch
30
30
31
31
# build deb packages
32
32
CPU_CORES=$(( $(grep - c processor < / proc/ cpuinfo)* 2 ))
You can’t perform that action at this time.
0 commit comments