[arch-commits] Commit in mkinitcpio-busybox/trunk (PKGBUILD)
Thomas Bächler
thomas at archlinux.org
Sun Sep 27 01:03:32 UTC 2009
Date: Saturday, September 26, 2009 @ 21:03:32
Author: thomas
Revision: 53217
Make it build with i686
Modified:
mkinitcpio-busybox/trunk/PKGBUILD
----------+
PKGBUILD | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2009-09-27 00:49:28 UTC (rev 53216)
+++ PKGBUILD 2009-09-27 01:03:32 UTC (rev 53217)
@@ -17,8 +17,11 @@
build() {
cd "${srcdir}/busybox-${pkgver}"
- # TODO: i686 support
- cp "${srcdir}/config" .config
+ if [ ${CARCH} = "x86_64" ]; then
+ sed 's|^CONFIG_CROSS_COMPILER_PREFIX=.*|CONFIG_CROSS_COMPILER_PREFIX="x86_64-unknown-linux-uclibc-"|' "${srcdir}/config" > .config
+ else
+ sed 's|^CONFIG_CROSS_COMPILER_PREFIX=.*|CONFIG_CROSS_COMPILER_PREFIX="i686-pc-linux-uclibc-"|' "${srcdir}/config" > .config
+ fi
make || return 1
install -D -m755 busybox "${pkgdir}/usr/lib/initramfs/base/busybox"
}
More information about the arch-commits
mailing list