Skip to contentSkip to conversation

small sparc Makefile cleanups

PATCH In review Adrian Bunk 2 participants 3 messages Aug 26, 2003 – Aug 27, 2003 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 small sparc Makefile cleanups

The patch below removes checks for ancient gcc and binutils versions from arch/sparc/Makefile (and the "-g" is already better handled in the toplevel Makefile).

cu
Adrian

arch/sparc/Makefile renamed from arch/sparc/Makefile.old +0 -14
@@ -7,25 +7,11 @@
 # Copyright (C) 1994 David S. Miller ([email protected])
 #
 
-#
-# Uncomment the first CFLAGS if you are doing kgdb source level
-# debugging of the kernel to get the proper debugging information.
-
-IS_EGCS := $(shell if $(CC) -m32 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo y; else echo n; fi; )
-NEW_GAS := $(shell if $(LD) --version 2>&1 | grep 'elf64_sparc' > /dev/null; then echo y; else echo n; fi)
-
-ifeq ($(NEW_GAS),y)
 AS              := $(AS) -32
 LDFLAGS		:= -m elf32_sparc
-endif
 
-#CFLAGS := $(CFLAGS) -g -pipe -fcall-used-g5 -fcall-used-g7
-ifneq ($(IS_EGCS),y)
-CFLAGS := $(CFLAGS) -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7
-else
 CFLAGS := $(CFLAGS) -m32 -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7
 AFLAGS := $(AFLAGS) -m32
-endif
 
 #LDFLAGS_vmlinux = -N -Ttext 0xf0004000
 #  Since 2.5.40, the first stage is left not btfix-ed.
#1 lore raw

arch/sparc/Makefile line 15

Quoted 9 lines

Date: Wed, 27 Aug 2003 00:19:23 +0200
From: Adrian Bunk <[email protected]>

arch/sparc/Makefile renamed from arch/sparc/Makefile.old +0 -6
-#
-# Uncomment the first CFLAGS if you are doing kgdb source level
-# debugging of the kernel to get the proper debugging information.
-
-IS_EGCS := $(shell if $(CC) -m32 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo y; else echo n; fi; )
-NEW_GAS := $(shell if $(LD) --version 2>&1 | grep 'elf64_sparc' > /dev/null; then echo y; else echo n; fi)

This is sane, and was on todo list of months. Just shows what kind of backlog I accumulated. Can someone else test it for me? Please reply with result and outut from
gcc -v && as -v < /dev/null.

-- Pete

#2 lore raw
In reply to Adrian Bunk

arch/sparc/Makefile line 15

Quoted 6 lines
arch/sparc/Makefile renamed from arch/sparc/Makefile.old +0 -6
-#
-# Uncomment the first CFLAGS if you are doing kgdb source level
-# debugging of the kernel to get the proper debugging information.
-
-IS_EGCS := $(shell if $(CC) -m32 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo y; else echo n; fi; )
-NEW_GAS := $(shell if $(LD) --version 2>&1 | grep 'elf64_sparc' > /dev/null; then echo y; else echo n; fi)

Actually, let me rephrase the question. Does anyone still use UltraPenguin 1.x or Red Hat 5.x userland for kernel hacking? If I get no reply in a week, this goes in.

-- Pete