[2.5 sparc32] trivial: fix up check_asm

From: Tomas Szepe (szepe@pinerecords.com)
Date: Thu Oct 17 2002 - 03:31:02 EST


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/



This archive was generated by hypermail 2b29 : Wed Oct 23 2002 - 22:00:32 EST