This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 76d381937 mcu/pic32mz: Fix build when no UART is enabled
76d381937 is described below

commit 76d381937e94b3daf42ddfd7f0389190b055ca6b
Author: Jerzy Kasenberg <jerzy.kasenb...@codecoup.pl>
AuthorDate: Mon Mar 11 16:57:22 2024 +0100

    mcu/pic32mz: Fix build when no UART is enabled
    
    Dependency to hal_uart was only added when one or more UART_x was enabled.
    pic32mz_periph.c uses normal if statement to exclude unused UART's so
    package dependency is needed event though no UART is used.
---
 hw/mcu/microchip/pic32mz/pkg.yml | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/hw/mcu/microchip/pic32mz/pkg.yml b/hw/mcu/microchip/pic32mz/pkg.yml
index f418f4308..38874b8d9 100644
--- a/hw/mcu/microchip/pic32mz/pkg.yml
+++ b/hw/mcu/microchip/pic32mz/pkg.yml
@@ -25,11 +25,9 @@ pkg.keywords:
     - pic32
     - pic32mz
 
-pkg.deps.(UART_0 || UART_1 || UART_2 || UART_3 || UART_4 || UART_5):
-    - "@apache-mynewt-core/hw/drivers/uart/uart_hal"
-
 pkg.deps:
     - "@apache-mynewt-core/hw/hal"
+    - "@apache-mynewt-core/hw/drivers/uart/uart_hal"
 
 pkg.deps.ETH_0:
     - "@apache-mynewt-core/hw/drivers/lwip/pic32_eth"

Reply via email to