osmith has submitted this change. ( 
https://gerrit.osmocom.org/c/simtrace2/+/34408?usp=email )

Change subject: firmware/Makefile: don't use distribution's CFLAGS
......................................................................

firmware/Makefile: don't use distribution's CFLAGS

Set CFLAGS on top of the Makefile, to avoid using the distribution's
default CFLAGS. In debian testing and unstable, -fcf-protection was
recently added to the default CFLAGS, but it cannot be used with the
cross compiler:

  [COMPILING libosmocore/source/backtrace.c]
  cc1: error: '-fcf-protection=full' is not supported for this target
  make[2]: *** [Makefile:270: obj/simtrace/flash_backtrace.o] Error 1

Change-Id: I5f7cd0402f9bb85dd600204fdf8855773ddbeb70
---
M firmware/Makefile
1 file changed, 25 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  Hoernchen: Looks good to me, but someone else must approve
  osmith: Looks good to me, approved
  laforge: Looks good to me, approved




diff --git a/firmware/Makefile b/firmware/Makefile
index 9a2d347..2f7a370 100644
--- a/firmware/Makefile
+++ b/firmware/Makefile
@@ -29,6 +29,13 @@
 #   Makefile for compiling the Getting Started with SAM3S Microcontrollers 
project

 GIT_VERSION=$(shell $(TOP)/git-version-gen $(TOP)/.tarball-version)
+
+CFLAGS = \
+        -Werror=format-security \
+        -Wformat \
+        -g \
+        $(NULL)
+
 
#-------------------------------------------------------------------------------
 #        User-modifiable options
 
#-------------------------------------------------------------------------------

--
To view, visit https://gerrit.osmocom.org/c/simtrace2/+/34408?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: simtrace2
Gerrit-Branch: master
Gerrit-Change-Id: I5f7cd0402f9bb85dd600204fdf8855773ddbeb70
Gerrit-Change-Number: 34408
Gerrit-PatchSet: 3
Gerrit-Owner: osmith <[email protected]>
Gerrit-Reviewer: Hoernchen <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-MessageType: merged

Reply via email to