From: Keith Owens <kaos@ocs.com.au>
To: Alan Cox <laughing@shared-source.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Linux 2.4.7-ac3
Date: Mon, 30 Jul 2001 13:47:22 +1000 [thread overview]
Message-ID: <16378.996464842@kao2.melbourne.sgi.com> (raw)
In-Reply-To: Your message of "Mon, 30 Jul 2001 01:22:06 +0100." <20010730012205.A10865@lightning.swansea.linux.org.uk>
On Mon, 30 Jul 2001 01:22:06 +0100,
Alan Cox <laughing@shared-source.org> wrote:
>2.4.7-ac3
>o Add "make rpm" target (me)
Cleanups for make rpm.
Index: 7.25/Makefile
--- 7.25/Makefile Mon, 30 Jul 2001 11:50:08 +1000 kaos (linux-2.4/T/c/50_Makefile 1.1.2.15.1.2.2.9.1.1.1.47.1.15 644)
+++ 7.25(w)/Makefile Mon, 30 Jul 2001 13:37:56 +1000 kaos (linux-2.4/T/c/50_Makefile 1.1.2.15.1.2.2.9.1.1.1.47.1.15 644)
@@ -236,7 +236,8 @@ MRPROPER_FILES = \
.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 \
@@ -521,19 +522,23 @@ scripts/split-include: scripts/split-inc
#
# If you do a make spec before packing the tarball you can rpm -ta it
#
-spec:
+spec: newversion
. scripts/mkspec >kernel.spec
#
# Build a tar ball , generate an rpm from it and pack the result
-# There arw two bits of magic here
+# There are 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 newversion spec
- find . \( -size 0 -o -name .depend \) -type f -print | xargs rm -f
+rpm: clean spec
+ find . \( -size 0 -o -name .depend -o -name .hdepend \) -type f -print | xargs rm -f
+ set -e; \
cd $(TOPDIR)/.. ; \
+ rm -f $(KERNELPATH) ; \
ln -s $(TOPDIR) $(KERNELPATH) ; \
tar cvfz $(KERNELPATH).tar.gz $(KERNELPATH)/. ; \
- rpm -ta $(TOPDIR)/../$(KERNELPATH).tar.gz
+ rm $(TOPDIR)/kernel.spec; \
+ rpm -ta $(TOPDIR)/../$(KERNELPATH).tar.gz; \
+ rm $(KERNELPATH);
Index: 7.25/scripts/mkspec
--- 7.25/scripts/mkspec Mon, 30 Jul 2001 11:50:08 +1000 kaos (linux-2.4/J/e/9_mkspec 1.1 644)
+++ 7.25(w)/scripts/mkspec Mon, 30 Jul 2001 13:29:12 +1000 kaos (linux-2.4/J/e/9_mkspec 1.1 644)
@@ -6,6 +6,7 @@
# The only gothic bit here is redefining install_post to avoid
# stripping the symbols from files in the kernel which we want
#
+set -e
echo "Name: kernel"
echo "Summary: The Linux Kernel"
echo "Version: "$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION | sed -e "s/-//"
@@ -33,8 +34,7 @@ echo "%install"
echo 'mkdir -p $RPM_BUILD_ROOT/boot $RPM_BUILD_ROOT/lib $RPM_BUILD_ROOT/lib/modules'
echo 'INSTALL_MOD_PATH=$RPM_BUILD_ROOT make modules_install'
echo 'cp arch/i386/boot/bzImage $RPM_BUILD_ROOT'"/boot/vmlinuz-$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION"
-echo 'cp System.map
-$RPM_BUILD_ROOT'"/boot/System.map-$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION"
+echo 'cp System.map $RPM_BUILD_ROOT'"/boot/System.map-$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION"
echo ""
echo "%clean"
echo '#echo -rf $RPM_BUILD_ROOT'
next prev parent reply other threads:[~2001-07-30 3:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-30 0:22 Linux 2.4.7-ac3 Alan Cox
2001-07-30 3:47 ` Keith Owens [this message]
2001-07-30 11:16 ` Alan Cox
2001-07-30 11:25 ` Keith Owens
2001-07-30 11:43 ` Alan Cox
2001-07-30 11:50 ` Keith Owens
2001-07-30 17:32 ` H. Peter Anvin
2001-07-31 1:23 ` Keith Owens
-- strict thread matches above, loose matches on Subject: below --
2001-07-31 7:55 Robert Cawley
2001-07-31 23:59 ` David Flood
2001-08-01 8:52 ` bvermeul
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16378.996464842@kao2.melbourne.sgi.com \
--to=kaos@ocs.com.au \
--cc=laughing@shared-source.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox