From e22b6a7eddbe99f729778606c96083b0fddeb84c Mon Sep 17 00:00:00 2001 From: "rick.chan" Date: Mon, 27 Jul 2020 10:39:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=BB=84=E7=BB=87=E7=BB=93?= =?UTF-8?q?=E6=9E=84.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: rick.chan --- .../Linux/Kernel/Linux_Kernel_开发总结.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Software/Development/OperatingSystem/Linux/Kernel/Linux_Kernel_开发总结.md b/Software/Development/OperatingSystem/Linux/Kernel/Linux_Kernel_开发总结.md index ef5816c..f736f8d 100644 --- a/Software/Development/OperatingSystem/Linux/Kernel/Linux_Kernel_开发总结.md +++ b/Software/Development/OperatingSystem/Linux/Kernel/Linux_Kernel_开发总结.md @@ -1,6 +1,8 @@ # Linux Kernel 开发总结 -## 编译 Kernel 常用命令 +## 1. 编译 Kernel + +### 1.1. 常用命令 ```bash # 通过 arch/arm64/configs/xxx_defconfig 生成 .config @@ -19,7 +21,12 @@ make clean make distclean ``` -## 独立模块的编译 +### 1.2. make menuconfig 常用快捷键 + +* /:搜索; +* shift+<关键字>:在当前页面快速查找带有<关键字>的配置项。 + +## 2. 独立模块的编译 有些模块在开发时往往独立于内核进行组织和编译,其编译方法如下: @@ -39,8 +46,3 @@ all: clean: $(MAKE) -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean ``` - -## make menuconfig 常用快捷键 - -* /:搜索; -* shift+<关键字>:在当前页面快速查找带有<关键字>的配置项。