diff options
Diffstat (limited to 'core/mkinitcpio-busybox')
-rw-r--r-- | core/mkinitcpio-busybox/PKGBUILD | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/core/mkinitcpio-busybox/PKGBUILD b/core/mkinitcpio-busybox/PKGBUILD index 47e8ef991..f2ff77bab 100644 --- a/core/mkinitcpio-busybox/PKGBUILD +++ b/core/mkinitcpio-busybox/PKGBUILD @@ -6,7 +6,7 @@ pkgname=mkinitcpio-busybox pkgver=1.21.1 pkgrel=2 pkgdesc="base initramfs tools" -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') url="http://www.busybox.net/" license=('GPL') depends=('glibc') @@ -21,7 +21,12 @@ sha256sums=('cd5be0912ec856110ae12c76c3ec9cd5cba1df45b5a9da2b095b8284d1481303' prepare() { cd "busybox-$pkgver" - local safeflags="-march=${CARCH/_/-} -mtune=generic -Os -pipe -fno-strict-aliasing" + case $CARCH in + mips64el) + local safeflags='-march=mips3 -mtune=loongson2f -O2 -mabi=n32 -mplt -Wa,-mfix-loongson2f-nop -Os -pipe -fno-strict-aliasing' ;; + *) + local safeflags="-march=${CARCH/_/-} -mtune=generic -Os -pipe -fno-strict-aliasing" ;; + esac sed 's|^\(CONFIG_EXTRA_CFLAGS\)=.*|\1="'"$safeflags"'"|' "$srcdir/config" >.config |