diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2017-07-18 20:40:08 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-08-22 16:31:08 +1000 |
commit | 70de75d14498a89f34c4159c7d7d9fa497c603e6 (patch) | |
tree | d36a5b34e91ed02d45cddb36ad9bf482337d25c0 /Makefile.main | |
parent | 50f36052abd708f394436fd8aa4c1176ca329503 (diff) | |
download | skiboot-70de75d14498a89f34c4159c7d7d9fa497c603e6.zip skiboot-70de75d14498a89f34c4159c7d7d9fa497c603e6.tar.gz skiboot-70de75d14498a89f34c4159c7d7d9fa497c603e6.tar.bz2 |
build: CFLAGS compile with -mcpu=power7
The gcc powerpc64le cross compiler for x86 builds with -mcpu=power8 by
default, which does not match the powerpc64 compiler, and is not
the right thing to do for POWER7 support.
Pass -mcpu=power7 explicitly. This may cause a change of target on
existing BE toolchains.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'Makefile.main')
-rw-r--r-- | Makefile.main | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.main b/Makefile.main index a7bb8be..73c9196 100644 --- a/Makefile.main +++ b/Makefile.main @@ -66,6 +66,7 @@ CPPFLAGS += -DDEBUG -DCCAN_LIST_DEBUG endif CFLAGS := -fno-strict-aliasing -pie -fpie -fno-pic -mbig-endian -m64 +CFLAGS += -mcpu=power7 CFLAGS += -Wl,--oformat,elf64-powerpc CFLAGS += -ffixed-r13 CFLAGS += $(call try-cflag,$(CC),-std=gnu11) @@ -108,7 +109,7 @@ LDFLAGS := -m64 -static -nostdlib -pie LDFLAGS += -Wl,-pie LDFLAGS += -Wl,-Ttext-segment,$(LD_TEXT) -Wl,-N -Wl,--build-id=none LDFLAGS += -Wl,--no-multi-toc -LDFLAGS += -mbig-endian -Wl,--oformat,elf64-powerpc +LDFLAGS += -mcpu=power7 -mbig-endian -Wl,--oformat,elf64-powerpc LDRFLAGS=-melf64ppc # Debug stuff |