diff mbox series

[meta-arago,master] sbc: Fix for gcc 15 compile error

Message ID 20250521150143.23080-1-reatmon@ti.com
State Under Review
Delegated to: Ryan Eatmon
Headers show
Series [meta-arago,master] sbc: Fix for gcc 15 compile error | expand

Commit Message

Ryan Eatmon May 21, 2025, 3:01 p.m. UTC
With the move to gcc 15, the code is not generating a compile error.

../sbc-2.1/sbc/sbc_primitives_armv6.c:284:9:
   error: too many arguments to function 'sbc_analyze_eight_armv6';
      expected 0, have 3

Simple fix is to drop the C standard down to gnu17 to avoid this new
error.

I am going to submit a better patch to oe-core, but we need this in
the interim to get our builds working again.

Signed-off-by: Ryan Eatmon <reatmon@ti.com>
---
 meta-arago-distro/recipes-multimedia/sbc/sbc-arago.inc  | 1 +
 meta-arago-distro/recipes-multimedia/sbc/sbc_%.bbappend | 4 ++++
 2 files changed, 5 insertions(+)
 create mode 100644 meta-arago-distro/recipes-multimedia/sbc/sbc-arago.inc
 create mode 100644 meta-arago-distro/recipes-multimedia/sbc/sbc_%.bbappend
diff mbox series

Patch

diff --git a/meta-arago-distro/recipes-multimedia/sbc/sbc-arago.inc b/meta-arago-distro/recipes-multimedia/sbc/sbc-arago.inc
new file mode 100644
index 00000000..39725139
--- /dev/null
+++ b/meta-arago-distro/recipes-multimedia/sbc/sbc-arago.inc
@@ -0,0 +1 @@ 
+CFLAGS += "-std=gnu17"
diff --git a/meta-arago-distro/recipes-multimedia/sbc/sbc_%.bbappend b/meta-arago-distro/recipes-multimedia/sbc/sbc_%.bbappend
new file mode 100644
index 00000000..295b58a4
--- /dev/null
+++ b/meta-arago-distro/recipes-multimedia/sbc/sbc_%.bbappend
@@ -0,0 +1,4 @@ 
+SBC_ARAGO = ""
+SBC_ARAGO:arago = "sbc-arago.inc"
+
+require ${SBC_ARAGO}