diff options
author | Saul Wold <sgw@linux.intel.com> | 2017-09-26 08:25:37 -0700 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2017-09-26 08:25:37 -0700 |
commit | a98b71ccadc1458bf3a959e328d5ae814eb7e9b3 (patch) | |
tree | b493f2ce5b78a56a70e76435658e370d44b2eab8 /classes/rmc-boot.bbclass | |
download | meta-dpdk-a98b71ccadc1458bf3a959e328d5ae814eb7e9b3.tar.gz |
Initial commit from meta-intel 2f1bcac3fb3b42602f689fb4a1092aa5f4cf0c8a
Diffstat (limited to 'classes/rmc-boot.bbclass')
-rw-r--r-- | classes/rmc-boot.bbclass | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/classes/rmc-boot.bbclass b/classes/rmc-boot.bbclass new file mode 100644 index 0000000..37c3e30 --- /dev/null +++ b/classes/rmc-boot.bbclass | |||
@@ -0,0 +1,17 @@ | |||
1 | # rmc-boot bbclass | ||
2 | # Deploy central RMC database file to ESP | ||
3 | |||
4 | IMAGE_INSTALL_append = " rmc" | ||
5 | RMC_BOOTLOADER ?= "systemd-boot" | ||
6 | |||
7 | inherit ${RMC_BOOTLOADER} | ||
8 | |||
9 | do_bootimg[depends] += "${MLPREFIX}rmc-db:do_deploy" | ||
10 | |||
11 | efi_populate_append() { | ||
12 | if [ -f ${DEPLOY_DIR_IMAGE}/rmc.db ]; then | ||
13 | install -m 0400 ${DEPLOY_DIR_IMAGE}/rmc.db ${DEST}/rmc.db | ||
14 | else | ||
15 | rm -f ${DEST}/rmc.db | ||
16 | fi | ||
17 | } | ||