Commit c517cfc4 authored by Linus Torvalds's avatar Linus Torvalds

sparse: make x86 and ppc64 set the architecture-specific #define's

explcitly.

sparse doesn't set any arch defines itself.
parent b670ef77
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
LDFLAGS := -m elf_i386 LDFLAGS := -m elf_i386
OBJCOPYFLAGS := -O binary -R .note -R .comment -S OBJCOPYFLAGS := -O binary -R .note -R .comment -S
LDFLAGS_vmlinux := LDFLAGS_vmlinux :=
CHECK := $(CHECK) -D__i386__=1
CFLAGS += -pipe -msoft-float CFLAGS += -pipe -msoft-float
......
...@@ -20,9 +20,10 @@ ifeq ($(HAS_BIARCH),y) ...@@ -20,9 +20,10 @@ ifeq ($(HAS_BIARCH),y)
AS := $(AS) -64 AS := $(AS) -64
LD := $(LD) -m elf64ppc LD := $(LD) -m elf64ppc
CC := $(CC) -m64 CC := $(CC) -m64
CHECK := $(CHECK) -m64
endif endif
CHECK := $(CHECK) -m64 -D__powerpc__=1
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