build: Reject ARMv6 systems.
authorLudovic Courtès <ludo@gnu.org>
Wed, 25 Nov 2015 15:58:59 +0000 (16:58 +0100)
committerLudovic Courtès <ludo@gnu.org>
Wed, 25 Nov 2015 16:01:02 +0000 (17:01 +0100)
Fixes <http://bugs.gnu.org/21987>.
Reported by Martin Vahi <martin.vahi@softf1.com>.

* m4/guix.m4 (GUIX_SYSTEM_TYPE): Restrict ARM systems to arm|armv[7-9].

m4/guix.m4

index 842249a..8e1cfa0 100644 (file)
@@ -50,8 +50,13 @@ AC_DEFUN([GUIX_SYSTEM_TYPE], [
        i*86)
          machine_name="i686";;
        amd64)
-         machine_name="x86_64";;
-       arm*)
+          machine_name="x86_64";;
+       arm|armv[7-9]*)
+          # Here we want to exclude CPUs such as "armv6l".  On ARMv7
+          # machines, we normally get "armv7l".  However, in Guix, we
+          # configure with --build=arm-unknown-linux-gnueabihf, leading
+          # to just "arm", so we also have to allow it.
+          #
           # TODO: If not cross-compiling, add a sanity check to make
           #       sure this build machine has the needed features to
           #       support executables compiled using our armhf gcc,