From 1072916d33572be0ac4d233950a957d857130d46 Mon Sep 17 00:00:00 2001
From: Andrei Litvin <andy314@gmail.com>
Date: Wed, 6 Jul 2022 19:13:03 -0400
Subject: [PATCH] Blacklist nrf52840dongle-all-clusters - runst out of flash
 (#20400)

* Blacklist nrf52840dongle-all-clusters - runst out of flash

* Undo repo update

* Fix unit tests
---
 scripts/build/build/targets.py                           | 2 +-
 scripts/build/testdata/all_targets_except_host.txt       | 2 +-
 scripts/build/testdata/glob_star_targets_except_host.txt | 1 -
 3 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py
index 46a44715d35b92..ac92a809ecd555 100644
--- a/scripts/build/build/targets.py
+++ b/scripts/build/build/targets.py
@@ -418,7 +418,7 @@ def NrfTargets():
     ]
 
     # Enable nrf52840dongle for all-clusters and lighting app only
-    yield target.Extend('nrf52840dongle-all-clusters', board=NrfBoard.NRF52840DONGLE, app=NrfApp.ALL_CLUSTERS)
+    yield target.Extend('nrf52840dongle-all-clusters', board=NrfBoard.NRF52840DONGLE, app=NrfApp.ALL_CLUSTERS).GlobBlacklist('Out of flash when linking')
     yield target.Extend('nrf52840dongle-all-clusters-minimal', board=NrfBoard.NRF52840DONGLE, app=NrfApp.ALL_CLUSTERS_MINIMAL)
     yield target.Extend('nrf52840dongle-light', board=NrfBoard.NRF52840DONGLE, app=NrfApp.LIGHT)
 
diff --git a/scripts/build/testdata/all_targets_except_host.txt b/scripts/build/testdata/all_targets_except_host.txt
index 4611cdeacd917b..082430b019ac39 100644
--- a/scripts/build/testdata/all_targets_except_host.txt
+++ b/scripts/build/testdata/all_targets_except_host.txt
@@ -214,7 +214,7 @@ nrf-nrf52840dk-lock
 nrf-nrf52840dk-pump
 nrf-nrf52840dk-pump-controller
 nrf-nrf52840dk-shell
-nrf-nrf52840dongle-all-clusters
+nrf-nrf52840dongle-all-clusters (NOGLOB: Out of flash when linking)
 nrf-nrf52840dongle-all-clusters-minimal
 nrf-nrf52840dongle-light
 nrf-nrf5340dk-all-clusters
diff --git a/scripts/build/testdata/glob_star_targets_except_host.txt b/scripts/build/testdata/glob_star_targets_except_host.txt
index 94dce9283947eb..e8bcb0bf1568d2 100644
--- a/scripts/build/testdata/glob_star_targets_except_host.txt
+++ b/scripts/build/testdata/glob_star_targets_except_host.txt
@@ -94,7 +94,6 @@ nrf-nrf52840dk-lock
 nrf-nrf52840dk-pump
 nrf-nrf52840dk-pump-controller
 nrf-nrf52840dk-shell
-nrf-nrf52840dongle-all-clusters
 nrf-nrf52840dongle-all-clusters-minimal
 nrf-nrf52840dongle-light
 nrf-nrf5340dk-all-clusters