You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2021/11/17 08:35:03 UTC

[mynewt-core] branch master updated: bsp/nordic_pca10095: Fix restriction condition

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 11d9849  bsp/nordic_pca10095: Fix restriction condition
11d9849 is described below

commit 11d98491e9ccdc8d22df958151aa0c9814ad436a
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Wed Nov 17 08:40:23 2021 +0100

    bsp/nordic_pca10095: Fix restriction condition
    
    IPC_NRF5340_CHANNELS is defined by ipc_nrf5340 package, this package
    is indirectly included by ipc and may not be present (e.g. bootloader)
    
    Building target targets/nordic_pca10095-boot
    WARNING: Ignoring illegal expression for setting "": `!BSP_NRF5340_NET_FLASH_ENABLE || IPC_NRF5340_CHANNELS >= 4` cannot apply >= to `IPC_NRF5340_CHANNELS`; operand not a number
    
    This corrects restriction to remove newt warning.
---
 hw/bsp/nordic_pca10095/syscfg.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/hw/bsp/nordic_pca10095/syscfg.yml b/hw/bsp/nordic_pca10095/syscfg.yml
index 5b95116..834a756 100644
--- a/hw/bsp/nordic_pca10095/syscfg.yml
+++ b/hw/bsp/nordic_pca10095/syscfg.yml
@@ -107,6 +107,8 @@ syscfg.vals.BSP_NRF5340_NET_ENABLE:
 syscfg.vals.BSP_NRF5340_NET_FLASH_ENABLE:
     IPC_NRF5340_CHANNELS: 4
 
+syscfg.restrictions.BSP_NRF5340_NET_FLASH_ENABLE:
+    - 'IPC_NRF5340_CHANNELS >= 4'
+
 syscfg.restrictions:
-    - '!BSP_NRF5340_NET_FLASH_ENABLE || IPC_NRF5340_CHANNELS >= 4'
     - '!BSP_NRF5340_NET_FLASH_ENABLE || BSP_NRF5340_NET_ENABLE'