Messages in this thread Patch in this message | | | Date | Mon, 7 Dec 1998 17:23:53 +1300 (NZDT) | From | Keith Duthie <> | Subject | [PATCH] UP config option |
| |
The first patch I sent (which I'm fortunate that noone seems to have read) seems to merely duplicate the behaviour of commenting out SMP=1 in the Makefile; and besides which, SMP=1 should be the default behaviour, whereas my patch did the opposite. So heres a patch to add a CONFIG_UP option to the i386 *config which shouldn't interfere with other architectures, and should default to defining SMP=1 when CONFIG_UP!=y in .config.
In summary: this patch should actually work, unlike the last one I sent.
--- Makefile.orig Mon Dec 7 16:53:44 1998 +++ Makefile Mon Dec 7 05:06:19 1998 @@ -4,15 +4,6 @@ ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/) -# -# For SMP kernels, set this. We don't want to have this in the config file -# because it makes re-config very ugly and too many fundamental files depend -# on "CONFIG_SMP" -# -# For UP operations COMMENT THIS OUT, simply setting SMP = 0 won't work -# -SMP = 1 - .EXPORT_ALL_VARIABLES: CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ @@ -87,6 +78,17 @@ # SVGA_MODE= -DSVGA_MODE=NORMAL_VGA + +# +# For SMP kernels, set this. We don't want to have this in the config file +# because it makes re-config very ugly and too many fundamental files depend +# on "CONFIG_SMP" +# +# For UP operations COMMENT THIS OUT, simply setting SMP = 0 won't work +# +ifneq ($(CONFIG_UP),y) +SMP = 1 +endif # # standard CFLAGS --- arch/i386/config.in.orig Mon Dec 7 17:05:23 1998 +++ arch/i386/config.in Mon Dec 7 16:55:50 1998 @@ -20,6 +20,7 @@ if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then bool 'MTRR (Memory Type Range Register) support' CONFIG_MTRR fi +bool 'UP?' CONFIG_UP endmenu mainmenu_option next_comment | |