#!/bin/bash set -e rustup target add x86_64-unknown-none rustup component add rust-src rustup component add llvm-tools-preview if ! cargo bootimage --help > /dev/null 2>&1 then echo " WARNING cargo-bootimage is not installed. Get it from your package manager or run : cargo install cargo-bootimage " && exit 1 fi