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 f85beb6ea..c0e94f2b0 100644 --- a/core/mkinitcpio-busybox/PKGBUILD +++ b/core/mkinitcpio-busybox/PKGBUILD @@ -6,7 +6,7 @@ pkgname=mkinitcpio-busybox pkgver=1.20.2 pkgrel=1 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=('eb13ff01dae5618ead2ef6f92ba879e9e0390f9583bd545d8789d27cf39b6882' 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 |