1.依赖安装

Yocto
Build Host Packages
You must install essential host packages on your build host. The following command installs the host packages based on an Ubuntu distribution:

sudo apt install gawk wget git diffstat unzip texinfo gcc build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint3 xterm python3-subunit mesa-common-dev zstd liblz4-tool
sudo apt-get install -y git build-essential libsdl1.2-dev texinfo gawk chrpath diffstat

2.配置

. setup evb-ast2600

先到build/evb-ast2600目录下,查看配置文件:

cat conf/local.conf

3.编译

只下载代码

bitbake obmc-phosphor-image -c fetch
test@ubuntu:~/Documents/openbmc_ws/openbmc/build/evb-ast2600$ bitbake obmc-phosphor-image -c fetch
Loading cache: 100% |                                                                                   | ETA:  --:--:--
Loaded 0 entries from dependency cache.
WARNING: /home/test/Documents/openbmc_ws/openbmc/meta-phosphor/recipes-phosphor/mrw/mrw-api-native.bb: QA Issue: mrw-api-native: native/nativesdk class is not inherited last, this can result in unexpected behaviour. Classes inherited after native/nativesdk: mrw-rev.bbclass perl-version.bbclass cpan-base.bbclass perlnative.bbclass [native-last]
Parsing recipes: 100% |#########################################################################################################| Time: 0:02:21
Parsing of 2629 .bb files complete (0 cached, 2629 parsed). 4034 targets, 370 skipped, 0 masked, 0 errors.
WARNING: No bb files in default matched BBFILE_PATTERN_meta-evb-ast2600 '^/home/test/Documents/openbmc_ws/openbmc/meta-evb/meta-evb-aspeed/meta-evb-ast2600/'
NOTE: Resolving any missing task queue dependenciesBuild Configuration:
BB_VERSION           = "1.51.1"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-18.04"
TARGET_SYS           = "arm-openbmc-linux-gnueabi"
MACHINE              = "evb-ast2600"
DISTRO               = "openbmc-phosphor"
DISTRO_VERSION       = "nodistro.0"
TUNE_FEATURES        = "arm armv7a vfp vfpv4d16 callconvention-hard"
TARGET_FPU           = "hard"
meta
meta-poky
meta-oe
meta-networking
meta-perl
meta-python
meta-security
meta-phosphor
meta-aspeed
meta-evb-ast2600     = "master:7843a81ebc3592ec45793964880328937305b8c2"Initialising tasks: 100% |######################################################################################################| Time: 0:00:00
Sstate summary: Wanted 0 Local 0 Network 0 Missed 0 Current 0 (0% match, 0% complete)
NOTE: No setscene tasks
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 1 tasks of which 0 didn't need to be rerun and all succeeded.Summary: There were 2 WARNING messages shown.
test@ubuntu:~/Documents/openbmc_ws/openbmc/build/evb-ast2600$ time bitbake obmc-phosphor-image
Loading cache: 100% |###########################################################################################################| Time: 0:00:01
Loaded 4033 entries from dependency cache.
Parsing recipes: 100% |#########################################################################################################| Time: 0:00:00
Parsing of 2629 .bb files complete (2628 cached, 1 parsed). 4034 targets, 370 skipped, 0 masked, 0 errors.
WARNING: No bb files in default matched BBFILE_PATTERN_meta-evb-ast2600 '^/home/test/Documents/openbmc_ws/openbmc/meta-evb/meta-evb-aspeed/meta-evb-ast2600/'
NOTE: Resolving any missing task queue dependenciesBuild Configuration:
BB_VERSION           = "1.51.1"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-18.04"
TARGET_SYS           = "arm-openbmc-linux-gnueabi"
MACHINE              = "evb-ast2600"
DISTRO               = "openbmc-phosphor"
DISTRO_VERSION       = "nodistro.0"
TUNE_FEATURES        = "arm armv7a vfp vfpv4d16 callconvention-hard"
TARGET_FPU           = "hard"

编译并显示时间
time bitbake obmc-phosphor-image

test@ubuntu:~/Documents/openbmc_ws/openbmc/build/evb-ast2600$ bitbake obmc-phosphor-image
Loading cache: 100% |#######################################################################################################################################################################| Time: 0:00:00
Loaded 4033 entries from dependency cache.
Parsing recipes: 100% |#####################################################################################################################################################################| Time: 0:00:00
Parsing of 2629 .bb files complete (2628 cached, 1 parsed). 4034 targets, 370 skipped, 0 masked, 0 errors.
WARNING: No bb files in default matched BBFILE_PATTERN_meta-evb-ast2600 '^/home/test/Documents/openbmc_ws/openbmc/meta-evb/meta-evb-aspeed/meta-evb-ast2600/'
NOTE: Resolving any missing task queue dependenciesBuild Configuration:
BB_VERSION           = "1.51.1"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-18.04"
TARGET_SYS           = "arm-openbmc-linux-gnueabi"
MACHINE              = "evb-ast2600"
DISTRO               = "openbmc-phosphor"
DISTRO_VERSION       = "nodistro.0"
TUNE_FEATURES        = "arm armv7a vfp vfpv4d16 callconvention-hard"
TARGET_FPU           = "hard"
meta
meta-poky
meta-oe
meta-networking
meta-perl
meta-python
meta-security
meta-phosphor
meta-aspeed
meta-evb-ast2600     = "master:7843a81ebc3592ec45793964880328937305b8c2"Initialising tasks: 100% |##################################################################################################################################################################| Time: 0:00:02
Sstate summary: Wanted 0 Local 0 Network 0 Missed 0 Current 1334 (0% match, 100% complete)
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 3782 tasks of which 3782 didn't need to be rerun and all succeeded.Summary: There was 1 WARNING message shown.
real    40m16.310s
user    0m10.051s
sys 0m2.011s

