Your message dated Sat, 03 May 2014 21:21:28 +0000 with message-id <[email protected]> and subject line Bug#728014: fixed in kernel-package 13.000 has caused the Debian Bug report #728014, regarding [PATCH] Fix cross-building armhf kernel packages to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 728014: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=728014 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: kernel-package Version: 12.036+nmu3 Tags: patch I am rather new to the arm architecture and currently trying to get a couple of things working on a Raspberry Pi. Building kernel packages natively on a 700MHz single-core ARMv6 cpu takes ages, so I have been looking into possibilities for cross-building kernel packages from faster architectures. According to the make-kpkg manpage, the following command $ make-kpkg --arch armhf --cross_compile arm-rpi-linux-gnueabi- \ --revision 20131002 --append_to_version -rpi --initrd \ --us --uc --rootcmd fakeroot kernel_image should build an armhf kernel package on an amd64 host with an arm-rpi-linux-gnueabi-crosstoolchain installed. With kernel-package 12.036+nmu3 this fails with debian/ruleset/misc/checks.mk:36: *** Error. I do not know where the kernel image goes to [kimagedest undefined] The usual case for this is that I could not determine which arch or subarch this machine belongs to. Please specify a subarch, and try again.. Stop. It looks like there are just a few definitions for armhf missing, which are only used in the case of cross-building - native builds work fine. With the attached patch, cross-building kernel packages for armhf works for me, i.e. it results in working kernel-image packages for the Raspberry Pi. I had asked on debian-arm whether anybody sees issues with the patch, but have received no reply. Regards, Karsten -- Gem. Par. 28 Abs. 4 Bundesdatenschutzgesetz widerspreche ich der Nutzung sowie der Weitergabe meiner personenbezogenen Daten für Zwecke der Werbung sowie der Markt- oder Meinungsforschung.diff -Nur kernel-package-12.036+nmu3/kernel/ruleset/arches/armhf.mk kernel-package-12.036+nmu3.patched/kernel/ruleset/arches/armhf.mk --- kernel-package-12.036+nmu3/kernel/ruleset/arches/armhf.mk 1970-01-01 01:00:00.000000000 +0100 +++ kernel-package-12.036+nmu3.patched/kernel/ruleset/arches/armhf.mk 2013-10-02 22:02:47.000000000 +0200 @@ -0,0 +1,34 @@ +######################### -*- Mode: Makefile-Gmake -*- ######################## +## armhf.mk --- +## +## This program is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2 of the License, or +## (at your option) any later version. +## +## This program is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +## +############################################################################### + +### ARMHF +ifeq ($(strip $(architecture)),armhf) + kimage := vmlinuz + target = zImage + NEED_DIRECT_GZIP_IMAGE=NO + kimagesrc = arch/$(KERNEL_ARCH)/boot/zImage + kimagedest = $(INT_IMAGE_DESTDIR)/vmlinuz-$(KERNELRELEASE) + DEBCONFIG = $(CONFDIR)/config.armhf + kelfimagesrc = vmlinux + kelfimagedest = $(INT_IMAGE_DESTDIR)/vmlinux-$(KERNELRELEASE) +endif + +#Local variables: +#mode: makefile +#End: diff -Nur kernel-package-12.036+nmu3/kernel/ruleset/architecture.mk kernel-package-12.036+nmu3.patched/kernel/ruleset/architecture.mk --- kernel-package-12.036+nmu3/kernel/ruleset/architecture.mk 2012-03-04 02:22:23.000000000 +0100 +++ kernel-package-12.036+nmu3.patched/kernel/ruleset/architecture.mk 2013-10-02 22:01:08.000000000 +0200 @@ -59,6 +59,10 @@ ifeq ($(strip $(architecture)),armeb) include $(DEBDIR)/ruleset/arches/armeb.mk endif +ifeq ($(strip $(architecture)),armhf) +include $(DEBDIR)/ruleset/arches/armhf.mk +endif + ##### PowerPC and PowerPC architecture ifneq ($(strip $(filter ppc powerpc ppc64 powerpc64,$(architecture))),) diff -Nur kernel-package-12.036+nmu3/kernel/ruleset/misc/kernel_arch.mk kernel-package-12.036+nmu3.patched/kernel/ruleset/misc/kernel_arch.mk --- kernel-package-12.036+nmu3/kernel/ruleset/misc/kernel_arch.mk 2012-03-04 02:39:27.000000000 +0100 +++ kernel-package-12.036+nmu3.patched/kernel/ruleset/misc/kernel_arch.mk 2013-10-02 21:55:54.000000000 +0200 @@ -56,6 +56,10 @@ KERNEL_ARCH := arm endif +ifeq ($(strip $(architecture)),armhf) + KERNEL_ARCH := arm +endif + ifeq ($(strip $(architecture)),hppa) KERNEL_ARCH := parisc endif
--- End Message ---
--- Begin Message ---Source: kernel-package Source-Version: 13.000 We believe that the bug you reported is fixed in the latest version of kernel-package, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Manoj Srivastava <[email protected]> (supplier of updated kernel-package package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Sat, 03 May 2014 12:57:47 -0700 Source: kernel-package Binary: kernel-package Architecture: source all Version: 13.000 Distribution: unstable Urgency: low Maintainer: Manoj Srivastava <[email protected]> Changed-By: Manoj Srivastava <[email protected]> Description: kernel-package - utility for building Linux kernel related Debian packages Closes: 591793 593857 597637 652637 663358 690002 696537 702600 705587 724775 728014 733701 734310 742674 Changes: kernel-package (13.000) unstable; urgency=low . * Move to a new build system based on dh. This is just for kernel-package, no changes have yet been made to the generated package build system. * Move way from git modules to a flatter structure, to better use standard git build frameworks. (Closes: #690002). * Updated the dependency to from module-init-tools -> kmod, since the module-init-tools is an obsolete transitional package. (Closes: #733701, #663358, ) * As of 3.8-rc2, kernel building requires bc(1. Added bc as a dependency for kernel-package, so that building a kernel will work again (Closes: #705587, #702600, #742674). * There are new configuration options called CONFIG_MODULE_*, which confuse the regular expression trying to detect whether modules are configured or not. Modified the regular expression to detect whether modules are configured as suggested by Stefan Gehn. (Closes: #696537). * make-kpkg failed to cross build armhf kernels. The supplied patch by Karsten Merker adds a few missing definitions which are only used in the case of cross-building (Closes: #728014). * The UTS_RELEASE definition was moved from $(KERN_ROOT)/include/linux/utsrelease.h to $(KERN_ROOT)/include/generated/utsrelease.h. The current version looks in both places. Fix sggested by mahashakti89, (Closes: #591793). * find -perm syntax changed from -perl +XXX to -prem /xxx. Fixed the use of find -perm in the one location I found it in (Closes: #724775). * Added a dependency on initramfs-tools into the generated linux-image packages, (Closes: #652637). * kernel package was not building a vmlinuz image for mipsel loongson cpu. Applied the patch from liushiwei to allow make-kpkg build vmlinuz on mipsel loongson cpu machines (Closes: #593857). * if the file include/generated/uapi/linux/version.h exists then include/linux/version.h must not be added to linux-headers-... package. The former should not exist, and if it does it is a mistake. (Closes: #734310). * dpkg: warning: obsolete option '--print-installation-architecture', use '--print-architecture' instead. Replaced all instances of dpkg --print-installation-architecture in the package. (Closes: #597637). * The following bugs were fixed in this release: * Bug fix #733701: "please do not depend on module-init-tools", thanks to [email protected] (Marco d'Itri) . * Bug fix #663358: "module-init-tools is now a transitional dummy package for kmod.Please add the correct depend", thanks to Domenico Pasella. * Bug fix #705587,: "As of 3.8-rc2, kernel building requires bc(1)", thanks to [email protected]. * Bug fix #702600: "1: bc: not found", thanks to Andrei Paulau * Bug fix #742674: "bc should be added to the dependencies", thanks to Erik Braun * Bug fix #690002: "Git package repository contains empty directory `debian/`", thanks to Paul Menzel. The problem is not that the git repository had an empty debian directory, the issue was that kernel-package uses git modules. One has to (recursively) expand the modules. However, whith this commit, we move away from git modules to a flat structure. * Bug fix #696537: "Fails to build linux-3.7.1 with module-support disabled", thanks to Stefan Gehn. Used the suggested new regular expression. * Bug fix #728014: "[PATCH] Fix cross-building armhf kernel packages", thanks to Karsten Merker. * Bug fix #591793: "Building 2.6.35 kernel fails with kernel-package 12.036", thanks to mahashakti89, * Bug fix #724775: "kernel-package uses deprecated find -perm +xxx syntax, please switch to find -perm /+++", thanks to Andreas Metzler. * Bug fix #652637: "Generated linux-image package should depend on initramfs-tools", thanks to Matthijs Kooijman. Added the suggested dependency * Bug fix #593857: "enable gzip for mipsel loongson cpu", thanks to liushiwei. Applied the suggested patch * Bug fix #734310: "exclude include/linux/version.h", thanks to Eduard Bloch * Bug fix #597637: "dpkg using obsolete option", thanks to Brian Minton Checksums-Sha1: a6cfc47a3af466a847f39458db15d617f6332b19 1393 kernel-package_13.000.dsc 30cede26a50bca3e7f0669e9632727321a129801 316244 kernel-package_13.000.tar.xz 385b6f061b68c738073683283d3eb473f0e57f64 375234 kernel-package_13.000_all.deb Checksums-Sha256: cc87b296463a31fae6d2f8b1c47cc71a556961d840fa7eea0225a36fbed4f758 1393 kernel-package_13.000.dsc 8907701586f0c46161bf32898fbdc79cf1fb81c12283813a589cd34a8fe0f23c 316244 kernel-package_13.000.tar.xz e309737aba9a3f9055ec09194850ceef3523f62ca83397e376615d7f496c74bd 375234 kernel-package_13.000_all.deb Files: 811f8de0f5a86d0dc1c0ce83fdd7b6ed 375234 kernel optional kernel-package_13.000_all.deb db2c837294e6cce372091ac8e62d98cc 1393 kernel optional kernel-package_13.000.dsc 2f707bdd0a5b489bb83065f800e386fa 316244 kernel optional kernel-package_13.000.tar.xz -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQFtBAEBCgBXBQJTZVdsUBSAAAAAABsALHNyaXZhc3RhQGdvbGRlbi1ncnlwaG9u LmNvbUFCQTcxMDI1QTFCNUE4OEE0RTVGNjhDMjM2QkQ3MjBGNkY1NzY0NzJfNTkz AAoJEDa9cg9vV2RyAzoIAIPJlyFOaXKVzaW6qz8gpwG04jFRlZyLrJI0Mcshbb75 AkPGkivwUuqh2QncJnU5qPsuL/wTKpLCPEb3NsZX35DWyQx2X6/D8M5tu12pVSNC ygC89/vdvcf7L1Oowvc8jQykcolwBQZ6v8Qt5Gt2ZgV0Sl1ejrrEzz3wKtbdLKqy KqlzgMQ4Oj9MDpOmEfcIn+VXOSXvjtGf6b6EvoxXY6M1x/7A0h7ML4pD3ifotPJs LSGql3FxWNoGvV/DQJoFp3yBNrdJKfFdaFL7yHwhBvuB3jnUlhCmb9NgYvnKHZkB ZIss5f3kqi/BjwQyoCgCOB1WxljQS8Mm28s4Nq+YcHM= =HEjr -----END PGP SIGNATURE-----
--- End Message ---

