From eca975ec3379f7ea73a06d169d74bb7970b5c37e Mon Sep 17 00:00:00 2001
From: Reinier van der Walle <walle@astron.nl>
Date: Tue, 8 Dec 2020 13:37:49 +0100
Subject: [PATCH] Added aocr flag for ignoring io_channel error

---
 applications/ta2/designs/ta2_unb2b_mm_demo/Makefile   | 1 +
 applications/ta2/designs/ta2_unb2b_qsfp_demo/Makefile | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/applications/ta2/designs/ta2_unb2b_mm_demo/Makefile b/applications/ta2/designs/ta2_unb2b_mm_demo/Makefile
index 131d1b1dcc..7a1ca2b438 100644
--- a/applications/ta2/designs/ta2_unb2b_mm_demo/Makefile
+++ b/applications/ta2/designs/ta2_unb2b_mm_demo/Makefile
@@ -36,6 +36,7 @@ AOC=			aoc
 AOCFLAGS=		-v -g
 #AOCRFLAGS+=		-fp-relaxed
 AOCRFLAGS+=		-report
+AOCOFLAGS+=   -Wno-error=analyze-channels-usage
 AOCRFLAGS+=   -opt-arg=-allow-io-channel-autorun-kernel
 #AOCRFLAGS+=		-board=p385a_min_ax115_1710240
 AOCOFLAGS+=		-board=$(UNB2B_BSP)
diff --git a/applications/ta2/designs/ta2_unb2b_qsfp_demo/Makefile b/applications/ta2/designs/ta2_unb2b_qsfp_demo/Makefile
index bd3834b0e3..cf5531d951 100644
--- a/applications/ta2/designs/ta2_unb2b_qsfp_demo/Makefile
+++ b/applications/ta2/designs/ta2_unb2b_qsfp_demo/Makefile
@@ -36,10 +36,11 @@ AOC=			aoc
 AOCFLAGS=		-v -g
 #AOCRFLAGS+=		-fp-relaxed
 AOCRFLAGS+=		-report
+
 AOCRFLAGS+=   -opt-arg=-allow-io-channel-autorun-kernel
 #AOCRFLAGS+=		-board=p385a_min_ax115_1710240
 AOCOFLAGS+=		-board=$(UNB2B_BSP)
-
+AOCOFLAGS+=   -Wno-error=analyze-channels-usage
 AOCOFLAGS+=		-I$(INTELOCLSDKROOT)/include/kernel_headers
 AOCXFLAGS+=   -bsp-flow=flat
 ifneq ("$(SEED)", "")
-- 
GitLab