Skip to content

Commit

Permalink
meta-ibm: Add hostfw image support (ibm-openbmc#214)
Browse files Browse the repository at this point in the history
Add support for a hostfw image.

Change-Id: I1b4be263b0eb44c324db4f41ea563fdf2a8ad8b5
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
  • Loading branch information
anoo1 authored and rfrandse committed May 24, 2022
1 parent b8d054e commit 61a79c9
Show file tree
Hide file tree
Showing 4 changed files with 904 additions and 0 deletions.
24 changes: 24 additions & 0 deletions meta-ibm/recipes-phosphor/flash/phosphor-hostfw-image.bbappend
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"

HOST_FW_LICENSE = "Proprietary"

VERSION:p10bmc ?= "1020.2220.20220514a"

SRC_URI:append:p10bmc = " file://host-fw-elements_lids.json"
SRC_URI:append:p10bmc = " file://image-hostfw-${VERSION}"

FILES:${PN}:append:p10bmc = " ${datadir}/hostfw/elements.json"

S = "${WORKDIR}"
B = "${WORKDIR}/build"

do_compile:append() {
install -m 0440 ${S}/image-hostfw-${VERSION} ${B}/image/hostfw-a
install -m 0440 ${S}/image-hostfw-${VERSION} ${B}/image/hostfw-b
install -m 0440 ${S}/image-hostfw-${VERSION} ${B}/update/image-hostfw
}

do_install:append:p10bmc() {
install -d ${D}/${datadir}/hostfw
install -m 0644 ${S}/host-fw-elements_lids.json ${D}/${datadir}/hostfw/elements.json
}

0 comments on commit 61a79c9

Please sign in to comment.