aboutsummaryrefslogtreecommitdiff
path: root/Makefile.main
diff options
context:
space:
mode:
authorJeremy Kerr <jeremy.kerr@au.ibm.com>2015-01-27 15:27:30 +0800
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-01-28 15:52:13 +1100
commita8607ff129fa9c816b7004515e619332b5e84fee (patch)
tree4770e29af94d038afb23848be5e0006f20214c19 /Makefile.main
parentd68d2fff1b2ec16f05986330465b9bf1d84e7e48 (diff)
downloadskiboot-a8607ff129fa9c816b7004515e619332b5e84fee.zip
skiboot-a8607ff129fa9c816b7004515e619332b5e84fee.tar.gz
skiboot-a8607ff129fa9c816b7004515e619332b5e84fee.tar.bz2
Makefile: Move -m options from CPPFLAGS to CFLAGS & AFLAGS
The -m options are for the compiler, not the preprocessor. Since we may execute CC without CPPFLAGS, move these options to CFLAGS & AFLAGS. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'Makefile.main')
-rw-r--r--Makefile.main6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.main b/Makefile.main
index 4a8cbe4..b5376fc 100644
--- a/Makefile.main
+++ b/Makefile.main
@@ -44,13 +44,13 @@ CPPFLAGS += -I$(SRC)/libpore -D__HAVE_LIBPORE__
endif
CPPFLAGS += -D__SKIBOOT__ -nostdinc
CPPFLAGS += -isystem $(shell $(CC) -print-file-name=include)
-CPPFLAGS += -DBITS_PER_LONG=64 -m64 -DHAVE_BIG_ENDIAN
+CPPFLAGS += -DBITS_PER_LONG=64 -DHAVE_BIG_ENDIAN
# We might want to remove our copy of stdint.h
# but that means uint64_t becomes an ulong instead of an ullong
# causing all our printf's to warn
CPPFLAGS += -ffreestanding
-CFLAGS := -fno-strict-aliasing -fstack-protector-all -pie
+CFLAGS := -fno-strict-aliasing -fstack-protector-all -pie -mbig-endian -m64
ifeq ($(STACK_CHECK),1)
CFLAGS += -fstack-protector-all -pg
@@ -69,7 +69,7 @@ LDRFLAGS=-melf64ppc
# Debug stuff
#LDFLAGS += -Wl,-v -Wl,-Map,foomap
-AFLAGS := -D__ASSEMBLY__
+AFLAGS := -D__ASSEMBLY__ -mbig-endian -m64
# Special tool flags:
# Do not use the floating point unit