【OpenBMC 系列】2.OpenBMC镜像编译流程相关推荐

  1. PaddleFL 1.2.0版本 使用docker镜像编译流程(Ubuntu 20.04)

    宿主机环境:centos 目前测试Ubuntu 20.04下也可编译 中间可能会遇到多次fatal:unable to access 'https://github.com/........',多试几 ...

  2. 【OpenBMC 系列】1.OpenBMC 开发环境搭建

    目标: 安装Linux 系统,推荐使用Ubuntu18+,作为开发环境. 安装Qemu 作为bmc运行的虚拟机. 受众:熟悉 Linux 和 BMC 的程序员 先决条件:当前的 Linux.Mac 或 ...

  3. 4-uboot编译流程

    [uboot] (第四章)uboot流程--uboot编译流程 2016年11月01日 21:23:36 阅读数:2983 以下例子都以project X项目tiny210(s5pv210平台,arm ...

  4. uboot-spl编译流程

    [uboot] (第二章)uboot流程--uboot-spl编译流程 2016年10月27日 20:40:47 阅读数:2675 以下例子都以project X项目tiny210(s5pv210平台 ...

  5. 高通Android智能平台环境搭建_编译流程分析

    高通Android智能平台环境搭建_编译流程分析 高通平台环境搭建,编译,系统引导流程分析 TOC \o \h \z \u 1. 高通平台android开发总结. 7 1.1 搭建高通平台环境开发环境 ...

  6. iOS之LLVM编译流程和Clang插件开发集成

    LLVM 简介 一.什么是 LLVM? LLVM 是构架编译器(compiler)的框架系统,以 C++ 编写而成,用于优化以任意程序语言编写的程序的编译时间(compile-time).链接时间(l ...

  7. Jetson Agx Xavier USB驱动裁剪+can时钟修改+内核源码编译流程(jetpack4.6.1)

    自己做了一块Xavier载板,硬件裁剪了一些功能,导致官方镜像usb无法使用,我使用的是jetpack4.6.1(R32.7.1),所以进行驱动修改,重新编译内核. 一.虚拟机环境 在Windows下 ...

  8. 鸿蒙系统编译怎样收费的,深度解析鸿蒙系统的编译流程

    1.准备工作 我的本地代码是基于最新发布的OpenHarmony 1.1.0 LTS(2021-04-01)版本抓取的,代码根目录OHOS1_1_0LTS: $repo init -u https:/ ...

  9. 01-kernel打补丁,配置,编译流程

    kernel打补丁,编译流程 内核源码包: linux-2.6.22.6.tar.bz2 补丁文件: linux-2.6.22.6_jz2440_v2v3.patch 1. 解压     tar xj ...

最新文章

  1. 深度观察|工业物联网的应用场景和市场潜力
  2. 【BZOJ】1630: [Usaco2007 Demo]Ant Counting(裸dp/dp/生成函数)
  3. 【TypeScript】使用 const 关键字声明只读变量
  4. Java中的StringBuilder类功能详解
  5. 改进初学者的PID-介绍
  6. 实现文件中名词的统计计数_通过勤哲EXCEL和Excel中的rank函数实现排名统计
  7. jsp网页上实现计算三角形面积小程序
  8. WSS 3.0部署备忘 六
  9. python 在线培训费用-python培训班费用
  10. 使用maven在netbeans下构建wicket项目
  11. OpenModelica 在特定目录下生成仿真结果文件
  12. Applese 的毒气炸弹(最小生成树)
  13. 2020神舟几号发射_今年将发射神舟十一号载人飞船 2020年将建成载人空间站
  14. 机械键盘各种设定(品牌:黑爵等)
  15. AndroidStudio打包成APK安装运行闪退的解决方法
  16. php保存word没背景图,为什么word文档明明保存了却不见了
  17. linux桌面显示我的电脑,Windows服务器如何显示”我的电脑”图标 [多种方法详细介绍]...
  18. 耗时3个月整理的网络安全学习路线,非常详细!
  19. open-falcon详解
  20. win10 安装 CH340驱动

热门文章

  1. Win10怎么删除快速访问中最近使用文件记录
  2. MySQL中对比两张表是否有不同数据
  3. 2020蓝桥杯省赛B组
  4. matlab零序五次谐波,基于5次谐波的小电流接地系统故障选线方法仿真与分析.docx...
  5. java面试被虐记录
  6. C#学习笔记 正则表达式
  7. js二维数组定义和初始化的三种方法
  8. 微信公众号开发:用从微信服务器下载图片资源
  9. redis为什么采用跳表而不是红黑树详解
  10. “2021流行趋势发布·新品试骑活动”引爆羊城