diff mbox series

[v3,5/6] hw/net/can: ZynqMP CAN device requires PTIMER

Message ID 20210131184449.382425-6-f4bug@amsat.org (mailing list archive)
State New, archived
Headers show
Series hw/arm: Misc trivial fixes/cleanups | expand

Commit Message

Philippe Mathieu-Daudé Jan. 31, 2021, 6:44 p.m. UTC
Add a dependency XLNX_ZYNQMP -> PTIMER to fix:

  /usr/bin/ld:
  libcommon.fa.p/hw_net_can_xlnx-zynqmp-can.c.o: in function `xlnx_zynqmp_can_realize':
  hw/net/can/xlnx-zynqmp-can.c:1082: undefined reference to `ptimer_init'
  hw/net/can/xlnx-zynqmp-can.c:1085: undefined reference to `ptimer_transaction_begin'
  hw/net/can/xlnx-zynqmp-can.c:1087: undefined reference to `ptimer_set_freq'
  hw/net/can/xlnx-zynqmp-can.c:1088: undefined reference to `ptimer_set_limit'
  hw/net/can/xlnx-zynqmp-can.c:1089: undefined reference to `ptimer_run'
  hw/net/can/xlnx-zynqmp-can.c:1090: undefined reference to `ptimer_transaction_commit'
  libcommon.fa.p/hw_net_can_xlnx-zynqmp-can.c.o:(.data.rel+0x2c8): undefined reference to `vmstate_ptimer'

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 hw/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Alistair Francis Feb. 1, 2021, 7:55 p.m. UTC | #1
On Sun, Jan 31, 2021 at 10:49 AM Philippe Mathieu-Daudé <f4bug@amsat.org> wrote:
>
> Add a dependency XLNX_ZYNQMP -> PTIMER to fix:
>
>   /usr/bin/ld:
>   libcommon.fa.p/hw_net_can_xlnx-zynqmp-can.c.o: in function `xlnx_zynqmp_can_realize':
>   hw/net/can/xlnx-zynqmp-can.c:1082: undefined reference to `ptimer_init'
>   hw/net/can/xlnx-zynqmp-can.c:1085: undefined reference to `ptimer_transaction_begin'
>   hw/net/can/xlnx-zynqmp-can.c:1087: undefined reference to `ptimer_set_freq'
>   hw/net/can/xlnx-zynqmp-can.c:1088: undefined reference to `ptimer_set_limit'
>   hw/net/can/xlnx-zynqmp-can.c:1089: undefined reference to `ptimer_run'
>   hw/net/can/xlnx-zynqmp-can.c:1090: undefined reference to `ptimer_transaction_commit'
>   libcommon.fa.p/hw_net_can_xlnx-zynqmp-can.c.o:(.data.rel+0x2c8): undefined reference to `vmstate_ptimer'
>
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>

Alistair

> ---
>  hw/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/hw/Kconfig b/hw/Kconfig
> index 5ad3c6b5a4b..d4cec9e476c 100644
> --- a/hw/Kconfig
> +++ b/hw/Kconfig
> @@ -81,3 +81,4 @@ config XLNX_ZYNQMP
>      bool
>      select REGISTER
>      select CAN_BUS
> +    select PTIMER
> --
> 2.26.2
>
>
diff mbox series

Patch

diff --git a/hw/Kconfig b/hw/Kconfig
index 5ad3c6b5a4b..d4cec9e476c 100644
--- a/hw/Kconfig
+++ b/hw/Kconfig
@@ -81,3 +81,4 @@  config XLNX_ZYNQMP
     bool
     select REGISTER
     select CAN_BUS
+    select PTIMER