Use INITRAMFS_FSTYPES to build a u-boot ramdisk

do_generate_flash() was manually packaging the initramfs cpio archive as
a u-boot ramdisk legacy image.  Add the u-boot type to
INITRAMFS_FSTYPES to use the existing infrastructure instead.

NOTE: if you have an existing build directory, this change may cause the
build to fail while creating symlinks.  This is caused by the .u-boot
file changing from an actual file to a symlink.

Change-Id: I9fa69620f97452671f89675768b1d1f33dbe97f2
Signed-off-by: Rick Altherr <raltherr@google.com>
2 files changed
tree: f7e916cab3dbddc29c3d9682d0a91bfed90dea71
  1. import-layers/
  2. meta-openbmc-bsp/
  3. meta-openbmc-machines/
  4. meta-phosphor/
  5. .gitignore
  6. .gitreview
  7. .templateconf
  8. openbmc-env
  9. README.md
README.md

OpenBMC

Build Status

Building

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