git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.3
[linux-2.6.git]
/
arch
/
ppc64
/
Makefile
diff --git
a/arch/ppc64/Makefile
b/arch/ppc64/Makefile
index
09e84e7
..
59fdc0e
100644
(file)
--- a/
arch/ppc64/Makefile
+++ b/
arch/ppc64/Makefile
@@
-15,28
+15,34
@@
KERNELLOAD := 0xc000000000000000
KERNELLOAD := 0xc000000000000000
-HAS_BIARCH := $(
shell if $(CC) -m64 -S -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo y; else echo n; fi;
)
+HAS_BIARCH := $(
call cc-option-yn, -m64
)
ifeq ($(HAS_BIARCH),y)
ifeq ($(HAS_BIARCH),y)
-AS := $(AS) -64
+AS := $(AS) -
a
64
LD := $(LD) -m elf64ppc
CC := $(CC) -m64
LD := $(LD) -m elf64ppc
CC := $(CC) -m64
-CHECK := $(CHECK) -m64
endif
endif
+new_nm := $(shell if $(NM) --help 2>&1 | grep -- '--synthetic' > /dev/null; then echo y; else echo n; fi)
+
+ifeq ($(new_nm),y)
+NM := $(NM) --synthetic
+endif
+
+CHECKFLAGS += -m64 -D__powerpc__
+
LDFLAGS := -m elf64ppc
LDFLAGS_vmlinux := -Bstatic -e $(KERNELLOAD) -Ttext $(KERNELLOAD)
LDFLAGS := -m elf64ppc
LDFLAGS_vmlinux := -Bstatic -e $(KERNELLOAD) -Ttext $(KERNELLOAD)
-CFLAGS += -msoft-float -pipe -Wno-uninitialized -mminimal-toc \
- -mtraceback=none
+CFLAGS += -msoft-float -pipe -mminimal-toc -mtraceback=none
ifeq ($(CONFIG_POWER4_ONLY),y)
ifeq ($(CONFIG_POWER4_ONLY),y)
- CFLAGS += $(call c
heck_gcc,-mcpu=power4,
)
+ CFLAGS += $(call c
c-option,-mcpu=power4
)
else
else
- CFLAGS += $(call c
heck_gcc,-mtune=power4,
)
+ CFLAGS += $(call c
c-option,-mtune=power4
)
endif
# Enable unit-at-a-time mode when possible. It shrinks the
# kernel considerably.
endif
# Enable unit-at-a-time mode when possible. It shrinks the
# kernel considerably.
-CFLAGS += $(call c
heck_gcc,-funit-at-a-time,
)
+CFLAGS += $(call c
c-option,-funit-at-a-time
)
head-y := arch/ppc64/kernel/head.o
head-y := arch/ppc64/kernel/head.o