Skip to contentSkip to conversation

sparc: add $BITS to piggyback arguments

PATCH New Sam Ravnborg 1 participant 1 message Jan 4, 2011 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH 6/10 sparc: add $BITS to piggyback arguments

Add new option to piggyback that identify if this is for 32 or 64 bit.
Use this information to determine the alignment used.

---
 arch/sparc/boot/Makefile       |    2 +-
 arch/sparc/boot/piggyback_32.c |   45 +++++++++++++++++++++++++--------------
 2 files changed, 30 insertions(+), 17 deletions(-)
arch/sparc/boot/Makefile +1 -1
index 97e3feb..4c81fe5 100644
@@ -15,7 +15,7 @@ quiet_cmd_elftoaout	= ELFTOAOUT $@
 
 ifeq ($(CONFIG_SPARC32),y)
 quiet_cmd_piggy		= PIGGY   $@
-      cmd_piggy		= $(obj)/piggyback_32 $@ System.map $(ROOT_IMG)
+      cmd_piggy		= $(obj)/piggyback_32 $(BITS) $@ System.map $(ROOT_IMG)
 quiet_cmd_btfix		= BTFIX   $@
       cmd_btfix		= $(OBJDUMP) -x vmlinux | $(obj)/btfixupprep > $@
 quiet_cmd_sysmap        = SYSMAP  $(obj)/System.map
arch/sparc/boot/piggyback_32.c +29 -16

88 lines not on this page · raw message

Signature · 1 line
1.6.0.6