Check OS on debootstrap

This commit is contained in:
Takumi Sueda 2020-10-27 19:53:25 +09:00
parent daf5442439
commit 442c86b48b

View File

@ -73,6 +73,10 @@ nk.bin:
./nkbin_maker/bsd-ce ./u-boot-brain/u-boot.bin ./nkbin_maker/bsd-ce ./u-boot-brain/u-boot.bin
debian: debian:
@if [ "$(shell uname)" != "Linux" ]; then \
echo "Debootstrap is only available in Linux!"; \
exit 1; \
fi
mkdir debian mkdir debian
sudo debootstrap --arch=armel --foreign buster debian/ sudo debootstrap --arch=armel --foreign buster debian/
sudo cp /usr/bin/qemu-arm-static debian/usr/bin/ sudo cp /usr/bin/qemu-arm-static debian/usr/bin/