diff --git a/recipes-bsp/u-boot/files/efi-rt-volatile-store.cfg b/recipes-bsp/u-boot/files/efi-rt-volatile-store.cfg new file mode 100644 index 000000000..082159b32 --- /dev/null +++ b/recipes-bsp/u-boot/files/efi-rt-volatile-store.cfg @@ -0,0 +1,10 @@ +# Allow SetVariable at runtime on U-Boot's in-RAM EFI variable store so the +# OS can write EFI variables via efivarfs. With this enabled U-Boot also +# advertises EFI_RT_SUPPORTED_SET_VARIABLE and exposes the RTStorageVolatile +# and VarToFile variables, which userspace tools such as efivar use to persist +# runtime changes back to the ubootefi.var store on the ESP across reboots. +# +# EFI_RT_VOLATILE_STORE depends on EFI_VARIABLE_FILE_STORE; select it +# explicitly so the option is not silently dropped if that default changes. +CONFIG_EFI_VARIABLE_FILE_STORE=y +CONFIG_EFI_RT_VOLATILE_STORE=y diff --git a/recipes-bsp/u-boot/u-boot-qcom_git.bb b/recipes-bsp/u-boot/u-boot-qcom_git.bb index 3f83fa532..9e9981bd3 100644 --- a/recipes-bsp/u-boot/u-boot-qcom_git.bb +++ b/recipes-bsp/u-boot/u-boot-qcom_git.bb @@ -13,6 +13,7 @@ SRCBRANCH = "nobranch=1" SRC_URI = "git://github.com/qualcomm-linux/u-boot.git;${SRCBRANCH};protocol=https;name=uboot" SRC_URI += " \ file://disable-eficapsule-tool.cfg \ + file://efi-rt-volatile-store.cfg \ ${@bb.utils.contains('MACHINE_FEATURES', 'optee', 'file://tfa-optee.cfg', '', d)} \ ${@bb.utils.contains('MACHINE_FEATURES', 'kvm', 'file://gunyah-exit.cfg', '', d)} \ "