[Pdbg] [PATCH] options_arm: Allow use of fake backend

Joel Stanley joel at jms.id.au
Wed Sep 12 13:46:31 AEST 2018


This is useful for testing eg. in qemu that pdbg has been built properly
for ARM.

Signed-off-by: Joel Stanley <joel at jms.id.au>
---
 src/options_arm.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/options_arm.c b/src/options_arm.c
index 72985d3e2f87..86ab11e496bd 100644
--- a/src/options_arm.c
+++ b/src/options_arm.c
@@ -52,8 +52,12 @@ bool backend_is_possible(enum backend backend)
 		return true;
 	if (backend == KERNEL && access(OPENFSI_BMC, F_OK) == 0)
 		return true;
+	if (backend == FAKE)
+		return true;
+	if (backend == FSI)
+		return true;
 
-	return backend == FSI;
+	return false;
 }
 
 void print_targets(FILE *stream)
-- 
2.17.1



More information about the Pdbg mailing list