diff options
Diffstat (limited to 'core/mkinitcpio-busybox/PKGBUILD')
-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 6aced1ea4..f0bb42286 100644 --- a/core/mkinitcpio-busybox/PKGBUILD +++ b/core/mkinitcpio-busybox/PKGBUILD @@ -6,7 +6,7 @@ pkgname=mkinitcpio-busybox pkgver=1.20.1 pkgrel=1 pkgdesc="base initramfs tools" -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') url="http://www.busybox.net/" license=('GPL') depends=('glibc') @@ -19,7 +19,12 @@ sha256sums=('3e515d8abefd8583ebabffdcfccecb3b8deacf2cef7c69ab1d8755a012ec68c9' build() { cd "$srcdir/busybox-$pkgver" - local safeflags="${CARCH/_/-} -mtune=generic -Os -pipe -fno-strict-aliasing" + case $CARCH in + mips64el) + local safeflags='loongson2f -O2 -mabi=n32 -mplt -Wa,-mfix-loongson2f-nop -Os -pipe -fno-strict-aliasing' ;; + *) + local safeflags="${CARCH/_/-} -mtune=generic -Os -pipe -fno-strict-aliasing" ;; + esac sed 's|^\(CONFIG_EXTRA_CFLAGS\)=.*|\1="-march='"$safeflags"'"|' \ "$srcdir/config" > .config |