reboot: support storage partition for delivering reboot parameters 55/313855/2
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Fri, 14 Jun 2024 11:33:41 +0000 (13:33 +0200)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Thu, 4 Jul 2024 12:41:53 +0000 (14:41 +0200)
In addition other information is stored on this partition, such as:
* upgrade progress status
* upgrade state
* current partition slot
* partition clone status

Change-Id: If5f749d72bd5d15fdfc7db137aa7947f88b6f618

hw/reboot/register_storage [new file with mode: 0644]
packaging/hal-backend-device-visionfive2.spec

diff --git a/hw/reboot/register_storage b/hw/reboot/register_storage
new file mode 100644 (file)
index 0000000..e69de29
index 1b3bc77975ec0c002f4f40b93d098cce02213ca4..82e06b8590d1fa901ed2a92218481cf74c33735e 100644 (file)
@@ -29,6 +29,9 @@ make %{?jobs:-j%jobs}
 %install
 %make_install
 
+# Reboot register storage
+install -D -m 644 hw/reboot/register_storage %{buildroot}%{_hal_sysconfdir}/reboot/register_storage
+
 # background_copy.list
 mkdir -p %{buildroot}%{_hal_sysconfdir}/upgrade
 install -m 644 hw/upgrade/* %{buildroot}%{_hal_sysconfdir}/upgrade
@@ -42,5 +45,6 @@ install -m 644 hw/upgrade/* %{buildroot}%{_hal_sysconfdir}/upgrade
 %files
 %{_hal_libdir}/*.so*
 %manifest %{name}.manifest
+%{_hal_sysconfdir}/reboot/register_storage
 %{_hal_licensedir}/%{name}/LICENSE.Apache-2.0
 %{_hal_sysconfdir}/upgrade/*