Skip to content

Commit f2ea1da

Browse files
authored
fix(boards): Suppress devicetree warning
nRF5x boards throw a spurious warning for duplicate unit-address when the devicetree gets processed Upstream issue: zephyrproject-rtos/zephyr#29713 Warning suppressed as per: https://docs.zephyrproject.org/latest/build/dts/intro-input-output.html
1 parent 96e55c8 commit f2ea1da

File tree

14 files changed

+126
-0
lines changed

14 files changed

+126
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#
2+
# Copyright (c) 2024 The ZMK Contributors
3+
# SPDX-License-Identifier: MIT
4+
#
5+
6+
# Suppresses duplicate unit-address warning at build time for power, clock, acl and flash-controller
7+
# https://docs.zephyrproject.org/latest/build/dts/intro-input-output.html
8+
9+
list(APPEND EXTRA_DTC_FLAGS "-Wno-unique_unit_address_if_enabled")
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#
2+
# Copyright (c) 2024 The ZMK Contributors
3+
# SPDX-License-Identifier: MIT
4+
#
5+
6+
# Suppresses duplicate unit-address warning at build time for power, clock, acl and flash-controller
7+
# https://docs.zephyrproject.org/latest/build/dts/intro-input-output.html
8+
9+
list(APPEND EXTRA_DTC_FLAGS "-Wno-unique_unit_address_if_enabled")
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#
2+
# Copyright (c) 2024 The ZMK Contributors
3+
# SPDX-License-Identifier: MIT
4+
#
5+
6+
# Suppresses duplicate unit-address warning at build time for power, clock, acl and flash-controller
7+
# https://docs.zephyrproject.org/latest/build/dts/intro-input-output.html
8+
9+
list(APPEND EXTRA_DTC_FLAGS "-Wno-unique_unit_address_if_enabled")
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#
2+
# Copyright (c) 2024 The ZMK Contributors
3+
# SPDX-License-Identifier: MIT
4+
#
5+
6+
# Suppresses duplicate unit-address warning at build time for power, clock, acl and flash-controller
7+
# https://docs.zephyrproject.org/latest/build/dts/intro-input-output.html
8+
9+
list(APPEND EXTRA_DTC_FLAGS "-Wno-unique_unit_address_if_enabled")
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#
2+
# Copyright (c) 2024 The ZMK Contributors
3+
# SPDX-License-Identifier: MIT
4+
#
5+
6+
# Suppresses duplicate unit-address warning at build time for power, clock, acl and flash-controller
7+
# https://docs.zephyrproject.org/latest/build/dts/intro-input-output.html
8+
9+
list(APPEND EXTRA_DTC_FLAGS "-Wno-unique_unit_address_if_enabled")
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#
2+
# Copyright (c) 2024 The ZMK Contributors
3+
# SPDX-License-Identifier: MIT
4+
#
5+
6+
# Suppresses duplicate unit-address warning at build time for power, clock, acl and flash-controller
7+
# https://docs.zephyrproject.org/latest/build/dts/intro-input-output.html
8+
9+
list(APPEND EXTRA_DTC_FLAGS "-Wno-unique_unit_address_if_enabled")
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#
2+
# Copyright (c) 2024 The ZMK Contributors
3+
# SPDX-License-Identifier: MIT
4+
#
5+
6+
# Suppresses duplicate unit-address warning at build time for power, clock, acl and flash-controller
7+
# https://docs.zephyrproject.org/latest/build/dts/intro-input-output.html
8+
9+
list(APPEND EXTRA_DTC_FLAGS "-Wno-unique_unit_address_if_enabled")
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#
2+
# Copyright (c) 2024 The ZMK Contributors
3+
# SPDX-License-Identifier: MIT
4+
#
5+
6+
# Suppresses duplicate unit-address warning at build time for power, clock, acl and flash-controller
7+
# https://docs.zephyrproject.org/latest/build/dts/intro-input-output.html
8+
9+
list(APPEND EXTRA_DTC_FLAGS "-Wno-unique_unit_address_if_enabled")
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#
2+
# Copyright (c) 2024 The ZMK Contributors
3+
# SPDX-License-Identifier: MIT
4+
#
5+
6+
# Suppresses duplicate unit-address warning at build time for power, clock, acl and flash-controller
7+
# https://docs.zephyrproject.org/latest/build/dts/intro-input-output.html
8+
9+
list(APPEND EXTRA_DTC_FLAGS "-Wno-unique_unit_address_if_enabled")
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#
2+
# Copyright (c) 2024 The ZMK Contributors
3+
# SPDX-License-Identifier: MIT
4+
#
5+
6+
# Suppresses duplicate unit-address warning at build time for power, clock, acl and flash-controller
7+
# https://docs.zephyrproject.org/latest/build/dts/intro-input-output.html
8+
9+
list(APPEND EXTRA_DTC_FLAGS "-Wno-unique_unit_address_if_enabled")

0 commit comments

Comments
 (0)