Unified · Split
| @@ -186,25 +186,21 @@ register_binfmt() { · 185 unmodified lines | ||
| 186 | 186 | _cpu=arm |
| 187 | 187 | _magic="\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00" |
| 188 | 188 | _mask="\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff" |
| 189 | − QEMU_BIN=qemu-arm-static | |
| 190 | 189 | ;; |
| 191 | 190 | aarch64) |
| 192 | 191 | _cpu=aarch64 |
| 193 | 192 | _magic="\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7" |
| 194 | 193 | _mask="\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff" |
| 195 | − QEMU_BIN=qemu-aarch64-static | |
| 196 | 194 | ;; |
| 197 | 195 | ppc64le) |
| 198 | 196 | _cpu=ppc64le |
| 199 | 197 | _magic="\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x15\x00" |
| 200 | 198 | _mask="\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\x00" |
| 201 | − QEMU_BIN=qemu-ppc64le-static | |
| 202 | 199 | ;; |
| 203 | 200 | ppc64) |
| 204 | 201 | _cpu=ppc64 |
| 205 | 202 | _magic="\x7fELF\x02\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x15" |
| 206 | 203 | _mask="\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff" |
| 207 | − QEMU_BIN=qemu-ppc64-static | |
| 208 | 204 | ;; |
| 209 | 205 | ppc) |
| 210 | 206 | if [ "$_hostarch" = "ppc64" ] ; then |
| @@ -213,7 +209,6 @@ register_binfmt() { · 2 unmodified lines | ||
| 213 | 209 | _cpu=ppc |
| 214 | 210 | _magic="\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x14" |
| 215 | 211 | _mask="\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff" |
| 216 | − QEMU_BIN=qemu-ppc-static | |
| 217 | 212 | ;; |
| 218 | 213 | mipsel) |
| 219 | 214 | if [ "$_hostarch" = "mips64el" ] ; then |
| @@ -222,13 +217,11 @@ register_binfmt() { · 2 unmodified lines | ||
| 222 | 217 | _cpu=mipsel |
| 223 | 218 | _magic="\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08\x00" |
| 224 | 219 | _mask="\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff" |
| 225 | − QEMU_BIN=qemu-mipsel-static | |
| 226 | 220 | ;; |
| 227 | 221 | x86_64) |
| 228 | 222 | _cpu=x86_64 |
| 229 | 223 | _magic="\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x3e\x00" |
| 230 | 224 | _mask="\xff\xff\xff\xff\xff\xfe\xfe\xfc\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff" |
| 231 | − QEMU_BIN=qemu-x86_64-static | |
| 232 | 225 | ;; |
| 233 | 226 | i686) |
| 234 | 227 | if [ "$_hostarch" = "x86_64" ] ; then |
| @@ -237,7 +230,6 @@ register_binfmt() { · 2 unmodified lines | ||
| 237 | 230 | _cpu=i386 |
| 238 | 231 | _magic="\x7f\x45\x4c\x46\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x03\x00" |
| 239 | 232 | _mask="\xff\xff\xff\xff\xff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff" |
| 240 | − QEMU_BIN=qemu-i386-static | |
| 241 | 233 | ;; |
| 242 | 234 | *) |
| 243 | 235 | die "Unknown target architecture!" |
| @@ -246,6 +238,7 @@ register_binfmt() { · 2 unmodified lines | ||
| 246 | 238 | |
| 247 | 239 | # For builds that do not match the host architecture, the correct |
| 248 | 240 | # qemu binary will be required. |
| 241 | + QEMU_BIN="qemu-${_cpu}-static" | |
| 249 | 242 | if ! $QEMU_BIN -version >/dev/null 2>&1; then |
| 250 | 243 | die "$QEMU_BIN binary is missing in your system, exiting." |
| 251 | 244 | fi |