BMC开发六 - 编译镜像
OpenBMC编译镜像
1. 开发环境
- OS:
- Ubuntu 18.04, 20.04, 22.04 (LTS)
- Fedora 36, 37
- AlmaLinux 8.7, 9.1
- Debian GNU/Linux 11.x (Bullseye)
- OpenSUSE Leap 15.3 15.4
- Software Requirements
- Git 1.8.3.1 or greater
- tar 1.28 or greater
- Python 3.8.0 or greater
- GNU make 4.0 or greater
- gcc 8.0 or greater
2. 下载OpenBmc代码
git clone https://github.com/openbmc/openbmc
cd openbmc
3. 查找可用编译配置
find . -name local.conf.sample
. setup
4. 编译
方法1:
选定你的目标硬件环境, 比如
. setup romulus
方法2:
export TMPLATECONF = meta-ibm/meta-romulus/conf
. openbmc-env
修改local.conf
开始编译
bitbake obmc-phosphor-image
只下载不编译
bitbake obmc-phosphor-image -c fetch
5. 查看镜像
./openbmc/build/romulus/tmp/deploy/*