Adriana Kobylak | 81846a2 | 2020-07-12 15:12:36 -0500 | [diff] [blame] | 1 | SUMMARY = "Provides a host firmware image" |
| 2 | DESCRIPTION = "Use a bbappend to add the image files" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 3 | LICENSE = "${HOSTFW_LICENSE}" |
| 4 | LIC_FILES_CHKSUM = "${HOSTFW_LIC_FILES_CHKSUM}" |
Adriana Kobylak | 81846a2 | 2020-07-12 15:12:36 -0500 | [diff] [blame] | 5 | PR = "r1" |
| 6 | |
| 7 | inherit allarch |
| 8 | inherit deploy |
| 9 | |
Adriana Kobylak | f717d45 | 2020-07-17 10:26:40 -0500 | [diff] [blame] | 10 | do_compile() { |
Adriana Kobylak | 81846a2 | 2020-07-12 15:12:36 -0500 | [diff] [blame] | 11 | # The image directory can be used as the source to create a filesystem to |
| 12 | # add to the BMC image. |
| 13 | install -d ${B}/image |
Adriana Kobylak | 81846a2 | 2020-07-12 15:12:36 -0500 | [diff] [blame] | 14 | # Install an image-hostfw file in the update directory to be included in |
| 15 | # the code update tarball. |
| 16 | install -d ${B}/update |
| 17 | } |
| 18 | |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 19 | addtask deploy before do_build after do_compile |
| 20 | |
| 21 | HOSTFW_LICENSE ?= "Apache-2.0" |
| 22 | HOSTFW_LIC_FILES_CHKSUM ?= "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
Adriana Kobylak | 81846a2 | 2020-07-12 15:12:36 -0500 | [diff] [blame] | 23 | do_deploy() { |
| 24 | install -d ${DEPLOYDIR}/hostfw/image |
| 25 | install -d ${DEPLOYDIR}/hostfw/update |
Adriana Kobylak | f717d45 | 2020-07-17 10:26:40 -0500 | [diff] [blame] | 26 | cp -R --no-dereference --preserve=mode,links ${B}/image/ ${DEPLOYDIR}/hostfw/ |
| 27 | cp -R --no-dereference --preserve=mode,links ${B}/update/ ${DEPLOYDIR}/hostfw/ |
Adriana Kobylak | 81846a2 | 2020-07-12 15:12:36 -0500 | [diff] [blame] | 28 | } |