On Sat, Feb 10, 2007 at 03:00:39PM -0500, Joey Hess wrote:
> Package: kernel-package
> Version: 10.066
> Severity: normal
> Tag: patch
> User: debian-arm@lists.debian.org
> Usertags: eabi
> 
> The armel architecture is a new port of arm built with an incompatible
> abi. kernel-package needs a minor modification for armel, adding a
> ruleset for this architecture, so that arm kernels can be built using
> it. This is very similar to the existing support for armeb in
> kernel-package. I've attached a patch.
> 

I would also suggest to add a specific configuration file instead of
using the arm one, so that EABI is always selected on the armel 
architecture.

The attached patch does that. The configuration file is the one from the
arm architecture, with CONFIG_AEABI and CONFIG_OABI_COMPAT enabled.

-- 
  .''`.  Aurelien Jarno             | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [EMAIL PROTECTED]         | [EMAIL PROTECTED]
   `-    people.debian.org/~aurel32 | www.aurel32.net
diff -Nru kernel-package-10.066.orig/kernel/Config/config.armel 
kernel-package-10.066/kernel/Config/config.armel
--- kernel-package-10.066.orig/kernel/Config/config.armel       1970-01-01 
01:00:00.000000000 +0100
+++ kernel-package-10.066/kernel/Config/config.armel    2007-02-16 
22:22:31.000000000 +0100
@@ -0,0 +1,21 @@
+CONFIG_ARM=y
+CONFIG_PACKET=y
+# CONFIG_CIFS_EXPERIMENTAL is not set
+CONFIG_SLIP_SMART=y
+CONFIG_SUNRPC_GSS=m
+# CONFIG_NFSD_V4 is not set
+# CONFIG_SMB_NLS_DEFAULT is not set
+# CONFIG_CODA_FS_OLD_API is not set
+CONFIG_CIFS_STATS=y
+CONFIG_CIFS_XATTR=y
+# CONFIG_SLIP_MODE_SLIP6 is not set
+CONFIG_SLIP_COMPRESSED=y
+CONFIG_ECONET_AUNUDP=y
+CONFIG_RXRPC=m
+# CONFIG_CIFS_POSIX is not set
+CONFIG_ECONET_NATIVE=y
+CONFIG_EQUALIZER=m
+CONFIG_NET_CLS_ROUTE=y
+CONFIG_PACKET_MMAP=y
+CONFIG_AEABI=y
+CONFIG_OABI_COMPAT=y
diff -Nru kernel-package-10.066.orig/kernel/ruleset/arches/armel.mk 
kernel-package-10.066/kernel/ruleset/arches/armel.mk
--- kernel-package-10.066.orig/kernel/ruleset/arches/armel.mk   1970-01-01 
01:00:00.000000000 +0100
+++ kernel-package-10.066/kernel/ruleset/arches/armel.mk        2007-02-16 
22:18:32.000000000 +0100
@@ -0,0 +1,35 @@
+######################### -*- Mode: Makefile-Gmake -*- ########################
+## armel.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
+##
+## arch-tag: 
+##
+###############################################################################
+
+### ARM (new abi)
+ifeq ($(strip $(architecture)),armel)
+
+  kimage := zImage
+  target = zImage
+  NEED_DIRECT_GZIP_IMAGE=NO
+  kimagesrc = arch/$(KERNEL_ARCH)/boot/zImage
+  kimagedest = $(INT_IMAGE_DESTDIR)/vmlinuz-$(version)
+  DEBCONFIG = $(CONFDIR)/config.armel
+  kelfimagesrc = vmlinux
+  kelfimagedest = $(INT_IMAGE_DESTDIR)/vmlinux-$(version)
+  KERNEL_ARCH = arm
+
+endif
diff -Nru kernel-package-10.066.orig/kernel/ruleset/architecture.mk 
kernel-package-10.066/kernel/ruleset/architecture.mk
--- kernel-package-10.066.orig/kernel/ruleset/architecture.mk   2007-01-18 
03:29:54.000000000 +0100
+++ kernel-package-10.066/kernel/ruleset/architecture.mk        2007-02-16 
22:17:12.000000000 +0100
@@ -62,6 +62,9 @@
 ifeq ($(strip $(architecture)),armeb)
 include $(DEBDIR)/ruleset/arches/armeb.mk
 endif
+ifeq ($(strip $(architecture)),armel)
+include $(DEBDIR)/ruleset/arches/armel.mk
+endif
 
 ##### PowerPC and PowerPC architecture 
 ifneq ($(strip $(filter ppc powerpc ppc64 powerpc64,$(architecture))),)

Reply via email to