From c44547336b4bcb7a1fc2cfc6fe01f84259ffdbca Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 19 Aug 2021 04:49:23 +0800 Subject: [PATCH] clean up xtask run warnings --- services/root-keys/src/main.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/services/root-keys/src/main.rs b/services/root-keys/src/main.rs index f503152c5..4c28f278c 100644 --- a/services/root-keys/src/main.rs +++ b/services/root-keys/src/main.rs @@ -85,6 +85,12 @@ mod implementation { use num_traits::*; use crate::{SignatureResult, GatewareRegion, MetadataInFlash}; + #[derive(Debug, Copy, Clone)] + #[allow(dead_code)] + pub enum FpgaKeySource { + Bbram, + Efuse, + } #[allow(dead_code)] pub struct RootKeys { password_type: Option, @@ -179,6 +185,9 @@ mod implementation { pub fn is_pcache_boot_password_valid(&self) -> bool { false } + pub fn fpga_key_source(&self) -> FpgaKeySource { + FpgaKeySource::Efuse + } pub fn fetch_gw_metadata(&self, _region_enum: GatewareRegion) -> MetadataInFlash { MetadataInFlash {