[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#532548: module-init-tools: Support for Renesas SuperH (SH4)



Package: module-init-tools
Version: 3.7-pre9-1
Severity: wishlist
Tags: patch
X-Debbugs-CC: debian-superh@lists.debian.org

Hi,

I am now trying to run Debian on Renesas SH CPU.
Currnet this package doesn't support Renesas SH4.
I made a patch to support SH.
Would you please apply it?

Best regards,
 Nobuhiro

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.29-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages module-init-tools depends on:
ii  libc6                         2.9-6      GNU C Library: Shared libraries
ii  lsb-base                      3.2-22     Linux Standard Base 3.2 init scrip

module-init-tools recommends no packages.

module-init-tools suggests no packages.

-- no debconf information


-- 
Nobuhiro Iwamatsu
diff --git a/debian/module-init-tools.postinst b/debian/module-init-tools.postinst
index 35ac6fe..409a8e0 100644
--- a/debian/module-init-tools.postinst
+++ b/debian/module-init-tools.postinst
@@ -22,6 +22,7 @@ archmodel() {
   lpia)		arch=i386 ;;
   arm*)		arch=arm ;;
   mips*)	arch=mips ;;
+  sh4*)		arch=sh4 ;;
   # 64 bit variants of some architectures are treated like the 32 bit
   s390x)	arch=s390 ;;
   parisc64)	arch=parisc ;;
diff --git a/extra/installarchconf b/extra/installarchconf
index 01c1b28..ad8ee8d 100644
--- a/extra/installarchconf
+++ b/extra/installarchconf
@@ -14,6 +14,7 @@ archmodel() {
 	ppc64)		arch=powerpc.generic ;;
 	ppc|powerpc)	arch="powerpc.*" ;;
 	m68k)		arch="m68k.*" ;;
+	sh[234]*)	arch="sh" ;;
     esac
     echo $arch
 }

Reply to: