On Sat, 2014-05-10 at 21:38 +0100, Ian Campbell wrote:
> I think the best approach
> would be to add generic to XB-Subarchitecture and handle it using the
> db, leaving the other subarches as the are.

I've not managed to test it yet, but I suspect something like the
following ought to do it...

Ian.

diff --git a/debian/changelog b/debian/changelog
index 734618d..ef19abc 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ flash-kernel (3.18) UNRELEASED; urgency=medium
   * Add support for the Cubietruck.
   * Copy the dtb (if any) to /boot/dtb-$kversion in kernel postinst hook.
   * Allow use the kernel version in boot scripts.
+  * Run installer udeb on generic subarch iff the machine is listed in the db.
 
  -- Ian Campbell <i...@hellion.org.uk>  Mon, 12 May 2014 20:12:39 +0100
 
diff --git a/debian/control b/debian/control
index 561625d..835f28f 100644
--- a/debian/control
+++ b/debian/control
@@ -30,7 +30,7 @@ Section: debian-installer
 Priority: standard
 Package-Type: udeb
 Architecture: armel armhf
-XB-Subarchitecture: iop32x ixp4xx kirkwood orion5x s3c24xx mx5
+XB-Subarchitecture: iop32x ixp4xx kirkwood orion5x s3c24xx mx5 generic
 Provides: bootable-system
 Depends: cdebconf-udeb, installed-base
 XB-Installer-Menu-Item: 7300
diff --git a/debian/flash-kernel-installer.isinstallable 
b/debian/flash-kernel-installer.isinstallable
index ce85af3..d30c147 100755
--- a/debian/flash-kernel-installer.isinstallable
+++ b/debian/flash-kernel-installer.isinstallable
@@ -20,6 +20,11 @@ case "`archdetect`" in
        arm*/s3c24xx)
                exit 0
        ;;
+       arm*/generic)
+               # If supported in DB
+               flash-kernel --supported
+               exit $?
+       ;;
        # Don't activate it by default
        *)
                exit 1



-- 
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/1399922857.15871.15.ca...@hastur.hellion.org.uk

Reply via email to