build: Reject ARMv6 systems.

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].
This commit is contained in:
Ludovic Courtès 2015-11-25 16:58:59 +01:00
parent 13ef3e997b
commit 968ae90318
1 changed files with 7 additions and 2 deletions

View File

@ -51,7 +51,12 @@ AC_DEFUN([GUIX_SYSTEM_TYPE], [
machine_name="i686";; machine_name="i686";;
amd64) amd64)
machine_name="x86_64";; machine_name="x86_64";;
arm*) 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 # TODO: If not cross-compiling, add a sanity check to make
# sure this build machine has the needed features to # sure this build machine has the needed features to
# support executables compiled using our armhf gcc, # support executables compiled using our armhf gcc,