commit | 75122837d8a8ee0503e31d2ce5071c726132877d | [log] [tgz] |
---|---|---|
author | Rick Altherr <raltherr@google.com> | Mon Jul 18 22:03:55 2016 -0700 |
committer | Patrick Williams <patrick@stwcx.xyz> | Tue Nov 08 20:52:12 2016 +0000 |
tree | 90318620e582169bc676d4bb3dc979d766e59a2e | |
parent | 87219ea8158b3ae3515e9adf3ba4459c26baf7c0 [diff] |
obmc-phosphor-image: Variable for kernel image type written to flash obmc-phosphor-image_types_uboot generates a complete flash image as the last step in the build process. This step assumed that only a single kernel image type was being built so it used KERNEL_IMAGETYPE to determine which kernel image to include in the flash image. When multiple kernel images are built via KERNEL_IMAGETYPES, a separate variable, FLASH_KERNEL_IMAGETYPE, is needed to specify which one should be included in the flash image. FLASH_KERNEL_IMAGETYPE has a weak default of 'cuImage' which allows machine configs change it on a per-machine basis. Change-Id: I9feb327e895f15e2c289e9195a9b92dd880cded3 Signed-off-by: Rick Altherr <raltherr@google.com>
OpenBMC uses Yocto/Open-Embedded for a build system, which supports an out-of-tree build. It is recommended that you create an empty directory somewhere to hold the build. This directory will get big.
On Ubuntu 14.04 the following packages are required to build the default target
sudo apt-get install -y git build-essential libsdl1.2-dev texinfo gawk chrpath diffstat
On Fedora 23 the following packages are required to build the default target:
sudo dnf install -y git patch diffstat texinfo chrpath SDL-devel bitbake sudo dnf groupinstall "C Development Tools and Libraries"
To start a build:
cd <builddir> . <repodir>/openbmc-env bitbake obmc-phosphor-image