From: Kunhoon Baik Date: Tue, 16 Jun 2020 01:08:18 +0000 (+0900) Subject: Enable 64 bit X-Git-Tag: accepted/tizen/unified/20200616.041013~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F28%2F236228%2F1;p=platform%2Fcore%2Fsystem%2Ftota-ua.git Enable 64 bit 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 --- diff --git a/packaging/tota-ua.spec b/packaging/tota-ua.spec index 03209c1..77d2425 100755 --- a/packaging/tota-ua.spec +++ b/packaging/tota-ua.spec @@ -1,6 +1,5 @@ Name: tota-ua Summary: fota update agent -ExclusiveArch: %{arm} Version: 1.2.8 Release: 0 Group: System diff --git a/upg-verifier/upg-verifier.c b/upg-verifier/upg-verifier.c index 879e134..23e328e 100644 --- a/upg-verifier/upg-verifier.c +++ b/upg-verifier/upg-verifier.c @@ -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...");