From d98130025381a3ec44e85e124f64016d11ffd54e Mon Sep 17 00:00:00 2001 From: "ithink.chan" Date: Wed, 15 Apr 2020 16:05:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=20Yocto=20=E5=9F=BA=E6=9C=AC?= =?UTF-8?q?=E4=BD=BF=E7=94=A8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ithink.chan --- Software/Applications/Yocto/Yocto_基本使用.md | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Software/Applications/Yocto/Yocto_基本使用.md diff --git a/Software/Applications/Yocto/Yocto_基本使用.md b/Software/Applications/Yocto/Yocto_基本使用.md new file mode 100644 index 0000000..d3b0fb5 --- /dev/null +++ b/Software/Applications/Yocto/Yocto_基本使用.md @@ -0,0 +1,52 @@ +# Yocto 基本使用 + +## 交叉编译配置 + +在 yocto 根目录下: + +```sh +source /oe-init-build-env +``` + +## 编译目标 + +使用如下命令查看所有编译目标: + +```sh +bitbake -s +``` + +## 在 build 目录下进行编译 + +```sh +bitbake -C compile +``` + +参数: + +-C 强制编译,配置、编译目标并打包; +-c 不强制。 + +生成的文件在: + +```sh +/build/tmp/deploy/images/ +``` + +目录下。 + +## Linux Kernel + +Kernel 源码在: + +```sh +/build/tmp/work-shared//kernel-source +``` + +目录下。 + +Kernel 配置方法为: + +```sh +bitbake linux-renesas -c do_menuconfig +```