From 0c630ce6825b353bda5f3505d35afb904816e838 Mon Sep 17 00:00:00 2001 From: John Klug Date: Tue, 26 Oct 2021 09:51:38 -0500 Subject: Turn off debug in the RS9113 driver due to too many warnings --- recipes-kernel/rs9113/rs9113-from-src/debug-rs9113.patch | 14 ++++++++++++++ recipes-kernel/rs9113/rs9113-from-src_1.6.5.bb | 4 +++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 recipes-kernel/rs9113/rs9113-from-src/debug-rs9113.patch diff --git a/recipes-kernel/rs9113/rs9113-from-src/debug-rs9113.patch b/recipes-kernel/rs9113/rs9113-from-src/debug-rs9113.patch new file mode 100644 index 0000000..4101116 --- /dev/null +++ b/recipes-kernel/rs9113/rs9113-from-src/debug-rs9113.patch @@ -0,0 +1,14 @@ +* Turn off debug to prevent performance issues +======================================================= +diff --git a/source/host/config/make.config b/source/host/config/make.config +index fd5133b..fc4507d 100644 +--- a/source/host/config/make.config ++++ b/source/host/config/make.config +@@ -48,7 +48,6 @@ ifeq ($(CONFIG_CHW_20_40), y) + endif + + +-EXTRA_CFLAGS += -DONEBOX_DEBUG_ENABLE + EXTRA_CFLAGS += -DPROGRAMMING_BBP_TA + EXTRA_CFLAGS += -DPROGRAMMING_SCAN_TA + EXTRA_CFLAGS += -DRSI_SDIO_MULTI_BLOCK_SUPPORT diff --git a/recipes-kernel/rs9113/rs9113-from-src_1.6.5.bb b/recipes-kernel/rs9113/rs9113-from-src_1.6.5.bb index efd6549..a1af590 100644 --- a/recipes-kernel/rs9113/rs9113-from-src_1.6.5.bb +++ b/recipes-kernel/rs9113/rs9113-from-src_1.6.5.bb @@ -18,6 +18,8 @@ SRCREV_FORMAT = "machine" SRC_URI = " \ git://git@${MTS_INTERNAL_GIT}/mlinux/meta-rs9113.git;protocol=ssh;branch=${PV};destsuffix=meta/ \ git://git@${MTS_INTERNAL_GIT}/mlinux/Redpine.git;protocol=ssh;branch=${PV} \ + file://debug-rs9113.patch \ + file://onebox-backlog-counter.patch \ " SRCXX_URI = " \ git://git@${MTS_INTERNAL_GIT}/mlinux/Redpine.git;protocol=ssh;branch=${PV};name=machine \ @@ -59,7 +61,7 @@ do_compile () { do_patch () { cd ${WORKDIR}/git - for f in ${M}/patches/* ; do + for f in ${M}/patches/* ../*.patch ; do # Cannot use [[ $f =~ \.patch$ ]] here because the $ after patch breaks the recipe. if echo ${f} | grep '\.patch$' >/dev/null 2>&1 ; then echo found patch ${f} -- cgit v1.2.3