lkml.org 
[lkml]   [2002]   [May]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] USE_STANDARD_AS_RULE in i386 arch Makefiles
Hi Linus,

In Rules.make, a comment says:

# Old makefiles define their own rules for compiling .S files,
# but these standard rules are available for any Makefile that
# wants to use them. Our plan is to incrementally convert all
# the Makefiles to these standard rules. -- rmk, mec

This patch does that for the i386 arch Makefiles.

--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

diff -ruN 2.5.14/arch/i386/kernel/Makefile 2.5.14-kb1/arch/i386/kernel/Makefile
--- 2.5.14/arch/i386/kernel/Makefile Mon Apr 15 10:44:54 2002
+++ 2.5.14-kb1/arch/i386/kernel/Makefile Tue May 7 15:34:20 2002
@@ -7,8 +7,8 @@
#
# Note 2! The CFLAGS definitions are now in the main makefile...

-.S.o:
- $(CC) $(AFLAGS) -traditional -c $< -o $*.o
+EXTRA_AFLAGS := -traditional
+USE_STANDARD_AS_RULE := true

all: kernel.o head.o init_task.o

diff -ruN 2.5.14/arch/i386/lib/Makefile 2.5.14-kb1/arch/i386/lib/Makefile
--- 2.5.14/arch/i386/lib/Makefile Mon Sep 24 05:12:37 2001
+++ 2.5.14-kb1/arch/i386/lib/Makefile Tue May 7 15:43:21 2002
@@ -2,8 +2,7 @@
# Makefile for i386-specific library files..
#

-.S.o:
- $(CC) $(AFLAGS) -c $< -o $*.o
+USE_STANDARD_AS_RULE := true

L_TARGET = lib.a

diff -ruN 2.5.14/arch/i386/math-emu/Makefile 2.5.14-kb1/arch/i386/math-emu/Makefile
--- 2.5.14/arch/i386/math-emu/Makefile Sat Dec 30 09:07:20 2000
+++ 2.5.14-kb1/arch/i386/math-emu/Makefile Tue May 7 15:45:58 2002
@@ -9,8 +9,8 @@
PARANOID = -DPARANOID
CFLAGS := $(CFLAGS) $(PARANOID) $(DEBUG) -fno-builtin $(MATH_EMULATION)

-.S.o:
- $(CC) $(AFLAGS) $(PARANOID) -c $<
+USE_STANDARD_AS_RULE := true
+EXTRA_AFLAGS := $(PARANOID)

# From 'C' language sources:
C_OBJS =fpu_entry.o errors.o \
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:25    [W:0.066 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site