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

View File

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