mirror of
https://github.com/brain-hackers/buildbrain
synced 2024-12-22 20:20:11 +09:00
Check OS on debootstrap
This commit is contained in:
parent
daf5442439
commit
442c86b48b
4
Makefile
4
Makefile
@ -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/
|
||||||
|
Loading…
Reference in New Issue
Block a user