diff options
Diffstat (limited to 'core/mkinitcpio-busybox')
-rw-r--r-- | core/mkinitcpio-busybox/PKGBUILD | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/core/mkinitcpio-busybox/PKGBUILD b/core/mkinitcpio-busybox/PKGBUILD index 1722fe189..e2e797741 100644 --- a/core/mkinitcpio-busybox/PKGBUILD +++ b/core/mkinitcpio-busybox/PKGBUILD @@ -4,7 +4,7 @@ pkgname=mkinitcpio-busybox pkgver=1.18.5 pkgrel=1 pkgdesc="base initramfs tools" -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') url="http://www.busybox.net/" license=('GPL') depends=('glibc') @@ -17,11 +17,14 @@ build() { cd "${srcdir}/busybox-${pkgver}" unset CFLAGS CXXFLAGS - if [ ${CARCH} = "x86_64" ]; then - sed 's|^CONFIG_EXTRA_CFLAGS=.*|CONFIG_EXTRA_CFLAGS="-march=x86-64 -mtune=generic -Os -pipe -fno-strict-aliasing"|' "${srcdir}/config" > .config - else - sed 's|^CONFIG_EXTRA_CFLAGS=.*|CONFIG_EXTRA_CFLAGS="-march=i686 -mtune=generic -Os -pipe -fno-strict-aliasing"|' "${srcdir}/config" > .config - fi + case $CARCH in + x86_64) + sed 's|^CONFIG_EXTRA_CFLAGS=.*|CONFIG_EXTRA_CFLAGS="-march=x86-64 -mtune=generic -Os -pipe -fno-strict-aliasing"|' "${srcdir}/config" > .config ;; + i686) + sed 's|^CONFIG_EXTRA_CFLAGS=.*|CONFIG_EXTRA_CFLAGS="-march=i686 -mtune=generic -Os -pipe -fno-strict-aliasing"|' "${srcdir}/config" > .config ;; + mips64el) + sed 's|^CONFIG_EXTRA_CFLAGS=.*|CONFIG_EXTRA_CFLAGS="-O2 -march=loongson2f -mabi=n32 -mplt -Wa,-mfix-loongson2f-nop -Os -pipe -fno-strict-aliasing"|' "${srcdir}/config" > .config ;; + esac make } |