r3504 - in trunk/kernel/source/linux-kernel-2.6.12/debian: . arch/powerpc patches-debian patches-debian/series

Sven Luther luther at costa.debian.org
Fri Jul 15 13:04:44 UTC 2005


Author: luther
Date: 2005-07-15 13:04:44 +0000 (Fri, 15 Jul 2005)
New Revision: 3504

Added:
   trunk/kernel/source/linux-kernel-2.6.12/debian/patches-debian/powerpc-mkvmlinuz-support.patch
Modified:
   trunk/kernel/source/linux-kernel-2.6.12/debian/arch/powerpc/Makefile.inc
   trunk/kernel/source/linux-kernel-2.6.12/debian/changelog
   trunk/kernel/source/linux-kernel-2.6.12/debian/patches-debian/series/2.6.12-1
Log:
Added powerpc-mkvmlinuz-support patch, to enable moving the mkvmlinuz support logic to kernel-package.
Added powerpc default config.


Modified: trunk/kernel/source/linux-kernel-2.6.12/debian/arch/powerpc/Makefile.inc
===================================================================
--- trunk/kernel/source/linux-kernel-2.6.12/debian/arch/powerpc/Makefile.inc	2005-07-15 12:32:30 UTC (rev 3503)
+++ trunk/kernel/source/linux-kernel-2.6.12/debian/arch/powerpc/Makefile.inc	2005-07-15 13:04:44 UTC (rev 3504)
@@ -5,3 +5,4 @@
 header_dirs = 'ppc | ppc64'
 headers_subarch = pmac
 build_subarch = pmac
+default_config = powerpc

