Skip to contentSkip to conversation

sparc32: drop build time btfixup patching

PATCH Applied Sam Ravnborg 2 participants 3 messages May 14, 2012 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sparc32: drop build time btfixup patching

From 8593606416d24fea271f70877fe581c4e2fab620 Mon Sep 17 00:00:00 2001
From: Sam Ravnborg <[email protected]>
Date: Mon, 14 May 2012 19:35:50 +0200
Subject: [PATCH] sparc32: drop build time btfixup patching

---

Goodbye btfixup - we will not miss you!

I was stopped hacking for today - but this was too tempting... This patch will conflict badly with a patch in kbuild-next.

The fix is simple - drop all changes from kbuild-next.

Sam

 arch/sparc/Makefile           |   12 --
 arch/sparc/boot/Makefile      |   61 +------
 arch/sparc/boot/btfixupprep.c |  386 -----------------------------------------
 3 files changed, 10 insertions(+), 449 deletions(-)
 delete mode 100644 arch/sparc/boot/btfixupprep.c
arch/sparc/Makefile +0 -12
index cd2afcc..7e8040b 100644
@@ -33,11 +33,6 @@ UTS_MACHINE    := sparc
 KBUILD_CFLAGS += -m32 -mcpu=v7 -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7
 KBUILD_AFLAGS += -m32 -Wa,-Av8
 
-#LDFLAGS_vmlinux = -N -Ttext 0xf0004000
-#  Since 2.5.40, the first stage is left not btfix-ed.
-#  Actual linking is done with "make image".
-LDFLAGS_vmlinux = -r
-
 else
 #####
 # sparc64
@@ -72,13 +67,6 @@ libs-y                 += arch/sparc/lib/
 
 drivers-$(CONFIG_OPROFILE)	+= arch/sparc/oprofile/
 
-# Export what is needed by arch/sparc/boot/Makefile
-export VMLINUX_INIT VMLINUX_MAIN
-VMLINUX_INIT := $(head-y) $(init-y)
-VMLINUX_MAIN := $(core-y) kernel/ mm/ fs/ ipc/ security/ crypto/ block/
-VMLINUX_MAIN += $(patsubst %/, %/lib.a, $(libs-y)) $(libs-y)
-VMLINUX_MAIN += $(drivers-y) $(net-y)
-
 ifdef CONFIG_KALLSYMS
 export kallsyms.o := .tmp_kallsyms2.o
 endif
arch/sparc/boot/Makefile +10 -51

88 lines not on this page · raw message

arch/sparc/boot/btfixupprep.c deleted +0 -386

386 lines not on this page · raw message

Signature · 1 line
1.6.0.6
#2 lore raw
In reply to Sam Ravnborg
Quoted 11 lines · David Miller

From: Sam Ravnborg <[email protected]>
Date: Mon, 14 May 2012 19:42:08 +0200

Quoted 6 lines
Quoted 1 line
Quoted 1 line

From 8593606416d24fea271f70877fe581c4e2fab620 Mon Sep 17 00:00:00 2001

From: Sam Ravnborg <[email protected]>
Date: Mon, 14 May 2012 19:35:50 +0200
Subject: [PATCH] sparc32: drop build time btfixup patching

Applied, hallejula!

Yeah!

And this looks good too:

   103 files changed, 1316 insertions(+), 7142 deletions(-)

Sam