diff options
| author | Peter Seiderer <ps.report@gmx.net> | 2015-01-13 20:40:02 +0100 |
|---|---|---|
| committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-01-14 20:40:39 +0100 |
| commit | 304755acf59bf2fedd2b226314a089d54b65c729 (patch) | |
| tree | 0c367e8b3c8a07c735449fb5ee60b39fab10d594 /package/dtc/0002-extra-cflags.patch | |
| parent | 12c3bc1f230fffde14b3d58e0c79c0bcc8124da2 (diff) | |
| download | buildroot-304755acf59bf2fedd2b226314a089d54b65c729.tar.gz buildroot-304755acf59bf2fedd2b226314a089d54b65c729.zip | |
dtc: rename patches to new convention
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/dtc/0002-extra-cflags.patch')
| -rw-r--r-- | package/dtc/0002-extra-cflags.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/package/dtc/0002-extra-cflags.patch b/package/dtc/0002-extra-cflags.patch new file mode 100644 index 0000000000..51b79572e8 --- /dev/null +++ b/package/dtc/0002-extra-cflags.patch @@ -0,0 +1,32 @@ +Makefile: append the CFLAGS to existing ones + +Allow the user to pass custom CFLAGS (eg. optimisation flags). + +Do not use EXTRA_CFLAGS, append to existing CFLAGS with += (Arnout) + +Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> +Cc: Arnout Vandecappelle <arnout@mind.be> + +--- +Patch not sent upstream. + +Although not specific to buildroot, I am not sure this is the best +way to handle user-supplied CFLAGS. + +diff --git a/Makefile b/Makefile +index 962f94eba661..bf6b317158cf 100644 +--- a/Makefile ++++ b/Makefile +@@ -16,9 +16,10 @@ LOCAL_VERSION = + CONFIG_LOCALVERSION = + + CPPFLAGS = -I libfdt -I . +-WARNINGS = -Werror -Wall -Wpointer-arith -Wcast-qual -Wnested-externs \ ++WARNINGS = -Wall -Wpointer-arith -Wcast-qual -Wnested-externs \ + -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls +-CFLAGS = -g -Os -fPIC -Werror $(WARNINGS) ++CFLAGS ?= -g -Os ++CFLAGS += -fPIC $(WARNINGS) + + BISON = bison + LEX = flex |

