Enable 64 bit 28/236228/1
authorKunhoon Baik <knhoon.baik@samsung.com>
Tue, 16 Jun 2020 01:08:18 +0000 (10:08 +0900)
committerKunhoon Baik <knhoon.baik@samsung.com>
Tue, 16 Jun 2020 01:08:18 +0000 (10:08 +0900)
Tizen will support 64 bit binary officially.
TOTA-UA will be included to initrd-recovery partition.
Although initrd-recovery partition size is exceeded, TOTA-UA will be applied.

Change-Id: I983e17e0b24b1e520a92f36d404dbcdb5180aae7

packaging/tota-ua.spec
upg-verifier/upg-verifier.c

index 03209c1..77d2425 100755 (executable)
@@ -1,6 +1,5 @@
 Name:          tota-ua
 Summary:       fota update agent
-ExclusiveArch:         %{arm}
 Version:       1.2.8
 Release:       0
 Group:         System
index 879e134..23e328e 100644 (file)
@@ -31,7 +31,7 @@ static bool check_signed_file(const char *path)
        const int metadata_size = sizeof(signed_file.delta_size) + sizeof(signed_file.signature_size) + sizeof(signed_file.certificate_size) + MAGIC_NUMBER_SIZE;
        int ret = -1;
        _CLEANUP_CLOSE_ int signed_file_fd = -1;
-       off_t offset = (off_t)-1;
+       long long int offset = (off_t)-1;
        unsigned int data_size = 0;
 
        _I("Check signed file...");
@@ -63,7 +63,7 @@ static bool check_signed_file(const char *path)
        data_size = signed_file.delta_size + signed_file.signature_size + signed_file.certificate_size;
 
        offset = lseek(signed_file_fd, -metadata_size, SEEK_END);
-       ASSERT_RETV(offset == data_size, false, "Invalid file size : Expected(%u), Real(%llu)", data_size, offset);
+       ASSERT_RETV(offset == data_size, false, "Invalid file size : Expected(%u), Real(%lld)", data_size, offset);
 
        return true;
 }
@@ -72,7 +72,6 @@ static int read_signed_file(const char *path)
 {
        int ret = -1;
        _CLEANUP_CLOSE_ int signed_file_fd = -1;
-       off_t offset = (off_t)-1;
 
        _I("Read signed file...");