Package: kernel-package
Version: 12.036
Severity: normal
kernel 2.6.34 add gzip for mipsel loongson cpu,
so,This patch will allow make-kpkg build vmlinuz.
sorry! I use google translator to help me from Chinese to English.
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: mipsel (mips64)
Kernel: Linux 2.6.35-lemote2f-bfs (PREEMPT)
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages kernel-package depends on:
ii binutils 2.20.1-12 The GNU assembler, linker and bina
ii build-essential 11.5 Informational list of build-essent
ii debianutils 3.4 Miscellaneous utilities specific t
ii file 5.04-5 Determines file type using "magic"
ii gettext 0.18.1.1-1 GNU Internationalization utilities
ii make 3.81-8 An utility for Directing compilati
ii module-init-tools 3.12-1 tools for managing Linux kernel mo
ii po-debconf 1.0.16 tool for managing templates file t
ii util-linux 2.17.2-3.1 Miscellaneous system utilities
Versions of packages kernel-package recommends:
ii cpio 2.11-4 GNU cpio -- a program to manage ar
Versions of packages kernel-package suggests:
pn btrfs-tools <none> (no description available)
ii bzip2 1.0.5-4 high-quality block-sorting file co
pn docbook-utils <none> (no description available)
ii e2fsprogs 1.41.12-2 ext2/ext3/ext4 file system utiliti
pn grub | grub2 <none> (no description available)
ii initramfs-tools [linux-in 0.97.2 tools for generating an initramfs
pn jfsutils <none> (no description available)
ii libncurses5-dev [libncurs 5.7+20100313-2 developer's libraries and docs for
ii linux-source-2.6.27.19-un 20090308 Linux kernel source for version 2.
pn mcelog <none> (no description available)
pn oprofile <none> (no description available)
pn pcmciautils <none> (no description available)
ii ppp 2.4.4rel-10.1 Point-to-Point Protocol (PPP) - da
ii procps 1:3.2.8-9 /proc file system utilities
pn quota <none> (no description available)
ii reiserfsprogs 1:3.6.21-1 User-level tools for ReiserFS file
pn squashfs-tools <none> (no description available)
ii udev 160-1 /dev/ and hotplug management daemo
pn xfsprogs <none> (no description available)
pn xmlto <none> (no description available)
-- debconf-show failed
diff -uNra kernel-package-12.036.orig/kernel/ruleset/arches/mipsel.mk kernel-package-12.036.0.loongson/kernel/ruleset/arches/mipsel.mk
--- kernel-package-12.036.orig/kernel/ruleset/arches/mipsel.mk 2009-04-02 04:19:58.000000000 +0800
+++ kernel-package-12.036.0.loongson/kernel/ruleset/arches/mipsel.mk 2010-07-24 20:59:11.000000000 +0800
@@ -30,11 +30,25 @@
##
###############################################################################
+# LOONGSON
+KPKG_SUBARCH:=$(shell if test -f .config; then \
+ perl -nle '/^CONFIG_CPU_(LOONGSON2)=y/ && print "$$1"' .config;\
+ fi)
+
# xxs1500
ifneq (,$(filter xxs1500,$(strip $(KPKG_SUBARCH))))
kimage := vmlinux
kimagesrc = $(strip arch/$(KERNEL_ARCH)/boot/$(kimage).srec)
endif
+# loongson2
+ifneq (,$(filter LOONGSON2,$(strip $(KPKG_SUBARCH))))
+ kimage := vmlinuz
+ kimagesrc = vmlinuz
+ kimagedest = $(INT_IMAGE_DESTDIR)/vmlinuz-$(KERNELRELEASE)
+ loaderdep =
+ loader =
+ loaderdoc =
+ endif
# Default value
ifeq (,$(kimage))
@@ -45,7 +59,9 @@
endif
NEED_DIRECT_GZIP_IMAGE = NO
+ifeq (,$(kimagedest))
kimagedest = $(INT_IMAGE_DESTDIR)/vmlinux-$(KERNELRELEASE)
+endif
ifneq ($(shell if [ $(VERSION) -ge 2 ] && [ $(PATCHLEVEL) -ge 5 ] && \
[ $(SUBLEVEL) -ge 41 ]; then echo new; \