Commit 3de20c98 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ppc64: add automatic check for biarch compilers

From: Anton Blanchard <anton@samba.org>

add automatic check for biarch compilers
parent 3cf90b05
...@@ -15,6 +15,17 @@ ...@@ -15,6 +15,17 @@
KERNELLOAD := 0xc000000000000000 KERNELLOAD := 0xc000000000000000
ifeq ($(shell uname -m),ppc64)
CHECKS = checks
endif
HAS_BIARCH := $(shell if $(CC) -m64 -S -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo y; else echo n; fi;)
ifeq ($(HAS_BIARCH),y)
AS := $(AS) -64
LD := $(LD) -m elf64ppc
CC := $(CC) -m64
endif
LDFLAGS := -m elf64ppc LDFLAGS := -m elf64ppc
LDFLAGS_vmlinux := -Bstatic -e $(KERNELLOAD) -Ttext $(KERNELLOAD) LDFLAGS_vmlinux := -Bstatic -e $(KERNELLOAD) -Ttext $(KERNELLOAD)
CFLAGS += -msoft-float -pipe -Wno-uninitialized -mminimal-toc \ CFLAGS += -msoft-float -pipe -Wno-uninitialized -mminimal-toc \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment