Commit 6219206f by James Cowgill Committed by Stéphane Graber

templates: Add mips hostarch detection to debian

parent eeca23a1
...@@ -543,6 +543,8 @@ if [ $? -ne 0 ]; then ...@@ -543,6 +543,8 @@ if [ $? -ne 0 ]; then
fi fi
eval set -- "$options" eval set -- "$options"
littleendian=$(lscpu | grep '^Byte Order' | grep -q Little && echo yes)
arch=$(uname -m) arch=$(uname -m)
if [ "$arch" = "i686" ]; then if [ "$arch" = "i686" ]; then
arch="i386" arch="i386"
...@@ -550,6 +552,10 @@ elif [ "$arch" = "x86_64" ]; then ...@@ -550,6 +552,10 @@ elif [ "$arch" = "x86_64" ]; then
arch="amd64" arch="amd64"
elif [ "$arch" = "armv7l" ]; then elif [ "$arch" = "armv7l" ]; then
arch="armhf" arch="armhf"
elif [ "$arch" = "mips" -a "$littleendian" = "yes" ]; then
arch="mipsel"
elif [ "$arch" = "mips64" -a "$littleendian" = "yes" ]; then
arch="mips64el"
fi fi
hostarch=$arch hostarch=$arch
mainonly=1 mainonly=1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment