From: Dave Z. <da...@th...> - 2000-11-11 06:31:18
|
On Sat, 11 Nov 2000, Jeff Dike wrote: > Maybe everyone is complaining about my writing because they can't find > anything wrong with my code :-) Actually, I was going to suggest this patch, but I wasn't sure if you'd want it (this patch might be handy if you're interested in eventually submitting UML for inclusion into Linus's kernel): --- linux-orig/Makefile Sun Nov 5 10:19:12 2000 +++ linux/Makefile Fri Nov 10 21:05:23 2000 @@ -5,10 +5,10 @@ KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) -ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/) - -SUBARCH := $(ARCH) -ARCH = um +SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/) +ifneq ($(ARCH),um) +ARCH := $(SUBARCH) +endif CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ else if [ -x /bin/bash ]; then echo /bin/bash; \ So if you want to build a kernel for your host system, you wouldn't need to do anything different. If you want to build a user-mode Linux kernel for your system, all you need to do is one of two options: make ARCH=um config dep clean linux or: "export ARCH=um" or "setenv ARCH um" in your shell. In any case, would you care to comment on the topic of integrating UML into the standard Linux kernel tree? Are you for it? What does Linus think (if he's commented on the subject in the past)? davez -- Dave Zarzycki http://thor.sbay.org/~dave/ |