summaryrefslogtreecommitdiff
path: root/aoc_firmware.h
diff options
context:
space:
mode:
authorCraig Dooley <dooleyc@google.com>2020-04-16 16:15:22 -0700
committerCraig Dooley <dooleyc@google.com>2020-04-16 23:26:28 +0000
commitc9d898a55ef226464f38897a0b66e31080f23c48 (patch)
tree96039b9c818b1c069fc7b4cef07aaaf7726016fd /aoc_firmware.h
parent225ffa876db0d845d338d7886868983a2fdda6e3 (diff)
downloadaoc-c9d898a55ef226464f38897a0b66e31080f23c48.tar.gz
Add a check for dev/release firmware
Only check the UUID table for release builds Bug: 154259337 Signed-off-by: Craig Dooley <dooleyc@google.com> Change-Id: Ifa00f439cb40f2bdf418f23a0ae21bf3296b68fe
Diffstat (limited to 'aoc_firmware.h')
-rw-r--r--aoc_firmware.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/aoc_firmware.h b/aoc_firmware.h
index eef92fd..fcafacb 100644
--- a/aoc_firmware.h
+++ b/aoc_firmware.h
@@ -13,6 +13,9 @@
#define AOC_FIRMWARE_OFFSET_INVALID 0xffffffff
+/* Dev builds bypass the UUID check on load */
+bool _aoc_fw_is_release(const struct firmware *fw);
+
bool _aoc_fw_is_compatible(const struct firmware *fw);
bool _aoc_fw_is_valid(const struct firmware *fw);