Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b0cdd599 authored by Sam Ravnborg's avatar Sam Ravnborg Committed by David S. Miller
Browse files

sparc,sparc64: add BITS to arch Makefile



BITS will be used to simplify unified Makefiles

Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 26b4c912
Loading
Loading
Loading
Loading
+4 −3
Original line number Original line Diff line number Diff line
@@ -14,6 +14,7 @@
AS             := $(AS) -32
AS             := $(AS) -32
LDFLAGS        := -m elf32_sparc
LDFLAGS        := -m elf32_sparc
CHECKFLAGS     += -D__sparc__
CHECKFLAGS     += -D__sparc__
export BITS    := 32


#KBUILD_CFLAGS += -g -pipe -fcall-used-g5 -fcall-used-g7
#KBUILD_CFLAGS += -g -pipe -fcall-used-g5 -fcall-used-g7
KBUILD_CFLAGS += -m32 -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7
KBUILD_CFLAGS += -m32 -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7
+2 −2
Original line number Original line Diff line number Diff line
@@ -12,8 +12,8 @@ CHECKFLAGS += -D__sparc__ -D__sparc_v9__ -D__arch64__ -m64
# Undefine sparc when processing vmlinux.lds - it is used
# Undefine sparc when processing vmlinux.lds - it is used
# And teach CPP we are doing 64 bit builds (for this case)
# And teach CPP we are doing 64 bit builds (for this case)
CPPFLAGS_vmlinux.lds += -m64 -Usparc
CPPFLAGS_vmlinux.lds += -m64 -Usparc

LDFLAGS              := -m elf64_sparc
LDFLAGS              := -m elf64_sparc
export BITS          := 64


KBUILD_CFLAGS += -m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow \
KBUILD_CFLAGS += -m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow \
	-ffixed-g4 -ffixed-g5 -fcall-used-g7 -Wno-sign-compare \
	-ffixed-g4 -ffixed-g5 -fcall-used-g7 -Wno-sign-compare \