rust/0002-Add-armv6l-autodetection.patch

30 lines
709 B
Diff

From 9b81f3c81b6340221f9713afa9ead070086d7314 Mon Sep 17 00:00:00 2001
From: "Matwey V. Kornilov" <matwey.kornilov@gmail.com>
Date: Sun, 30 Oct 2016 11:27:58 +0300
Subject: [PATCH 2/2] Add armv6l autodetection
Use arm-unknown-linux-gnueabihf for hardware floating point armv6 variant
---
configure | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/configure b/configure
index d62084c..4e62e49 100755
--- a/configure
+++ b/configure
@@ -507,6 +507,11 @@ case $CFG_CPUTYPE in
CFG_CPUTYPE=arm
;;
+ armv6l)
+ CFG_CPUTYPE=arm
+ CFG_OSTYPE="${CFG_OSTYPE}eabihf"
+ ;;
+
armv7l)
CFG_CPUTYPE=armv7
CFG_OSTYPE="${CFG_OSTYPE}eabihf"
--
2.1.4