Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.10-pre15 /Makefile

Filename:/Makefile
Lines Added:42
Lines Deleted:10
Also changed in: (Previous) 2.4.10-pre14  2.4.10-pre13  2.4.10-pre12  2.4.10-pre11  2.4.10-pre10  2.4.10-pre9 
(Following) 2.4.10  2.4.10-ac1  2.4.10-ac2  2.4.10-ac3  2.4.10-ac4  2.4.10-ac5 

Location
[  2.4.10-pre15
   o  Makefile

Patch

diff -u --recursive --new-file v2.4.9/linux/Makefile linux/Makefile
--- v2.4.9/linux/Makefile   Mon Aug 27 12:41:37 2001
+++ linux/Makefile   Fri Sep 21 23:21:57 2001
@@ -1,7 +1,7 @@
 VERSION = 2
 PATCHLEVEL = 4
-SUBLEVEL = 9
-EXTRAVERSION =
+SUBLEVEL = 10
+EXTRAVERSION =-pre15
 
 KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
 
@@ -146,6 +146,7 @@
 DRIVERS-$(CONFIG_ARCNET) += drivers/net/arcnet/arcnetdrv.o
 DRIVERS-$(CONFIG_ATM) += drivers/atm/atm.o
 DRIVERS-$(CONFIG_IDE) += drivers/ide/idedriver.o
+DRIVERS-$(CONFIG_FC4) += drivers/fc4/fc4.a
 DRIVERS-$(CONFIG_SCSI) += drivers/scsi/scsidrv.o
 DRIVERS-$(CONFIG_FUSION_BOOT) += drivers/message/fusion/fusion.o
 DRIVERS-$(CONFIG_IEEE1394) += drivers/ieee1394/ieee1394drv.o
@@ -197,6 +198,11 @@
    drivers/zorro/devlist.h drivers/zorro/gen-devlist \
    drivers/sound/bin2hex drivers/sound/hex2hex \
    drivers/atm/fore200e_mkfirm drivers/atm/{pca,sba}*{.bin,.bin1,.bin2} \
+   drivers/scsi/aic7xxx/aicasm/aicasm_gram.c \
+   drivers/scsi/aic7xxx/aicasm/aicasm_scan.c \
+   drivers/scsi/aic7xxx/aicasm/y.tab.h \
+   drivers/scsi/aic7xxx/aicasm/aicasm \
+   drivers/scsi/53c700-mem.c \
    net/khttpd/make_times_h \
    net/khttpd/times.h \
    submenu*
@@ -223,7 +229,9 @@
    .menuconfig.log \
    include/asm \
    .hdepend scripts/mkdep scripts/split-include scripts/docproc \
-   $(TOPDIR)/include/linux/modversions.h
+   $(TOPDIR)/include/linux/modversions.h \
+   kernel.spec
+
 # directories removed with 'make mrproper'
 MRPROPER_DIRS = \
    include/config \
@@ -247,7 +255,7 @@
 boot: vmlinux
    @$(MAKE) CFLAGS="$(CFLAGS) $(CFLAGS_KERNEL)" -C arch/$(ARCH)/boot
 
-vmlinux: $(CONFIGURATION) init/main.o init/version.o linuxsubdirs
+vmlinux: include/linux/version.h $(CONFIGURATION) init/main.o init/version.o linuxsubdirs
    $(LD) $(LINKFLAGS) $(HEAD) init/main.o init/version.o \
       --start-group \
       $(CORE_FILES) \
@@ -292,11 +300,7 @@
 $(TOPDIR)/include/linux/compile.h: include/linux/compile.h
 
 newversion:
-   @if [ ! -f .version ]; then \
-      echo 1 > .version; \
-   else \
-      expr 0`cat .version` + 1 > .version; \
-   fi
+   . scripts/mkversion > .version
 
 include/linux/compile.h: $(CONFIGURATION) include/linux/version.h newversion
    @echo -n \#define UTS_VERSION \"\#`cat .version` > .ver
@@ -418,7 +422,8 @@
    $(MAKE) -C Documentation/DocBook mrproper
 
 distclean: mrproper
-   rm -f core `find . \( -name '*.orig' -o -name '*.rej' -o -name '*~' \
+   rm -f core `find . \( -not -type d \) -and \
+      \( -name '*.orig' -o -name '*.rej' -o -name '*~' \
       -o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \
       -o -name '.*.rej' -o -name '.SUMS' -o -size 0 \) -type f -print` TAGS tags
 
@@ -501,3 +506,30 @@
 
 scripts/split-include: scripts/split-include.c
    $(HOSTCC) $(HOSTCFLAGS) -o scripts/split-include scripts/split-include.c
+
+#
+# RPM target
+#
+#   If you do a make spec before packing the tarball you can rpm -ta it
+#
+spec:
+   . scripts/mkspec >kernel.spec
+
+#
+#   Build a tar ball, generate an rpm from it and pack the result
+#   There arw two bits of magic here
+#   1) The use of /. to avoid tar packing just the symlink
+#   2) Removing the .dep files as they have source paths in them that
+#      will become invalid
+#
+rpm:   clean spec
+   find . \( -size 0 -o -name .depend -o -name .hdepend \) -type f -print | xargs rm -f
+   set -e; \
+   cd $(TOPDIR)/.. ; \
+   ln -sf $(TOPDIR) $(KERNELPATH) ; \
+   tar -cvz --exclude CVS -f $(KERNELPATH).tar.gz $(KERNELPATH)/. ; \
+   rm $(KERNELPATH) ; \
+   cd $(TOPDIR) ; \
+   . scripts/mkversion > .version ; \
+   rpm -ta $(TOPDIR)/../$(KERNELPATH).tar.gz ; \
+   rm $(TOPDIR)/../$(KERNELPATH).tar.gz


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.