Modified: trunk/kernel/source/linux-kernel-2.6.12/debian/changelog
===================================================================
--- trunk/kernel/source/linux-kernel-2.6.12/debian/changelog	2005-07-15 12:32:30 UTC (rev 3503)
+++ trunk/kernel/source/linux-kernel-2.6.12/debian/changelog	2005-07-15 13:04:44 UTC (rev 3504)
@@ -31,5 +31,8 @@
     - kernel-image-x.y.z-smp     -> linux-image-x.y.z-alpha-smp
     - This change was postponed after the sarge release. (closes: #260003)
   * Enable CONFIG_SCSI_INITIO. (Maximilian Attems) closes: #318121
+  * Added powerpc-mkvmlinuz-support patch, as this is really tied to the
+    kernel version. kernel-package will be teached to make use of this, but it
+    needs some cleanup and tidying yet. (Sven Luther)
 
  -- Frederik Schüler <fschueler at gmx.net>  Thu, 30 Jun 2005 14:02:19 +0200

Added: trunk/kernel/source/linux-kernel-2.6.12/debian/patches-debian/powerpc-mkvmlinuz-support.patch
===================================================================
--- trunk/kernel/source/linux-kernel-2.6.12/debian/patches-debian/powerpc-mkvmlinuz-support.patch	2005-07-15 12:32:30 UTC (rev 3503)
+++ trunk/kernel/source/linux-kernel-2.6.12/debian/patches-debian/powerpc-mkvmlinuz-support.patch	2005-07-15 13:04:44 UTC (rev 3504)
@@ -0,0 +1,54 @@
+# 
+# Mkvmlinuz support patch, called by debian's kernel-package to generate
+# the files needed by mkvmlinuz to generate the bootable images from vmlinux.
+# Author: Sven Luther <luther at debian.org>
+# Based on work from: Jens Schmalzing <jensen at debian.org>
+# Original comment from Jens :
+#   This shell script is intended to be put into the debian subdirectory
+#   of a Linux kernel tree, where make-kpkg will find and execute it
+#   while building a kernel-image package.  The purpose of this script
+#   is to add glue (object code, libraries, utilities and so on) from
+#   the kernel tree to the kernel-image package.  Later, the mkvmlinuz
+#   utility, which is available as a separate Debian package, can use
+#   this glue to create a bootable compressed kernel from the
+#   uncompressed kernel in the kernel-image package and optionally a
+#   ramdisk.  This is especially important on PowerPC subarchitectures
+#   that don't have a boot loader, but also comes handy for rescue
+#   systems and the like.
+# Upstream status: well, this is a debian specific hack, it would be nice
+# if it was going upstream, but probably not in this form.
+#
+--- linux-kernel-2.6.12-2.6.12/arch/ppc/boot/Makefile.orig	2005-07-15 12:46:28.000000000 +0000
++++ linux-kernel-2.6.12-2.6.12/arch/ppc/boot/Makefile	2005-07-15 12:55:56.000000000 +0000
+@@ -32,3 +32,31 @@
+ $(bootdir-y): $(addprefix $(obj)/,$(subdir-y)) \
+ 		$(addprefix $(obj)/,$(hostprogs-y))
+ 	$(Q)$(MAKE) $(build)=$(obj)/$@ $(MAKECMDGOALS)
++
++mkvmlinuz_support_install:
++	# mkvmlinuz support, based on work done originally by Jens Schmalzing <jensen at debian.org>
++	mkdir -p $(INSTALL_MKVMLINUZ)/boot
++	install -m 644 -o root -g root ld.script openfirmware/note $(INSTALL_MKVMLINUZ)/boot
++
++	mkdir -p $(INSTALL_MKVMLINUZ)/lib
++	install -m 644 -o root -g root ../../../lib/lib.a $(INSTALL_MKVMLINUZ)/lib
++	install -m 644 -o root -g root lib/lib.a $(INSTALL_MKVMLINUZ)/lib/ppc.a
++	install -m 644 -o root -g root common/lib.a $(INSTALL_MKVMLINUZ)/lib/common.a
++	install -m 644 -o root -g root boot/of1275/lib.a $(INSTALL_MKVMLINUZ)/lib/of.a
++
++	mkdir -p $(INSTALL_MKVMLINUZ)/obj/openfirmware
++	install -m 644 -o root -g root openfirmware/*.o $(INSTALL_MKVMLINUZ)/obj/openfirmware
++	rm -f $(INSTALL_MKVMLINUZ)/obj/openfirmware/image*
++
++	mkdir -p $(INSTALL_MKVMLINUZ)/obj/simple
++	install -m 644 -o root -g root simple/*.o $(INSTALL_MKVMLINUZ)/obj/simple
++	rm -f $(INSTALL_MKVMLINUZ)/obj/simple/image*.o
++
++	mkdir -p $(INSTALL_MKVMLINUZ)/utils
++	install -m 755 -o root -g root utils/addnote $(INSTALL_MKVMLINUZ)/utils
++	install -m 755 -o root -g root utils/hack-coff $(INSTALL_MKVMLINUZ)/utils
++	install -m 755 -o root -g root utils/mkbugboot $(INSTALL_MKVMLINUZ)/utils
++	install -m 755 -o root -g root utils/mknote $(INSTALL_MKVMLINUZ)/utils
++	install -m 755 -o root -g root utils/mkprep $(INSTALL_MKVMLINUZ)/utils
++	install -m 755 -o root -g root utils/mktree $(INSTALL_MKVMLINUZ)/utils
++

Modified: trunk/kernel/source/linux-kernel-2.6.12/debian/patches-debian/series/2.6.12-1
===================================================================
--- trunk/kernel/source/linux-kernel-2.6.12/debian/patches-debian/series/2.6.12-1	2005-07-15 12:32:30 UTC (rev 3503)
+++ trunk/kernel/source/linux-kernel-2.6.12/debian/patches-debian/series/2.6.12-1	2005-07-15 13:04:44 UTC (rev 3504)
@@ -23,3 +23,5 @@
 + patch-2.6.12.1
 + powerpc-ppc64-biarch-override.patch
 + patch-2.6.12.2
++ powerpc-mkvmlinuz-support.patch
+




More information about the Kernel-svn-changes mailing list