busybox-initramfs: fix for !x86_64.
This commit is contained in:
parent
cc86812548
commit
d90873d8dc
1 changed files with 10 additions and 5 deletions
|
@ -29,14 +29,19 @@ pre_build()
|
||||||
# It seems that gcc-4.5 generates a bad busybox binary,
|
# It seems that gcc-4.5 generates a bad busybox binary,
|
||||||
# notably sed(1) segfaults on every command. Download a
|
# notably sed(1) segfaults on every command. Download a
|
||||||
# binary from busybox.net.
|
# binary from busybox.net.
|
||||||
|
if [ "${xbps_machine}" = "x86_64" ]; then
|
||||||
${XBPS_FETCH_CMD} \
|
${XBPS_FETCH_CMD} \
|
||||||
http://www.busybox.net/downloads/binaries/${version}/busybox-x86_64
|
http://www.busybox.net/downloads/binaries/${version}/busybox-x86_64
|
||||||
|
fi
|
||||||
cp -f ${FILESDIR}/dotconfig ${wrksrc}/.config
|
cp -f ${FILESDIR}/dotconfig ${wrksrc}/.config
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install()
|
post_install()
|
||||||
{
|
{
|
||||||
|
if [ "${xbps_machine}" = "x86_64" ]; then
|
||||||
mv ${wrksrc}/busybox-x86_64 \
|
mv ${wrksrc}/busybox-x86_64 \
|
||||||
${DESTDIR}/usr/lib/busybox-initramfs/bin/busybox
|
${DESTDIR}/usr/lib/busybox-initramfs/bin/busybox
|
||||||
chmod 755 ${DESTDIR}/usr/lib/busybox-initramfs/bin/busybox
|
chmod 755 ${DESTDIR}/usr/lib/busybox-initramfs/bin/busybox
|
||||||
|
fi
|
||||||
|
:
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue