diff options
author | richard <richard> | 2020-02-04 09:01:22 +0000 |
---|---|---|
committer | Jia Zhang <zhang.jia@linux.alibaba.com> | 2020-03-01 19:27:54 +0800 |
commit | d496407fc10fb87259d145968706b79ab19490a7 (patch) | |
tree | 45e302e61662619e54c27dccae30d88f1acdcad0 | |
parent | b003c7fceae136496dc8f8f6478459d96e7dce78 (diff) | |
download | meta-secure-core-d496407fc10fb87259d145968706b79ab19490a7.tar.gz |
modified grub-efi-efi-secure-boot.inc to install also the grub configuration files in the DEPLOYDIR
-rw-r--r-- | meta-efi-secure-boot/recipes-bsp/grub/grub-efi-efi-secure-boot.inc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/meta-efi-secure-boot/recipes-bsp/grub/grub-efi-efi-secure-boot.inc b/meta-efi-secure-boot/recipes-bsp/grub/grub-efi-efi-secure-boot.inc index 56ba863..f172e08 100644 --- a/meta-efi-secure-boot/recipes-bsp/grub/grub-efi-efi-secure-boot.inc +++ b/meta-efi-secure-boot/recipes-bsp/grub/grub-efi-efi-secure-boot.inc | |||
@@ -181,6 +181,19 @@ addtask chownboot after do_deploy before do_package | |||
181 | do_deploy_append_class-target() { | 181 | do_deploy_append_class-target() { |
182 | install -m 0644 "${D}${EFI_BOOT_PATH}/${GRUB_IMAGE}" "${DEPLOYDIR}" | 182 | install -m 0644 "${D}${EFI_BOOT_PATH}/${GRUB_IMAGE}" "${DEPLOYDIR}" |
183 | 183 | ||
184 | # Deploy the stacked grub configs. | ||
185 | install -m 0600 "${D}${EFI_BOOT_PATH}/grubenv" "${DEPLOYDIR}" | ||
186 | install -m 0600 "${D}${EFI_BOOT_PATH}/grub.cfg" "${DEPLOYDIR}" | ||
187 | install -m 0600 "${D}${EFI_BOOT_PATH}/boot-menu.inc" "${DEPLOYDIR}" | ||
188 | install -m 0600 "${D}${EFI_BOOT_PATH}/grub.cfg${SB_FILE_EXT}" "${DEPLOYDIR}" | ||
189 | install -m 0600 "${D}${EFI_BOOT_PATH}/boot-menu.inc${SB_FILE_EXT}" "${DEPLOYDIR}" | ||
190 | [ x"${UEFI_SB}" = x"1" ] && { | ||
191 | install -m 0600 "${D}${EFI_BOOT_PATH}/efi-secure-boot.inc" "${DEPLOYDIR}" | ||
192 | install -m 0600 "${D}${EFI_BOOT_PATH}/password.inc" "${DEPLOYDIR}" | ||
193 | install -m 0600 "${D}${EFI_BOOT_PATH}/efi-secure-boot.inc${SB_FILE_EXT}" "${DEPLOYDIR}" | ||
194 | install -m 0600 "${D}${EFI_BOOT_PATH}/password.inc${SB_FILE_EXT}" "${DEPLOYDIR}" | ||
195 | } | ||
196 | |||
184 | install -d "${DEPLOYDIR}/efi-unsigned" | 197 | install -d "${DEPLOYDIR}/efi-unsigned" |
185 | install -m 0644 "${B}/${GRUB_IMAGE}" "${DEPLOYDIR}/efi-unsigned" | 198 | install -m 0644 "${B}/${GRUB_IMAGE}" "${DEPLOYDIR}/efi-unsigned" |
186 | cp -af "${D}${EFI_BOOT_PATH}/${GRUB_TARGET}-efi" "${DEPLOYDIR}/efi-unsigned" | 199 | cp -af "${D}${EFI_BOOT_PATH}/${GRUB_TARGET}-efi" "${DEPLOYDIR}/efi-unsigned" |