patch-2.4.21 linux-2.4.21/arch/sparc64/Makefile

Next file: linux-2.4.21/arch/sparc64/boot/Makefile
Previous file: linux-2.4.21/arch/sparc/prom/printf.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/arch/sparc64/Makefile linux-2.4.21/arch/sparc64/Makefile
@@ -17,6 +17,7 @@
 NEW_GCC := $(shell if $(CC) -m64 -mcmodel=medlow -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo y; else echo n; fi; )
 NEW_GAS := $(shell if $(LD) -V 2>&1 | grep 'elf64_sparc' > /dev/null; then echo y; else echo n; fi)
 UNDECLARED_REGS := $(shell if $(CC) -c -x assembler /dev/null -Wa,--help | grep undeclared-regs > /dev/null; then echo y; else echo n; fi; )
+INLINE_LIMIT := $(shell if $(CC) -m64 -finline-limit=100000 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo y; else echo n; fi; )
 
 export NEW_GCC
 
@@ -48,6 +49,10 @@
   AFLAGS += -m64 -mcpu=ultrasparc $(CC_UNDECL)
 endif
 
+ifeq ($(INLINE_LIMIT),y)
+  CFLAGS := $(CFLAGS) -finline-limit=100000
+endif
+
 ifeq ($(CONFIG_MCOUNT),y)
   CFLAGS := $(subst -fomit-frame-pointer,,$(CFLAGS))
   CFLAGS := $(CFLAGS) -pg
@@ -80,9 +85,6 @@
 vmlinux.aout: vmlinux
 	$(ELFTOAOUT) -o $(TOPDIR)/vmlinux.aout $(TOPDIR)/vmlinux
 
-archclean:
-	rm -f $(TOPDIR)/vmlinux.aout
-
 archmrproper:
 	rm -f $(TOPDIR)/include/asm-sparc64/asm_offsets.h
 
@@ -91,5 +93,14 @@
 check_asm: include/linux/version.h
 	$(MAKE) -C arch/sparc64/kernel check_asm
 
+
+MAKEBOOT = $(MAKE) -C arch/$(ARCH)/boot
+
+archclean:
+	@$(MAKEBOOT) clean
+
 tftpboot.img:
-	$(MAKE) -C arch/sparc64/boot tftpboot.img
+	@$(MAKEBOOT) tftpboot.img
+
+image:
+	@$(MAKEBOOT) image

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