Check OS on debootstrap

This commit is contained in:
Takumi Sueda 2020-10-27 19:53:25 +09:00
parent daf5442439
commit 442c86b48b
1 changed files with 4 additions and 0 deletions

View File

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