Set up armhf porting chroots on armel hosts
authorPeter Palfrader <peter@palfrader.org>
Mon, 31 Mar 2014 18:10:03 +0000 (20:10 +0200)
committerPeter Palfrader <peter@palfrader.org>
Mon, 31 Mar 2014 18:10:03 +0000 (20:10 +0200)
modules/porterbox/files/setup-all-dchroots

index 15044f7..23867bb 100755 (executable)
@@ -53,6 +53,11 @@ case "$DPKGARCH" in
     armhf)
         archs="$archs armel"
         ;;
+    armel)
+        if [ "$(uname -m)" = "armv7l" ] && grep -w vfpv3 -q /proc/cpuinfo ; then
+            archs="$archs armhf"
+        fi
+        ;;
     s390|s390x)
         archs="s390 s390x"
         ;;