From 86464aed71025541805e7b1515541aee89879e33 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Mon, 15 Feb 1999 02:15:32 +0000 Subject: Merge with Linux 2.2.1. --- Makefile | 53 ++++++++++++++++++++++++++++++++--------------------- 1 file changed, 32 insertions(+), 21 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7f3baf949..3cf1ac1ea 100644 --- a/Makefile +++ b/Makefile @@ -1,21 +1,10 @@ VERSION = 2 -PATCHLEVEL = 1 -SUBLEVEL = 131 +PATCHLEVEL = 2 +SUBLEVEL = 1 +EXTRAVERSION = ARCH = mips -# -# 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 -# -# SMP profiling options -# SMP_PROF = 1 - .EXPORT_ALL_VARIABLES: CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ @@ -70,6 +59,8 @@ endif ROOT_DEV = CURRENT +KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) + # # INSTALL_PATH specifies where to place the updated kernel and system map # images. Uncomment if you want to place them anywhere other than root. @@ -97,7 +88,7 @@ SVGA_MODE= -DSVGA_MODE=NORMAL_VGA CFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -ifdef SMP +ifdef CONFIG_SMP CFLAGS += -D__SMP__ AFLAGS += -D__SMP__ endif @@ -191,6 +182,18 @@ ifeq ($(CONFIG_TC),y) DRIVERS := $(DRIVERS) drivers/tc/tc.a endif +ifeq ($(CONFIG_USB),y) +DRIVERS := $(DRIVERS) drivers/uusbd/usb.a +endif + +ifeq ($(CONFIG_I2O),y) +DRIVERS := $(DRIVERS) drivers/i2o/i2o.a +endif + +ifeq ($(CONFIG_IRDA),y) +DRIVERS := $(DRIVERS) drivers/net/irda/irda_drivers.a +endif + include arch/$(ARCH)/Makefile .S.s: @@ -206,11 +209,13 @@ boot: vmlinux vmlinux: $(CONFIGURATION) init/main.o init/version.o linuxsubdirs $(LD) $(LINKFLAGS) $(HEAD) init/main.o init/version.o \ + --start-group \ $(CORE_FILES) \ $(FILESYSTEMS) \ $(NETWORKS) \ $(DRIVERS) \ $(LIBS) \ + --end-group \ -o vmlinux $(NM) vmlinux | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aU] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map @@ -267,7 +272,7 @@ newversion: include/linux/compile.h: $(CONFIGURATION) include/linux/version.h newversion @echo -n \#define UTS_VERSION \"\#`cat .version` > .ver - @if [ -n "$(SMP)" ] ; then echo -n " SMP" >> .ver; fi + @if [ -n "$(CONFIG_SMP)" ] ; then echo -n " SMP" >> .ver; fi @if [ -f .name ]; then echo -n \-`cat .name` >> .ver; fi @echo ' '`date`'"' >> .ver @echo \#define LINUX_COMPILE_TIME \"`date +%T`\" >> .ver @@ -280,11 +285,11 @@ include/linux/compile.h: $(CONFIGURATION) include/linux/version.h newversion else \ echo \#define LINUX_COMPILE_DOMAIN ; \ fi >> .ver - @echo \#define LINUX_COMPILER \"`$(CC) -v 2>&1 | tail -1`\" >> .ver + @echo \#define LINUX_COMPILER \"`$(CC) $(CFLAGS) -v 2>&1 | tail -1`\" >> .ver @mv -f .ver $@ include/linux/version.h: ./Makefile - @echo \#define UTS_RELEASE \"$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)\" > .ver + @echo \#define UTS_RELEASE \"$(KERNELRELEASE)\" > .ver @echo \#define LINUX_VERSION_CODE `expr $(VERSION) \\* 65536 + $(PATCHLEVEL) \\* 256 + $(SUBLEVEL)` >> .ver @echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))' >>.ver @mv -f .ver $@ @@ -311,13 +316,14 @@ $(patsubst %, _mod_%, $(SUBDIRS)) : include/linux/version.h modules_install: @( \ - MODLIB=$(INSTALL_MOD_PATH)/lib/modules/$(VERSION).$(PATCHLEVEL).$(SUBLEVEL); \ + MODLIB=$(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE); \ cd modules; \ MODULES=""; \ inst_mod() { These="`cat $$1`"; MODULES="$$MODULES $$These"; \ mkdir -p $$MODLIB/$$2; cp $$These $$MODLIB/$$2; \ echo Installing modules under $$MODLIB/$$2; \ }; \ + mkdir -p $$MODLIB; \ \ if [ -f BLOCK_MODULES ]; then inst_mod BLOCK_MODULES block; fi; \ if [ -f NET_MODULES ]; then inst_mod NET_MODULES net; fi; \ @@ -331,6 +337,7 @@ modules_install: if [ -f SOUND_MODULES ]; then inst_mod SOUND_MODULES sound; fi; \ if [ -f VIDEO_MODULES ]; then inst_mod VIDEO_MODULES video; fi; \ if [ -f FC4_MODULES ]; then inst_mod FC4_MODULES fc4; fi; \ + if [ -f IRDA_MODULES ]; then inst_mod IRDA_MODULES net; fi; \ \ ls *.o > $$MODLIB/.allmods; \ echo $$MODULES | tr ' ' '\n' | sort | comm -23 $$MODLIB/.allmods - > $$MODLIB/.misc; \ @@ -401,7 +408,7 @@ sums: dep-files: scripts/mkdep archdep include/linux/version.h scripts/mkdep init/*.c > .depend - find $(FINDHPATH) -follow -name \*.h ! -name modversions.h -print | xargs scripts/mkdep > .hdepend + find $(FINDHPATH) -follow -name \*.h ! -name modversions.h -print | env -i PATH="$(PATH)" HPATH="$(HPATH)" xargs scripts/mkdep > .hdepend # set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i fastdep; done # let this be made through the fastdep rule in Rules.make $(MAKE) $(patsubst %,_sfdep_%,$(SUBDIRS)) _FASTDEP_ALL_SUB_DIRS="$(SUBDIRS)" @@ -414,8 +421,12 @@ endif depend dep: dep-files $(MODVERFILE) +# make checkconfig: Prune 'scripts' directory to avoid "false positives". checkconfig: - perl -w scripts/checkconfig.pl `find * -name '*.[hcS]' -print | sort` + perl -w scripts/checkconfig.pl `find * -path 'scripts' -prune -o -name '*.[hcS]' -print | sort` + +checkhelp: + perl -w scripts/checkhelp.pl `find * -name [cC]onfig.in -print` ifdef CONFIGURATION ..$(CONFIGURATION): -- cgit v1.2.3