From edfbe87e51a1d755070b44d781ffdf55e2303566 Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jackpot51@gmail.com>
Date: Fri, 19 May 2023 13:19:02 -0600
Subject: [PATCH] mesa: support all architectures

---
 recipes/mesa/recipe.toml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/recipes/mesa/recipe.toml b/recipes/mesa/recipe.toml
index 18688f35c..37bbd16ec 100644
--- a/recipes/mesa/recipe.toml
+++ b/recipes/mesa/recipe.toml
@@ -30,8 +30,8 @@ echo "llvm-config = '${TARGET}-llvm-config'" >> cross_file.txt
 
 echo "[host_machine]" >> cross_file.txt
 echo "system = 'redox'" >> cross_file.txt
-echo "cpu_family = 'x86_64'" >> cross_file.txt
-echo "cpu = 'x86_64'" >> cross_file.txt
+echo "cpu_family = '$(echo "${TARGET}" | cut -d - -f1)'" >> cross_file.txt
+echo "cpu = '$(echo "${TARGET}" | cut -d - -f1)'" >> cross_file.txt
 echo "endian = 'little'" >> cross_file.txt
 
 echo "[paths]" >> cross_file.txt
-- 
GitLab