blob: a9123b1b4a6e0f916de9e67bbc62da06c9846c3d [file] [log] [blame]
Adriana Kobylak39b1ff02020-07-12 15:12:36 -05001SUMMARY = "Provides a host firmware image"
2DESCRIPTION = "Use a bbappend to add the image files"
3PR = "r1"
4
5inherit allarch
6inherit deploy
7
8HOSTFW_LICENSE ?= "Apache-2.0"
9HOSTFW_LIC_FILES_CHKSUM ?= "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
10
11LICENSE = "${HOSTFW_LICENSE}"
12LIC_FILES_CHKSUM = "${HOSTFW_LIC_FILES_CHKSUM}"
13
Adriana Kobylakbd747f62020-07-17 10:26:40 -050014do_compile() {
Adriana Kobylak39b1ff02020-07-12 15:12:36 -050015 # The image directory can be used as the source to create a filesystem to
16 # add to the BMC image.
17 install -d ${B}/image
18
19 # Install an image-hostfw file in the update directory to be included in
20 # the code update tarball.
21 install -d ${B}/update
22}
23
24do_deploy() {
25 install -d ${DEPLOYDIR}/hostfw/image
26 install -d ${DEPLOYDIR}/hostfw/update
Adriana Kobylakbd747f62020-07-17 10:26:40 -050027 cp -R --no-dereference --preserve=mode,links ${B}/image/ ${DEPLOYDIR}/hostfw/
28 cp -R --no-dereference --preserve=mode,links ${B}/update/ ${DEPLOYDIR}/hostfw/
Adriana Kobylak39b1ff02020-07-12 15:12:36 -050029}
30
31addtask deploy before do_build after do_compile