diff mbox series

[v5,4/4] target/ppc: updated meson.build to support disable-tcg

Message ID 20210525115355.8254-5-bruno.larsen@eldorado.org.br (mailing list archive)
State New, archived
Headers show
Series target/ppc: add support to disable-tcg | expand

Commit Message

Bruno Larsen (billionai) May 25, 2021, 11:53 a.m. UTC
updated build file to not compile some sources that are unnecessary if
TCG is disabled on the system.

Signed-off-by: Bruno Larsen (billionai) <bruno.larsen@eldorado.org.br>
---
 target/ppc/meson.build | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

Comments

David Gibson May 27, 2021, 5:10 a.m. UTC | #1
On Tue, May 25, 2021 at 08:53:55AM -0300, Bruno Larsen (billionai) wrote:
> updated build file to not compile some sources that are unnecessary if
> TCG is disabled on the system.
> 
> Signed-off-by: Bruno Larsen (billionai)
> <bruno.larsen@eldorado.org.br>

Applied to ppc-for-6.1, thanks.

> ---
>  target/ppc/meson.build | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/target/ppc/meson.build b/target/ppc/meson.build
> index 848e625302..a6a53a8d5c 100644
> --- a/target/ppc/meson.build
> +++ b/target/ppc/meson.build
> @@ -3,11 +3,14 @@ ppc_ss.add(files(
>    'cpu-models.c',
>    'cpu.c',
>    'cpu_init.c',
> -  'dfp_helper.c',
>    'excp_helper.c',
> -  'fpu_helper.c',
>    'gdbstub.c',
>    'helper_regs.c',
> +))
> +
> +ppc_ss.add(when: 'CONFIG_TCG', if_true: files(
> +  'dfp_helper.c',
> +  'fpu_helper.c',
>    'int_helper.c',
>    'mem_helper.c',
>    'misc_helper.c',
diff mbox series

Patch

diff --git a/target/ppc/meson.build b/target/ppc/meson.build
index 848e625302..a6a53a8d5c 100644
--- a/target/ppc/meson.build
+++ b/target/ppc/meson.build
@@ -3,11 +3,14 @@  ppc_ss.add(files(
   'cpu-models.c',
   'cpu.c',
   'cpu_init.c',
-  'dfp_helper.c',
   'excp_helper.c',
-  'fpu_helper.c',
   'gdbstub.c',
   'helper_regs.c',
+))
+
+ppc_ss.add(when: 'CONFIG_TCG', if_true: files(
+  'dfp_helper.c',
+  'fpu_helper.c',
   'int_helper.c',
   'mem_helper.c',
   'misc_helper.c',