lkml.org 
[lkml]   [2002]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[2.5 sparc32] trivial: fix up check_asm
The attached patch fixes up sparc32's lunatic check_asm in 2.5:

T.


diff -urN linux-2.5.43/arch/sparc/kernel/Makefile linux-2.5.43.1/arch/sparc/kernel/Makefile
--- linux-2.5.43/arch/sparc/kernel/Makefile 2002-09-28 10:11:16.000000000 +0200
+++ linux-2.5.43.1/arch/sparc/kernel/Makefile 2002-10-17 10:19:25.000000000 +0200
@@ -29,7 +29,7 @@

include $(TOPDIR)/Rules.make

-HPATH := $(objtree)/include
+HPATH := $(TOPDIR)/include

check_asm: FORCE
@if [ ! -r $(HPATH)/asm/asm_offsets.h ] ; then \
@@ -46,7 +46,7 @@
@echo "#include <linux/config.h>" > tmp.c
@echo "#undef CONFIG_SMP" >> tmp.c
@echo "#include <linux/sched.h>" >> tmp.c
- $(CPP) $(CPPFLAGS) tmp.c -o tmp.i
+ $(CC) $(CFLAGS) -E tmp.c -o tmp.i
@echo "/* Automatically generated. Do not edit. */" > check_asm_data.c
@echo "#include <linux/config.h>" >> check_asm_data.c
@echo "#undef CONFIG_SMP" >> check_asm_data.c
@@ -79,7 +79,7 @@
@echo "#undef CONFIG_SMP" >> tmp.c
@echo "#define CONFIG_SMP 1" >> tmp.c
@echo "#include <linux/sched.h>" >> tmp.c
- $(CPP) $(CPPFLAGS) tmp.c -o tmp.i
+ $(CC) $(CFLAGS) -E tmp.c -o tmp.i
@echo "/* Automatically generated. Do not edit. */" > check_asm_data.c
@echo "#include <linux/config.h>" >> check_asm_data.c
@echo "#undef CONFIG_SMP" >> check_asm_data.c
-
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:30    [W:0.085 / U:0.468 seconds]
©2003-2014 Jasper Spaans. Advertise on this site