[PATCH] introduce UTS_MACHINE

Matthew Wilcox (willy@debian.org)
Wed, 16 Oct 2002 19:34:47 +0100


We want to be able to override the value reported by uname -m so we don't
have to duplicate vast amounts of code between parisc & parisc64.

diff -urpNX build-tools/dontdiff linus-2.5/Makefile parisc-2.5/Makefile
--- linus-2.5/Makefile Tue Oct 8 10:52:12 2002
+++ parisc-2.5/Makefile Tue Oct 15 15:53:19 2002
@@ -38,6 +38,8 @@ ARCH := $(SUBARCH)

KERNELPATH=kernel-$(shell echo $(KERNELRELEASE) | sed -e "s/-//g")

+UTS_MACHINE := $(ARCH)
+
CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
else if [ -x /bin/bash ]; then echo /bin/bash; \
else echo sh; fi ; fi)
@@ -161,7 +165,8 @@ AFLAGS := -D__ASSEMBLY__ $(CPPFLAGS)

export VERSION PATCHLEVEL SUBLEVEL EXTRAVERSION KERNELRELEASE ARCH \
CONFIG_SHELL TOPDIR HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD CC \
- CPP AR NM STRIP OBJCOPY OBJDUMP MAKE MAKEFILES GENKSYMS PERL
+ CPP AR NM STRIP OBJCOPY OBJDUMP MAKE MAKEFILES GENKSYMS PERL \
+ UTS_MACHINE

export CPPFLAGS NOSTDINC_FLAGS OBJCOPYFLAGS LDFLAGS
export CFLAGS CFLAGS_KERNEL CFLAGS_MODULE
diff -urpNX build-tools/dontdiff linus-2.5/init/Makefile parisc-2.5/init/Makefile
--- linus-2.5/init/Makefile Tue Oct 8 10:54:20 2002
+++ parisc-2.5/init/Makefile Tue Oct 8 16:49:22 2002
@@ -17,4 +17,4 @@ $(obj)/version.o: $(objtree)/include/lin

$(objtree)/include/linux/compile.h: FORCE
@echo -n ' Generating $@'
- @$(srctree)/scripts/mkcompile_h $@ "$(ARCH)" "$(CONFIG_SMP)" "$(CC) $(CFLAGS)"
+ @$(srctree)/scripts/mkcompile_h $@ "$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CC) $(CFLAGS)"

-- 
Revolutions do not require corporate support.
-
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/