Commit e65cff8f authored by Ariadne Conill's avatar Ariadne Conill

testing/horizon: add mips64 host defines

parent c1459fe9
......@@ -19,7 +19,8 @@ makedepends="bcnm-dev boost-dev cmake curl-dev eudev-dev libarchive-dev
linux-headers parted-dev skalibs-dev util-linux-dev libxkbfile-dev"
subpackages="$pkgname-image $pkgname-dbg $pkgname-dev $pkgname-doc
$pkgname-tools"
source="https://distfiles.adelielinux.org/source/horizon-$pkgver.tar.xz"
source="https://distfiles.adelielinux.org/source/horizon-$pkgver.tar.xz
mips64-host.patch"
build() {
if [ "$CBUILD" != "$CHOST" ]; then
......@@ -125,4 +126,5 @@ PROFILE
"$subpkgdir"/usr/share/xsessions/horizon.desktop
}
sha512sums="99c1d939abc33c4a072712e75c6c8ada16deb1fe59b9da839dffd695a0d40dbf48499cc00751285300127a7fc701e8e1c434e9f8a222f1981ccbebd6ee72e43e horizon-0.9.3.tar.xz"
sha512sums="99c1d939abc33c4a072712e75c6c8ada16deb1fe59b9da839dffd695a0d40dbf48499cc00751285300127a7fc701e8e1c434e9f8a222f1981ccbebd6ee72e43e horizon-0.9.3.tar.xz
b3f78b967dd2238270b929c3528705fad6c61bf1b5a1c35ad6ba9d68fd8ef9896449c21ad8ee1a390fb25f185abeafa30c6ca593e2c338203343799eda213fe4 mips64-host.patch"
diff --git a/hscript/meta.cc b/hscript/meta.cc
index d79f3f5..fe8931d 100644
--- a/hscript/meta.cc
+++ b/hscript/meta.cc
@@ -722,6 +722,10 @@ const std::string my_arch(const Horizon::Script *script) {
return "pmmx";
# elif defined(__x86_64__)
return "x86_64";
+# elif defined(__mips64) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
+ return "mips64";
+# elif defined(__mips64) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
+ return "mips64le";
# else
# error Unknown architecture.
# endif
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