- Embedded Linux Development with Yocto Project
- Otavio Salvador Daiane Angolini
- 327字
- 2021-12-08 12:35:26
Building an image using Hob
Our first step is to set up our build environment, as follows:
$: source poky/oe-init-build-env [build-directory]
We can choose an old build directory or create a new one.
Now, Hob is ready for use. To start it, we should run the following:
$: hob
At startup, Hob performs some parsing tasks, reading the local configuration and available metadata layers. After a short time, Hob proposes a list of available machines. We can select, for example, qemuarm
.
Once the dependency tree is built, select the desired image, for example, core-image-full-cmdline
.
The following screenshot shows the MACHINE
variable content and the image to be built in the Hob interface:

With the target MACHINE
and image selected, the next step is to choose some advanced configuration, such as image types (for example, cpio.gz
, ext2.bz2
, ext3.gz
, jffs2
, ubifs
, and vmdk
) or package formats (rpm
, deb
, IPK
, or TAR
). We can also exclude all packages under the GPLv3 licensing, as shown in Chapter 13, Achieving GPL Compliance.
From the upper-right hand corner of the window, we can access the two areas Images and Settings. Images offers access to the built images (from the past), and Settings performs changes to MACHINE
, parallelization, distribution, shared folders, and BBLAYERS
. Hob modifies the build/conf
directory contents inside our build directory. We can use Hob on our already configured build folder, and all configurations are reflected on Hob. It may be very useful when working on a team.
If we are working to configure the shared environment for a team, we need to pay attention to the variables DL_DIR
and SSTATE_DIR
, which are detailed in Chapter 4, Grasping the BitBake Tool, and Chapter 6, Assimilating Packaging Support.
If we plan to build a standard image, we can click on Build Image and wait for BitBake to run the required tasks to build it. Otherwise, if we want to change the recipe set of an image, we can click on Edit image recipe.
- Linux運維之道(第3版)
- Linux設(shè)備驅(qū)動開發(fā)詳解:基于最新的Linux4.0內(nèi)核
- 每天5分鐘玩轉(zhuǎn)Kubernetes
- WordPress Mobile Web Development:Beginner's Guide
- 構(gòu)建可擴展分布式系統(tǒng):方法與實踐
- 混沌工程:復(fù)雜系統(tǒng)韌性實現(xiàn)之道
- Linux使用和管理指南:從云原生到可觀測性
- Windows 7案例教程
- 分布式高可用架構(gòu)之道
- Linux軟件管理平臺設(shè)計與實現(xiàn)
- Drupal 7 Cookbook
- Linux 從入門到項目實踐(超值版)
- Android應(yīng)用性能優(yōu)化最佳實踐
- Mastering Sass
- Docker容器技術(shù)與運維