patch-2.3.16 linux/arch/arm/boot/compressed/Makefile

Next file: linux/arch/arm/config.in
Previous file: linux/arch/arm/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.15/linux/arch/arm/boot/compressed/Makefile linux/arch/arm/boot/compressed/Makefile
@@ -17,6 +17,13 @@
 OBJS	+= ll_char_wr.o font.o
 endif
 
+ifeq ($(NEW_LINKER),y)
+BINFMT	:= elf32-littlearm
+else
+BINFMT	:= elf32-arm
+endif
+
+
 all:		vmlinux
 
 vmlinux:	$(OBJS) piggy.o
@@ -31,7 +38,7 @@
 		$(OBJCOPY) $(SYSTEM) $$tmppiggy; \
 		gzip -f -9 < $$tmppiggy > $$tmppiggy.gz; \
 		echo "SECTIONS { .data : { input_len = .; LONG(input_data_end - input_data) input_data = .; *(.data) input_data_end = .; }}" > $$tmppiggy.lnk; \
-		$(LD) -r -o piggy.o -b binary $$tmppiggy.gz -b elf32-arm -T $$tmppiggy.lnk; \
+		$(LD) -r -o piggy.o -b binary $$tmppiggy.gz -b $(BINFMT) -T $$tmppiggy.lnk; \
 		rm -f $$tmppiggy $$tmppiggy.gz $$tmppiggy.lnk;
 
 font.o:		$(FONTC)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)