base-system: don't build it unless target machine is supported.

This commit is contained in:
Juan RP 2014-01-18 12:58:00 +01:00
parent 86e42d1e64
commit 36fdfc6170
1 changed files with 6 additions and 7 deletions

View File

@ -16,14 +16,13 @@ makedepends="
iproute2 iputils bridge-utils ifenslave iw wpa_supplicant xbps netbsd-wtf
nvi sudo wifi-firmware linux void-artwork nss-mdns traceroute ethtool parted"
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
makedepends+=" grub"
elif [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
makedepends+=" grub-x86_64-efi"
elif [ "$XBPS_TARGET_MACHINE" = "armv6l" ]; then
case "$XBPS_TARGET_MACHINE" in
i686) makedepends+=" grub";;
x86_64) makedepends+=" grub-x86_64-efi";;
# XXX only for Raspberry Pi
makedepends+=" rpi-base-files rpi-firmware"
fi
armv6l) makedepends+=" rpi-base-files rpi-firmware";;
*) msg_error "${pkgname}-${version}: unsupported target machine.\n";;
esac
# gcc and glibc shouldn't be direct dependencies.
for f in ${makedepends}; do