aboutsummaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorFrederic Bonnard <frediz@linux.vnet.ibm.com>2015-06-22 13:06:51 +0200
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-06-23 13:24:39 +1000
commit0914bb1b9106638378d5d4a3b4f39a4736c43c41 (patch)
treee22132beaf5676b59d16c09725bb3eab1834f849 /external
parent9f079336a342592e2823877f0477ac0a4eaa9f09 (diff)
downloadskiboot-0914bb1b9106638378d5d4a3b4f39a4736c43c41.zip
skiboot-0914bb1b9106638378d5d4a3b4f39a4736c43c41.tar.gz
skiboot-0914bb1b9106638378d5d4a3b4f39a4736c43c41.tar.bz2
Honor compilation flags passed from the environment
Adding the environment variables CFLAGS, CPPFLAGS and LDFLAGS to the one in the Makefiles. Debian/Ubuntu use this mechanism to do hardened builds. Signed-off-by: Frederic Bonnard <frediz@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external')
-rw-r--r--external/gard/Makefile6
-rw-r--r--external/opal-prd/Makefile6
2 files changed, 6 insertions, 6 deletions
diff --git a/external/gard/Makefile b/external/gard/Makefile
index 4f0400e..de940ee 100644
--- a/external/gard/Makefile
+++ b/external/gard/Makefile
@@ -4,10 +4,10 @@ prefix = /usr/local/
sbindir = $(prefix)/sbin
CC = $(CROSS_COMPILE)gcc
-CFLAGS = -m64 -Werror -Wall -g2 -ggdb
-LDFLAGS = -m64
+CFLAGS += -m64 -Werror -Wall -g2 -ggdb
+LDFLAGS += -m64
ASFLAGS = -m64
-CPPFLAGS = -I. -I../../
+CPPFLAGS += -I. -I../../
OBJS = file_flash.o gard.o libflash.o libffs.o ecc.o
diff --git a/external/opal-prd/Makefile b/external/opal-prd/Makefile
index 433ab71..fa5872a 100644
--- a/external/opal-prd/Makefile
+++ b/external/opal-prd/Makefile
@@ -1,9 +1,9 @@
CC = $(CROSS_COMPILE)gcc
-CFLAGS = -m64 -Werror -Wall -g2 -ggdb
-LDFLAGS = -m64
+CFLAGS += -m64 -Werror -Wall -g2 -ggdb
+LDFLAGS += -m64
ASFLAGS = -m64
-CPPFLAGS = -I. -I../../include -I../../
+CPPFLAGS += -I. -I../../include -I../../
prefix = /usr/local/
sbindir = $(prefix)/sbin