From 8de4fea741e0c6a7e2f8e485b6784e6c9e549ac1 Mon Sep 17 00:00:00 2001
From: Robin Randhawa <robin.randhawa@arm.com>
Date: Wed, 27 Feb 2019 15:52:04 +0000
Subject: [PATCH] userutils: Replace reference to x86_64-unknown-redox with
 $TARGET

Unbreaks builds for AArch64.
---
 recipes/userutils/recipe.sh | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/recipes/userutils/recipe.sh b/recipes/userutils/recipe.sh
index 3c8640e0f..4384373c2 100644
--- a/recipes/userutils/recipe.sh
+++ b/recipes/userutils/recipe.sh
@@ -22,22 +22,22 @@ function recipe_stage {
     else
         build=release
     fi
-    
+
     mkdir -p "$1/bin"
-    
+
     for bin in "${BINS[@]}"
     do
-        cp -v "target/x86_64-unknown-redox/$build/$bin" "$1/bin"
+        cp -v "target/$TARGET/$build/$bin" "$1/bin"
     done
-    
+
     cp -Rv "res" "$1/etc"
-    
+
     ln -s id "$1/bin/whoami"
     chmod +s "$1/bin/passwd"
     chmod +s "$1/bin/sudo"
     chmod +s "$1/bin/su"
-    
+
     docgen ../source ../stage/ref
-    
+
     skip=1
 }
-- 
GitLab