MA-18221 Fix build break for imx7ulp
authorJi Luo <ji.luo@nxp.com>
Thu, 5 Nov 2020 09:00:44 +0000 (17:00 +0800)
committerJi Luo <ji.luo@nxp.com>
Thu, 13 May 2021 01:49:18 +0000 (09:49 +0800)
commitdee550412c2da98061a726e64781f75aa69ee38a
treeac72bf397cb3a47f3263579a186fb036f1801fa7
parent5893d8707dd66e0f36bc6dbd7c805cd20c05f725
MA-18221 Fix build break for imx7ulp

GCC for arm32 doesn't support division between signed
and unsigned integer. Clean up the code to use 'long'
for both arm32 and arm64 platforms.

Test: build on 7ulp and 8mm.

Change-Id: I21c23b1948994558237b27bfe7452e78e3d45172
Signed-off-by: Ji Luo <ji.luo@nxp.com>
(cherry picked from commit 2062183df063e0653e9e88a690764647702af7dd)
(cherry picked from commit 49aad2989b6256934b146c50af5cf26b7486d658)
lib/avb/fsl/utils.c
lib/avb/fsl/utils.h