diff mbox series

options_arm: Allow use of fake backend

Message ID 20180912034631.28089-1-joel@jms.id.au
State Superseded
Headers show
Series options_arm: Allow use of fake backend | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch success master/apply_patch Successfully applied
snowpatch_ozlabs/build-multiarch success Test build-multiarch on branch master

Commit Message

Joel Stanley Sept. 12, 2018, 3:46 a.m. UTC
This is useful for testing eg. in qemu that pdbg has been built properly
for ARM.

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

Comments

Alistair Popple Sept. 12, 2018, 7:02 a.m. UTC | #1
Thanks Joel, however I have just reworked the backend detection so hopefully
this isn't required and now works.

- Alistiar

On Wednesday, 12 September 2018 1:16:31 PM AEST Joel Stanley wrote:
> This is useful for testing eg. in qemu that pdbg has been built properly
> for ARM.
> 
> Signed-off-by: Joel Stanley <joel@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)
>
diff mbox series

Patch

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)