[parisc-linux-cvs] parisc64 fix

Matthew Wilcox willy@ldl.fc.hp.com
Mon, 26 Mar 2001 14:11:41 -0700


This makes modutils work again by changing the uname back to parisc64.
Clearly this is not a long-term fix.

Index: Makefile
===================================================================
RCS file: /home/cvs/parisc/linux/Makefile,v
retrieving revision 1.32
diff -u -p -r1.32 Makefile
--- Makefile	2001/02/02 03:35:04	1.32
+++ Makefile	2001/03/26 21:04:40
@@ -330,8 +330,13 @@ include/linux/version.h: ./Makefile
 	@echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))' >>.ver
 	@mv -f .ver $@
 
+ifdef CONFIG_PARISC64
 init/version.o: init/version.c include/linux/compile.h include/config/MARKER
+	$(CC) $(CFLAGS) $(CFLAGS_KERNEL) -DUTS_MACHINE='"$(ARCH)64"' -c -o init/version.o init/version.c
+else
+init/version.o: init/version.c include/linux/compile.h include/config/MARKER
 	$(CC) $(CFLAGS) $(CFLAGS_KERNEL) -DUTS_MACHINE='"$(ARCH)"' -c -o init/version.o init/version.c
+endif
 
 init/main.o: init/main.c include/config/MARKER
 	$(CC) $(CFLAGS) $(CFLAGS_KERNEL) $(PROFILING) -c -o $*.o $<