aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro/0001-buildsystem-don-t-ignore-externally-set-cflags.patch
blob: 861230bbde6034b420dfd5fc11aa2c1325b26837 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
From aba22ec2e285cf7557a5049fa6181e82e7f1a489 Mon Sep 17 00:00:00 2001
From: Max Krummenacher <max.krummenacher@toradex.com>
Date: Mon, 21 Nov 2022 12:04:09 +0000
Subject: [PATCH] buildsystem: don't ignore externally set cflags

Upstream-Status: pending
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
---
 decoder_sw/software/linux/h264high/Makefile | 4 ++--
 decoder_sw/software/linux/vp6/Makefile      | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/decoder_sw/software/linux/h264high/Makefile b/decoder_sw/software/linux/h264high/Makefile
index 556ff71..7bdd99d 100755
--- a/decoder_sw/software/linux/h264high/Makefile
+++ b/decoder_sw/software/linux/h264high/Makefile
@@ -50,10 +50,10 @@ CLEAR_HDRINFO_IN_SEEK = n
 DEBUG = y
 # Add your debugging flag (or not) to CFLAGS
 ifeq ($(DEBUG),y)
-  CFLAGS   = $(M32) -g -O0
+  CFLAGS   += $(M32) -g -O0
   DEBFLAGS = -DDEBUG -D_ASSERT_USED -D_RANGE_CHECK -D_ERROR_PRINT
 else
-  CFLAGS   = $(M32) -O3
+  CFLAGS   += $(M32) -O3
   DEBFLAGS = -DNDEBUG
 endif
 
diff --git a/decoder_sw/software/linux/vp6/Makefile b/decoder_sw/software/linux/vp6/Makefile
index b6e6914..b933d46 100755
--- a/decoder_sw/software/linux/vp6/Makefile
+++ b/decoder_sw/software/linux/vp6/Makefile
@@ -50,10 +50,10 @@ DEBUG = y
 
 # Add your debugging flag (or not) to CFLAGS
 ifeq ($(DEBUG),y)
-  CFLAGS   = -g -O0
+  CFLAGS   += -g -O0
   DEBFLAGS = -DDEBUG -D_ASSERT_USED -D_ERROR_PRINT
 else
-  CFLAGS   = -O3
+  CFLAGS   += -O3
   DEBFLAGS = -DNDEBUG
 endif
 
-- 
2.35.3